summaryrefslogtreecommitdiff
path: root/2004/netfilter-failover-ols2004/OLS2004-proceedings/TEMPLATES/mpss-commands.tex
blob: 11faa2f92e21fa6bd49e2ff9bc3579ff4ab27177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

\providecommand{\struct}[1]{\texttt{#1}}
\providecommand{\func}[1]{\texttt{#1}}
\providecommand{\var}[1]{\texttt{#1}}
\providecommand{\property}[1]{\texttt{#1}}
\providecommand{\syscall}[1]{\textbf{\texttt{#1}}}

% Usage: \graphfigure[placement]{graphicx options}{filename}{label}{caption}
% The \leavevmode is magical
\providecommand{\graphfigure}[5][{hbt}]{\begin{figure}[#1]%
                                      \leavevmode%
                                      \begin{center}%
                                         \includegraphics[#2]{#3}%
                                      \end{center}%
                                      \caption{#5}%
                                      \label{fig:#4}%
                                   \end{figure}}

% The \graphfigurespan command spans 2 columns
\providecommand{\graphfigurespan}[5][{hbt}]{\begin{figure*}[#1]%
                                      \leavevmode%
                                      \begin{center}%
                                         \includegraphics[#2]{#3}%
                                      \end{center}%
                                      \caption{#5}%
                                      \label{fig:#4}%
                                   \end{figure*}}

% The \twographfigurespan contains 2 graphs and spans 2 columns
\providecommand{\twographfigurespan}[6][{hbt}]{\begin{figure*}[#1]%
                                      \leavevmode%
                                      \hbox{
                                         \includegraphics[#2]{#3}%
                                         \hspace{1.5cm}%
                                         \includegraphics[#2]{#4}%
                                      }%
                                      \caption{#6}%
                                      \label{fig:#5}%
                                   \end{figure*}}

\renewcommand{\struct}[1]{\texttt{#1}}
\renewcommand{\func}[1]{\texttt{#1}}
\renewcommand{\var}[1]{\texttt{#1}}
\renewcommand{\property}[1]{\texttt{#1}} 
\renewcommand{\syscall}[1]{\textbf{\texttt{#1}}}

% Usage: \graphfigure[placement]{graphicx options}{filename}{label}{caption}
% The \leavevmode is magical
\renewcommand{\graphfigure}[5][{hbt}]{\begin{figure}[#1]%
                                      \leavevmode%
                                      \begin{center}%
                                         \includegraphics[#2]{#3}%
                                      \end{center}%
                                      \caption{#5}%
                                      \label{fig:#4}%
                                   \end{figure}}

% The \graphfigurespan command spans 2 columns
\renewcommand{\graphfigurespan}[5][{hbt}]{\begin{figure*}[#1]%
                                      \leavevmode%
                                      \begin{center}%
                                         \includegraphics[#2]{#3}%
                                      \end{center}%
                                      \caption{#5}%
                                      \label{fig:#4}%
                                   \end{figure*}}

% The \twographfigurespan contains 2 graphs and spans 2 columns
\renewcommand{\twographfigurespan}[6][{hbt}]{\begin{figure*}[#1]\leavevmode\hbox{\includegraphics[#2]{#3}\hspace{1.5cm}\includegraphics[#2]{#4}}\caption{#6}\label{fig:#5}\end{figure*}}

personal git repositories of Harald Welte. Your mileage may vary