source:
NEMO/trunk/doc/latex/global/indexes.tex
@
12511
Last change on this file since 12511 was 12377, checked in by acc, 4 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[11176] | 1 | |
2 | \usepackage{imakeidx} | |
3 | ||
4 | %% Index entries (italic font for files, preformat for code) | |
5 | \newcommand{\hf}[1]{\textit{#1.h90} \index{h90 files!#1}} | |
6 | \newcommand{\ifile}[1]{\textit{#1.nc} \index{Input NetCDF files!#1.nc}} | |
7 | \newcommand{\jp}[1]{\texttt{#1} \index{Model parameters!#1}} | |
[11178] | 8 | \newcommand{\key}[1]{\index[keys]{#1} \texttt{\textbf{key\_#1}}} |
9 | \newcommand{\mdl}[1]{\index[modules]{#1} \textit{#1.F90} } | |
10 | \newcommand{\ngn}[1]{\index[blocks]{#1} \texttt{#1} } | |
11 | \newcommand{\np}[1]{ \index[parameters]{#1} \texttt{#1} } | |
12 | \newcommand{\rou}[1]{\index[subroutines]{#1} \texttt{#1} } | |
[11176] | 13 | |
14 | \indexsetup{toclevel=section, othercode=\small} | |
15 | ||
16 | \makeindex[intoc=true, name=keys , title=CPP keys ] | |
17 | \makeindex[intoc=true, name=modules , title=Modules ] | |
18 | \makeindex[intoc=true, name=blocks , title=Namelist blocks ] | |
19 | \makeindex[intoc=true, name=parameters , title=Namelist parameters, columns=3] | |
20 | \makeindex[intoc=true, name=subroutines, title=Subroutines ] | |
21 | ||
[11189] | 22 | |
23 | %% Load hyperref at the end of the preamble to make it work with other pkgs | |
24 | \usepackage{hyperref} %% hyper | |
25 | \hypersetup{ | |
26 | % pdftitle={\heading}, | |
27 | % pdfauthor={\firstauthor and \secondauthor}, | |
28 | colorlinks, | |
[11212] | 29 | citecolor=olive, |
30 | linkcolor=blue, | |
31 | urlcolor=gray | |
[11189] | 32 | } |
Note: See TracBrowser
for help on using the repository browser.