From 9ede441dd7c2a681d1adeacf4e879972c86db310 Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Sun, 1 Dec 2013 21:45:03 +0000 Subject: html: rename file htlatex doesn't seem to support -jobname for output file name, so simply rename file before processing. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@141 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- makehtml.sh | 6 +++-- virtio-html.cfg | 31 +++++++++++++++++++++++++ virtio-html.tex | 58 ++++++++++++++++++++++++++++++++++++++++++++++ virtio-v1.0-csd01-html.tex | 58 ---------------------------------------------- virtiohtml.cfg | 31 ------------------------- 5 files changed, 93 insertions(+), 91 deletions(-) create mode 100644 virtio-html.cfg create mode 100644 virtio-html.tex delete mode 100644 virtio-v1.0-csd01-html.tex delete mode 100644 virtiohtml.cfg diff --git a/makehtml.sh b/makehtml.sh index 9dafdaf..f322780 100755 --- a/makehtml.sh +++ b/makehtml.sh @@ -1,10 +1,12 @@ #!/bin/sh -SPECDOC=virtio-v1.0-csd01-html +SPECDOC=virtio-v1.0-csd01 + +cp virtio-html.tex $SPECDOC.tex #uncomment if you have a broken t4ht #PATH=./t4ht-workaround:${PATH} htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" -htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" +htlatex $SPECDOC.tex "virtio-html,info,charset=utf-8" " -cunihtf -utf8" rm $SPECDOC.aux mv $SPECDOC.html $SPECDOC.tmp1 diff --git a/virtio-html.cfg b/virtio-html.cfg new file mode 100644 index 0000000..0106271 --- /dev/null +++ b/virtio-html.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 diff --git a/virtio-html.tex b/virtio-html.tex new file mode 100644 index 0000000..fd9d252 --- /dev/null +++ b/virtio-html.tex @@ -0,0 +1,58 @@ +%!TEX encoding = UTF-8 Unicode +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% VIRTIO 1.0 Specification Draft +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[10pt,titlepage]{report} + +\usepackage{parskip} +\usepackage{setspace} +\usepackage[english]{babel} +\usepackage{ae,aecompl} +\usepackage[T1]{fontenc} +\usepackage{graphicx} +\usepackage{framed} +\usepackage{hyperref} +\usepackage{lineno} +\usepackage{listings} +\usepackage{courier} +\usepackage{fancyvrb} +\usepackage{array} +\usepackage{longtable} +\usepackage{multirow} +\usepackage{rotating} +\usepackage{fancyhdr} +\usepackage{lastpage} +\usepackage{todonotes} +\usepackage{titlesec} +\usepackage{mdwlist} +\usepackage{url} +\usepackage{xifthen} +\usepackage{tabularx} +\usepackage{underscore} + +\usepackage[utf8x]{inputenc} + +\urlstyle{rm} + +% commands +\input{specvars.tex} +\input{commands.tex} +\input{commands-html.tex} +\input{listings.tex} + +% new command: header and footer +\newcommand{\virtioheaderfooter}{} + +% headers setup +\titleformat{\chapter}[block]{\titlerule\normalfont\huge\bfseries}{\thechapter}{0pt}{} +\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{} +\titleformat{\subsection}{\normalfont\large\bfseries}{\thesubsection}{1em}{} +\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} +\titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} +\titleformat{\subparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{} + + + +% main document +\input{main.tex} diff --git a/virtio-v1.0-csd01-html.tex b/virtio-v1.0-csd01-html.tex deleted file mode 100644 index fd9d252..0000000 --- a/virtio-v1.0-csd01-html.tex +++ /dev/null @@ -1,58 +0,0 @@ -%!TEX encoding = UTF-8 Unicode -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% VIRTIO 1.0 Specification Draft -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[10pt,titlepage]{report} - -\usepackage{parskip} -\usepackage{setspace} -\usepackage[english]{babel} -\usepackage{ae,aecompl} -\usepackage[T1]{fontenc} -\usepackage{graphicx} -\usepackage{framed} -\usepackage{hyperref} -\usepackage{lineno} -\usepackage{listings} -\usepackage{courier} -\usepackage{fancyvrb} -\usepackage{array} -\usepackage{longtable} -\usepackage{multirow} -\usepackage{rotating} -\usepackage{fancyhdr} -\usepackage{lastpage} -\usepackage{todonotes} -\usepackage{titlesec} -\usepackage{mdwlist} -\usepackage{url} -\usepackage{xifthen} -\usepackage{tabularx} -\usepackage{underscore} - -\usepackage[utf8x]{inputenc} - -\urlstyle{rm} - -% commands -\input{specvars.tex} -\input{commands.tex} -\input{commands-html.tex} -\input{listings.tex} - -% new command: header and footer -\newcommand{\virtioheaderfooter}{} - -% headers setup -\titleformat{\chapter}[block]{\titlerule\normalfont\huge\bfseries}{\thechapter}{0pt}{} -\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{} -\titleformat{\subsection}{\normalfont\large\bfseries}{\thesubsection}{1em}{} -\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} -\titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} -\titleformat{\subparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{} - - - -% main document -\input{main.tex} diff --git a/virtiohtml.cfg b/virtiohtml.cfg deleted file mode 100644 index 0106271..0000000 --- a/virtiohtml.cfg +++ /dev/null @@ -1,31 +0,0 @@ -\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