From 40af2b9446cbc68e7c6f44fe26c3bb23e65b05aa Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Mon, 25 Nov 2013 12:23:51 +0000 Subject: virtio: add latex templates from CMIS I imported latex templates from the CMIS specifications and changed s/CMIS/VIRTIO/ everywhere. The result is very close to one produced by exporting from the ODF we were supplied, with the exception of the TOC formatting, where section numbers are in blue instead of black, and major sections don't have dots leading to page numbers. I'm guessing this isn't very important, someone with more latex knowledge can try to figure this out. Generating html doesn't actually work for me. It doesn't work for me for CMIS either, so it's probably just an issue with my local latex setup. I'm not sure we need html output at all. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@103 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- virtiohtml.cfg | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 virtiohtml.cfg (limited to 'virtiohtml.cfg') diff --git a/virtiohtml.cfg b/virtiohtml.cfg new file mode 100644 index 0000000..0106271 --- /dev/null +++ b/virtiohtml.cfg @@ -0,0 +1,31 @@ +\Preamble{html} +\begin{document} + \ConfigureMark{chapter}{\HCode{
}\thechapter\HCode{}} + \ConfigureMark{paragraph}{\HCode{}\theparagraph\HCode{}} + \ConfigureMark{subparagraph}{\HCode{}\thesubparagraph\HCode{}} + + \Configure{chapter}{}{}{\ShowPar\IgnoreIndent\HCode{

}\begingroup\TitleMark\space}{\endgroup\HCode{

}\par\IgnorePar} + \Configure{paragraph}{}{}{\ShowPar\IgnoreIndent\HCode{
}\begingroup\TitleMark\space}{\endgroup\HCode{
}\par\IgnorePar} + \Configure{subparagraph}{}{}{\ShowPar\IgnoreIndent\HCode{
}\begingroup\TitleMark\space}{\endgroup\HCode{
}\par\IgnorePar} + \Configure{appendix}{}{}{\ShowPar\IgnoreIndent\HCode{

}\begingroup\TitleMark.\space}{\endgroup\HCode{

}\par\IgnorePar} + + \Configure{tabular} + {\HCode{}}{\HCode{
}} + {\HCode{}}{\HCode{}} + {\HCode{1 colspan="\HMultispan"\fi >}}{\HCode{}} + + + %%\Configure{HColWidth}{\HCode{ style="min-width:\HColWidth"}} + + \Configure{@TITLE}{Virtual I/O Device (VIRTIO) Version 1.0} + \Css{body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; }} + \Css{h1 { color:\#552681; font-size:150\%; }} + \Css{h2 { color:\#552681; font-size:140\%; }} + \Css{h3 { color:\#552681; font-size:130\%; }} + \Css{h4 { color:\#552681; font-size:120\%; }} + \Css{h5 { color:\#552681; font-size:110\%; }} + \Css{h6 { color:\#552681; font-size:100\%; }} + \Css{table.tabular { margin-left: 0em; }} + \Css{dt { margin-top: 0.5em; }} + \Css{div.lstlisting, div.lstinputlisting {font-family: Courier New, monospace; white-space: nowrap; margin-top:0.5em; margin-bottom:0.5em; padding: 5px; border: 1px solid black; color: black; background-color: \#F5F5F5;}} +\EndPreamble -- cgit v1.2.3