add pandoc conversion of spec to latex
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jun 2022 10:10:03 +0000 (11:10 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jun 2022 10:29:03 +0000 (11:29 +0100)
openpower/Makefile [new file with mode: 0755]
openpower/simple_v_spec.tex [new file with mode: 0644]

diff --git a/openpower/Makefile b/openpower/Makefile
new file mode 100755 (executable)
index 0000000..abf4f3f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+tex:
+       mkdir -p tex_out
+       pandoc -f markdown -t latex --top-level-division=section \
+                    -N -o tex_out/sv.tex sv.mdwn 
+       pandoc -f markdown -t latex --top-level-division=section \
+                    -N -o tex_out/overview.tex sv/overview.mdwn 
+       pandoc -f markdown -t latex --top-level-division=section \
+                    -N -o tex_out/svp64.tex sv/svp64.mdwn 
diff --git a/openpower/simple_v_spec.tex b/openpower/simple_v_spec.tex
new file mode 100644 (file)
index 0000000..99f7911
--- /dev/null
@@ -0,0 +1,71 @@
+\documentclass[]{book}
+\usepackage{lmodern}
+\usepackage{amssymb,amsmath}
+\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e} % provides \textsubscript
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+  \usepackage[T1]{fontenc}
+  \usepackage[utf8]{inputenc}
+\else % if luatex or xelatex
+  \ifxetex
+    \usepackage{mathspec}
+  \else
+    \usepackage{fontspec}
+  \fi
+  \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
+\fi
+% use upquote if available, for straight quotes in verbatim environments
+\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
+% use microtype if available
+\IfFileExists{microtype.sty}{%
+\usepackage[]{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
+\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
+\usepackage[unicode=true]{hyperref}
+\hypersetup{
+            pdfborder={0 0 0},
+            breaklinks=true}
+\usepackage[margin=0.9in]{geometry}
+\usepackage{longtable,booktabs}
+% Fix footnotes in tables (requires footnote package)
+\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long 
+table}}{}
+\IfFileExists{parskip.sty}{%
+\usepackage{parskip}
+}{% else
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
+}
+\setlength{\emergencystretch}{3em}  % prevent overfull lines
+\providecommand{\tightlist}{%
+  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
+\setcounter{secnumdepth}{5}
+% Redefines (sub)paragraphs to behave more like sections
+\ifx\paragraph\undefined\else
+\let\oldparagraph\paragraph
+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\fi
+\ifx\subparagraph\undefined\else
+\let\oldsubparagraph\subparagraph
+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+\fi
+
+% set default figure placement to htbp
+\makeatletter\@addtoreset{chapter}{part}\makeatother%
+\def\fps@figure{htbp}
+\makeatother
+
+
+\date{}
+
+\begin{document}
+
+\chapter{Simple-V}
+\input{tex_out/sv.tex}
+\chapter{Overview}
+\input{tex_out/overview.tex}
+\chapter{SVP64}
+\input{tex_out/svp64.tex}
+
+\end{document}