Fix administrivia
[alexxy/gromacs.git] / manual / macros.tex
1 % This file is part of the GROMACS molecular simulation package.
2 %
3 % Copyright (c) 2013, by the GROMACS development team, led by
4 % David van der Spoel, Berk Hess, Erik Lindahl, and including many
5 % others, as listed in the AUTHORS file in the top-level source
6 % directory and at http://www.gromacs.org.
7 %
8 % GROMACS is free software; you can redistribute it and/or
9 % modify it under the terms of the GNU Lesser General Public License
10 % as published by the Free Software Foundation; either version 2.1
11 % of the License, or (at your option) any later version.
12 %
13 % GROMACS is distributed in the hope that it will be useful,
14 % but WITHOUT ANY WARRANTY; without even the implied warranty of
15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 % Lesser General Public License for more details.
17 %
18 % You should have received a copy of the GNU Lesser General Public
19 % License along with GROMACS; if not, see
20 % http://www.gnu.org/licenses, or write to the Free Software Foundation,
21 % Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
22 %
23 % If you want to redistribute modifications to GROMACS, please
24 % consider that scientific software is very special. Version
25 % control is crucial - bugs must be traceable. We will be happy to
26 % consider code for inclusion in the official distribution, but
27 % derived work must not be called official GROMACS. Details are found
28 % in the README & COPYING files - if they are missing, get the
29 % official version at http://www.gromacs.org.
30 %
31 % To help us fund GROMACS development, we humbly ask that you cite
32 % the research papers on the package. Check out http://www.gromacs.org
33
34 \setlength {\parindent}{0.0cm}
35 \setlength {\parskip}{1ex}
36 \newcommand{\ve}[1]{\mbox{\boldmath ${#1}$}} 
37   % defines bold italic vectors. To be used in text or math mode.
38   % Example: \ve{F}
39 \newcommand{\de}{\mbox{d}} 
40   % defines a straight d for derivatives.
41 \newcommand{\intel}{Intel {\em i\/}860}
42 \newcommand{\gromacs}{GROMACS}
43 \newcommand{\gromosv}[1]{GROMOS-#1}
44 \newcommand{\gromos}{GROMOS}
45 \newcommand{\dline}{\hline\hline}
46 \newcommand{\etal}{{\em et al.}}
47 \newcommand{\beq}{\begin{equation}}
48 \newcommand{\eeq}{\end{equation}}
49 \newcommand{\bea}{\begin{eqnarray}}
50 \newcommand{\eea}{\end{eqnarray}}
51 \newcommand{\Dt}{{\Delta t}}
52 \newcommand{\half}{\frac{1}{2}}
53 \newcommand{\hDt}{\half \Dt}
54 \newcommand{\rvi}{\ve{r}_i}
55 \newcommand{\rvj}{\ve{r}_j}
56 \newcommand{\rvk}{\ve{r}_k}
57 \newcommand{\rij}{r_{ij}}
58 \newcommand{\rvij}{\ve{r}_{ij}}
59 \newcommand{\rnorm}{\frac{\rvij}{\rij}}
60 \newcommand{\Fvi}{\ve{F}_i}
61 \newcommand{\Fvj}{\ve{F}_j}
62 \newcommand{\Fvk}{\ve{F}_k}
63 \newcommand{\Fvij}{\ve{F}_{ij}}
64 \newcommand{\Fvji}{\ve{F}_{ji}}
65 \newcommand{\vvi}{\ve{v}_i}
66 \newcommand{\al}{\alpha}
67 \newcommand{\be}{\beta}
68 \newcommand{\ab}{\alpha\beta}
69 \newcommand{\rnij}{\ve{r}_{ij}^n}
70 \newcommand{\rni}{\ve{r}_i^n}
71 \newcommand{\hdt}{\frac{\Delta t}{2}}
72 %\newcommand{\type}[1]{\\ {\tt \% #1}\\}
73 \newcommand{\normindex}[1]{#1{\index{#1}}}
74 \newcommand{\seeindexquiet}[2]{\index{#1|see{#2}}}
75 \newcommand{\seeindex}[2]{#1{\seeindexquiet{#1}{#2}}}
76 \newcommand{\swapindexquiet}[2]{{\index{#1 #2}}{\seeindexquiet{#2, #1}{#1 #2}}}
77 \newcommand{\swapindex}[2]{{\normindex{#1 #2}}{\seeindexquiet{#2, #1}{#1 #2}}}
78 \newcommand{\swapindexthreequiet}[3]{{\index{#1 #2 #3}}{\seeindexquiet{#2!#3!#1}{#1 #2 #3}}}
79 \newcommand{\swapindexthree}[3]{{\normindex{#1 #2 #3}}{\seeindexquiet{#2!#3!#1}{#1 #2 #3}}}
80 \newcommand{\pawsindexquiet}[2]{{\seeindexquiet{#1 #2}{#2, #1}}{\index{#2, #1}}}
81 \newcommand{\pawsindex}[2]{#1 #2{\pawsindexquiet{#1}{#2}}}
82 \newcommand{\boldindex}[1]{#1\index{#1@\textbf{#1}}}
83 \newcommand{\eg}{\em e.g.\@}
84 \newcommand{\ie}{\em i.e.\@}
85 \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}
86
87 % Commands for correct spacing in tables
88 %       TeX and TUG News, Vol.2, No.3, p10, 1993. 
89 %
90 \newcommand\T{\rule{0pt}{2.6ex}}         % Top strut
91 \newcommand\B{\rule[-1.2ex]{0pt}{0pt}}   % Bottom strut
92 \newcommand{\Ts}{\rule{0pt}{2.4ex}}      % Smaller top strut (To be used in 
93                                          % math mode in \frac, together with 
94                                          % \displaystyle
95
96 \newcommand{\captspace}{\vspace{2mm}}
97
98 \newif\ifpdfman
99 \ifx\pdfoutput\undefined
100   \pdfmanfalse % not using pdflatex  
101 \else
102   \pdfoutput=1 % using pdflatex
103   \pdfmantrue
104 \fi
105
106 \ifpdfman
107   \usepackage[pdftex]{graphicx}
108   \usepackage[pdftex,plainpages=false,pdfpagelabels,colorlinks=true,urlcolor=blue,citecolor=blue,pdfstartview=FitV]{hyperref}
109 \else
110   \usepackage{graphicx}
111   \usepackage[plainpages=false,colorlinks=true,urlcolor=blue,citecolor=blue]{hyperref}
112 \fi
113
114 % Work-arounds to allow unescaped underscores in text.
115 % These \usepackage commands should come late in the
116 % list of packages, and in this order.
117 \newcommand{\UnderscoreCommands}{\do\index}
118 \usepackage[strings]{underscore}
119 \usepackage[english]{babel}
120
121 % Slightly darker colors print better on b/w printers
122 \usepackage{color}
123 \definecolor{blue}{rgb}{0,0,0.5}
124 \definecolor{red}{rgb}{0.5,0,0}
125
126 \makeindex
127 % The total a4 paper width is 210 mm, and the margins are defined
128 % relative to the standard margin of 1 inch.
129 \setlength{\textwidth}{15cm}
130 \setlength{\oddsidemargin}{9.6mm}  %35mm-1inch
131 \setlength{\evensidemargin}{-0.4mm} %25mm-1inch
132 \setlength{\topmargin}{-4.4mm} % 21mm top margin
133 \setlength{\textheight}{22cm}
134
135 \renewcommand{\textfraction}{0.0}
136 \newcommand{\qtw}{3.75cm}  % 1/4 of the textwidth
137 \newcommand{\ttw}{4.33cm}  % 1/3 of the textwidth
138 \newcommand{\htw}{7.5cm}  % 1/2 of the textwidth
139 \newcommand{\ntw}{13cm} % 0.9 of the textwidth
140 \newcommand{\gmxver}{@PROJECT_VERSION@}
141 \newcommand{\gmxyear}{\the\year}
142 \newcommand{\figref}[1]{Fig.~\ref{fig:#1}}
143 \newcommand{\figsref}[2]{Figs.~\ref{fig:#1} and ~\ref{fig:#2}}
144 \newcommand{\tabref}[1]{Table~\ref{tab:#1}}
145 \newcommand{\eqnref}[1]{eqn.~\ref{eqn:#1}}
146 \newcommand{\eqnsref}[2]{eqns.~\ref{eqn:#1} and \ref{eqn:#2}}
147 \newcommand{\secref}[1]{sec.~\ref{sec:#1}}
148 \newcommand{\tsecref}[1]{\ref{sec:#1}}
149 \newcommand{\ssecref}[1]{\ref{subsec:#1}}
150 \newcommand{\sssecref}[1]{\ref{subsubsec:#1}}
151 \newcommand{\chref}[1]{chapter~\ref{ch:#1}}
152 \newcommand{\appref}[1]{Appendix~\ref{app:#1}}
153 \newcommand{\wwwpage}{\href{http://www.gromacs.org}{www.gromacs.org}}
154 \newcommand{\gerritpage}{\href{http://gerrit.gromacs.org}{gerrit.gromacs.org}}
155 \newcommand{\redminepage}{\href{http://redmine.gromacs.org}{redmine.gromacs.org}}
156 % NOTE: \wwwpage is explicitly included in the 'verbatim' citing instructions!
157 \newcommand{\mcc}[2]{\multicolumn{#1}{c|}{#2}}
158 \newcommand{\mcl}[2]{\multicolumn{#1}{l}{#2}}
159 \setlength{\headwidth}{\textwidth}
160 \setlength{\headheight}{1.0cm}
161
162 % LocalWords:  GROMOS et al ij ji rgb eqn eqns GROMACS