diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 12:23:51 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 12:23:51 +0000 |
commit | 40af2b9446cbc68e7c6f44fe26c3bb23e65b05aa (patch) | |
tree | 2cd98e0cf999e50b46311ff1050e4dbcae28f9f6 /commands-html.tex | |
parent | 8b579fdca9d3176b48efc80bce585d3e279b220a (diff) |
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 <mst@redhat.com>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@103 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'commands-html.tex')
-rw-r--r-- | commands-html.tex | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/commands-html.tex b/commands-html.tex new file mode 100644 index 0000000..ade2dd7 --- /dev/null +++ b/commands-html.tex @@ -0,0 +1,181 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% HTML specfic commands +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\virtiographics}[3] +{ +\HCode{<div><img src="images/#1.png" alt="#3"/></div>} +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO title sections +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\oasistitle}[1] +{ +\begin{spacing}{2} +\HCode{<div style="color: \#552681; font-size: 24pt;">} +\textbf{#1} +\HCode{</div>} +\end{spacing} +} + +\newcommand{\oasisstagelabel}[1] +{ +\begin{spacing}{2} +\HCode{<div style="color: \#552681; font-size: 18pt;">} +\textbf{#1} +\HCode{</div>} +\end{spacing} +} + +\newcommand{\oasisdate}[1] +{ +\begin{spacing}{2} +\HCode{<div style="color: \#552681; font-size: 18pt;">} +\textbf{#1} +\HCode{</div>} +\end{spacing} +} + +\newcommand{\oasisnoticelabel}[1] +{ +\begin{spacing}{2} +\HCode{<div style="color: \#552681; font-size: 18pt;">} +\textbf{#1} +\HCode{</div>} +\end{spacing} +} + +\newcommand{\oasisspecificationuris}[1] +{ +\HCode{<div style="color: \#552681; font-size: 12pt;">} +\textbf{#1} +\HCode{</div>} +} + +\newenvironment{oasistitlesection}[1] +{ +\HCode{<div style="color: \#552681; font-size: 10pt;">} +\textbf{#1:} +\HCode{</div>} +\HCode{<div style="margin-left: 20px;">} +} +{ +\HCode{</div>} +} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO type attributes +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% new environment: VIRTIO type attribute +\newenvironment{virtioattribute}[2] +{ +\HCode{<div style="width: 200px; float: left;">}\texttt{\textbf{#1}}\HCode{</div>} +\HCode{<span>}#2\HCode{</span>}\\ +\begin{tabular}{p{20px}p{200px}} +&} +{\\ +\end{tabular}\\ +\vspace{0.05in} +} + +% new command: VIRTIO type attribute value +\newcommand{\virtioattributevalue}[2] +{ +\texttt{\textbf{#1}}\\ +\indent +Value: #2\\ +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO properties +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% new environment: VIRTIO propery +\newenvironment{virtioproperty}[2] +{ +\vspace{0.05in} +\begin{tabular}{p{20px}p{200px}p{200px}} +\multicolumn{2}{p{20px}}{\textbf{\texttt{#1}}} & #2\vspace{0.05in}\\ +} +{ +\end{tabular}\\ +\vspace{0.05in}\\ +} + +% new command: VIRTIO property detail +\newcommand{\virtiopropertydetail}[2]{& #1: & #2\\} + +% new command: VIRTIO property comment +\newcommand{\virtiopropertycomment}[1]{\\&\multicolumn{2}{p{20px}}{#1}\\} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO allowable actions +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% new environment: VIRTIO allowable action +\newenvironment{virtioallowableaction}[1] +{ +\textbf{#1} +\vspace{0.05in}\\ +\begin{tabular}{p{0.1in}p{1in}p{4.8in}} +} +{ +\end{tabular}\\ +\vspace{0.05in}\\ +} + +% new command: VIRTIO allowable action detail +\newcommand{\virtioallowableactiondetail}[2]{& #1: & #2\\} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO version properties +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% new environment: VIRTIO version property +\newenvironment{virtioversionproperty}[2] +{ +\begin{tabular}{p{3in}l} +\texttt{\textbf{#1}} & #2\\ +\end{tabular}\\\ +\begin{tabular}{p{0.3in}p{5.7in}} +&} +{\\ +\end{tabular}\\ +\vspace{0.05in} +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% VIRTIO general description +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% new environment: VIRTIO description +\newenvironment{virtiodescription}[1] +{ +\begin{tabular}{p{20px}p{600px}} +\multicolumn{2}{l}{\textbf{#1:}}\\ +&\setlength{\topsep}{0in}\setlength{\parsep}{0in}\setlength{\partopsep}{0in} } +{\\ +\end{tabular}\\ +\vspace{0.05in} +} + + +\newenvironment{virtioexample}[1] +{ +\HCode{<div style="padding: 5px; background-color: \#E6E6E6;">} +\textbf{Example:}\\ +Request: \texttt{#1-request.log}\\ +Response: \texttt{#1-response.log} +\HCode{</div>} +\vspace{0.2in} +} + |