Updated to minitasn1 3.0
[gnutls.git] / doc / latex / macros-epub.tex
blob3f0b6d5fade8631cfa91cfeb240a5c894e51d64d
1 \newcommand{\gnutls}{{\emph{GnuTLS}}}
2 \newcommand{\gnutlse}{{\emph{GnuTLS-extra}}}
3 \newcommand{\tlsI}{{\emph{TLS 1.0}}}
4 \newcommand{\tlsII}{{\emph{TLS 1.1}}}
5 \newcommand{\tls}{{\emph{TLS}}}
6 \newcommand{\sslIII}{{\emph{SSL 3.0}}}
7 \newcommand{\sslII}{{\emph{SSL 2.0}}}
8 \newcommand{\ssl}{{\emph{SSL}}}
9 \newcommand{\HRule}{\rule{\linewidth}{0.4mm}}
11 \newcommand{\code}[1]{%
12 {\tt{#1}}%
15 \newcommand{\command}[1]{%
16 ``{\tt{#1}}''%
19 \newcommand{\myref}[1]{%
20 \autoref{#1}%
23 \newcommand{\file}[1]{%
24 ``{\tt{#1}}''%
27 \newcommand{\acronym}[1]{%
28 {#1}%
31 \newcommand{\examplefile}[1]{%
32 {\VerbatimInput[frame=single,numbers=left,numbersep=3pt,fontsize=\footnotesize]{#1}}%
35 \DefineVerbatimEnvironment{example}{Verbatim}%
36 {numbers=left,frame=single,numbersep=3pt,fontsize=\footnotesize}
38 \DefineVerbatimEnvironment{smallexample}{Verbatim}%
39 {frame=single,numbersep=3pt,fontsize=\footnotesize}
42 \newcommand{\funcref}[2]{%
43 %\hyperref[#2]{#1()}%
44 \code{#1}%
47 \newcommand{\showfunc}[1]{%
48 \let\Oldfd\functionDescription
49 \let\Oldendfd\endfunctionDescription
50 \let\functionDescription=\comment
51 \let\endfunctionDescription=\endcomment
52 \let\Oldfr\functionReturns
53 \let\Oldendfr\endfunctionReturns
54 \let\functionReturns=\comment
55 \let\endfunctionReturns=\endcomment
56 \texttt{
57 \input{functions/#1}
59 \let\functionDescription=\Oldfd
60 \let\endfunctionDescription=\Oldendfd
61 \let\functionReturns=\Oldfr
62 \let\endfunctionReturns=\Oldendfr
65 \newcommand{\showfuncdesc}[1]{%
66 \begin{figure}[htbp]
67 \begin{minipage}[l]{\linewidth}
68 % \begin{framed}
69 \texttt{
70 \input{functions/#1}
72 % \end{framed}
73 \end{minipage}
74 \end{figure}
77 \newcommand{\showenumdesc}[2]{%
78 \begin{table}[h]
79 \begin{minipage}[l]{\linewidth}
80 % \begin{framed}
81 \texttt{
82 \input{enums/#1}
84 % \end{framed}
85 \vspace{0.15cm}
86 \end{minipage}
87 \caption{#2}
88 \label{#1}
89 \end{table}
92 \newcommand{\showfuncA}[1]{%
93 \begin{figure}[H]
94 \begin{samepage}
95 % \begin{framed}
96 \showfunc{#1}
97 % \end{framed}
98 \end{samepage}
99 \end{figure}
102 \newcommand{\showfuncB}[2]{%
103 \begin{figure}[H]
104 \begin{samepage}
105 % \begin{framed}
106 \showfunc{#1}
107 \vspace{0.2cm}
108 \showfunc{#2}
109 % \end{framed}
110 \end{samepage}
111 \end{figure}
114 \newcommand{\showfuncC}[3]{%
115 \begin{figure}[H]
116 \begin{samepage}
117 % \begin{framed}
118 \showfunc{#1}
119 \vspace{0.2cm}
120 \showfunc{#2}
121 \vspace{0.2cm}
122 \showfunc{#3}
123 % \end{framed}
124 \end{samepage}
125 \end{figure}
128 \newcommand{\showfuncD}[4]{%
129 \begin{figure}[H]
130 \begin{samepage}
131 % \begin{framed}
132 \showfunc{#1}
133 \vspace{0.2cm}
134 \showfunc{#2}
135 \vspace{0.2cm}
136 \showfunc{#3}
137 \vspace{0.2cm}
138 \showfunc{#4}
139 % \end{framed}
140 \end{samepage}
141 \end{figure}
144 \newcommand{\showfuncE}[5]{%
145 \begin{figure}[H]
146 \begin{samepage}
147 % \begin{framed}
148 \showfunc{#1}
149 \vspace{0.2cm}
150 \showfunc{#2}
151 \vspace{0.2cm}
152 \showfunc{#3}
153 \vspace{0.2cm}
154 \showfunc{#4}
155 \vspace{0.2cm}
156 \showfunc{#5}
157 % \end{framed}
158 \end{samepage}
159 \end{figure}
162 \newcommand{\showfuncF}[6]{%
163 \begin{figure}[H]
164 \begin{samepage}
165 \showfunc{#1}
166 \vspace{0.2cm}
167 \showfunc{#2}
168 \vspace{0.2cm}
169 \showfunc{#3}
170 \vspace{0.2cm}
171 \showfunc{#4}
172 \vspace{0.2cm}
173 \showfunc{#5}
174 \vspace{0.2cm}
175 \showfunc{#6}
176 \end{samepage}
177 \end{figure}
180 \newenvironment{function}%
181 {\begin{minipage}[l]{1\linewidth}}%
182 {\end{minipage}}
184 \let\functionArguments=\comment
185 \let\endfunctionArguments=\endcomment
187 \let\functionExamples=\comment
188 \let\endfunctionExamples=\endcomment
190 \newenvironment{functionDescription}%
191 {\vspace{0.5cm}{\bf Description:}\footnotesize}
194 \newenvironment{enum}%
198 \newcommand{\enumElement}[2]{%
199 {\scriptsize {\bf #1}} & {\scriptsize #2}\\%
202 \newenvironment{enumList}%
203 {\begin{tabular}{p{.43\linewidth}p{.53\linewidth}}}%
204 {\end{tabular}}
206 \newcommand{\functionTitle}[1]{}
207 \newcommand{\enumTitle}[1]{enum {\bf #1}:}
209 \newenvironment{functionReturns}%
210 {\vspace{0.5cm}{\bf Returns:}\footnotesize}
213 \let\functionSince=\comment
214 \let\endfunctionSince=\endcomment