From: Luke Kenneth Casson Leighton Date: Thu, 30 Jun 2022 10:10:03 +0000 (+0100) Subject: add pandoc conversion of spec to latex X-Git-Tag: opf_rfc_ls005_v1~1459 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d384faed666359a005b9b9d52955ad74c817c2f;p=libreriscv.git add pandoc conversion of spec to latex --- diff --git a/openpower/Makefile b/openpower/Makefile new file mode 100755 index 000000000..abf4f3f30 --- /dev/null +++ b/openpower/Makefile @@ -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 index 000000000..99f791143 --- /dev/null +++ b/openpower/simple_v_spec.tex @@ -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}