New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
styles.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/styles.tex @ 11176

Last change on this file since 11176 was 11176, checked in by nicolasmartin, 5 years ago

Implementation of multi-indexes instead of an indiscrimate aggregate index
Creation of 5 sections under Indexes chapter for the most relevant lists of index entries:
namelist blocks and parameters, CPP keys, modules and subroutines.

  • indexes.tex & index.ist: new file in global directory for index management
  • Add symbolic links under main to non-existing *.idx before LaTeX compilation to reduce trivial error messages with makeindex
  • Create latexmkrc init file loaded latexmk with '-r' option in order to apply the style rules to the indexes with the sequence of several compilations

Other changes:

  • Define a preamble.tex with the list of files to load from global folder
  • Integrate 'Citation' subsubsection in new info_page.tex for the 2nd page along with 'frontpage.tex' for the cover, in order to have a clear distinction with \maketitle in the main LaTeX document
  • Move 'Foreword' chapter from subfiles to main as more appropriate

Bugfixes with few attempts of HTML export

  • One single location for defining the paths to search for images with \graphicspath in packages.tex
  • Renaming of authors variables (\1stauthor -> \firstauthor and so one)
  • Update of LaTeX dependencies in terms of new pkgs (DEPS)
File size: 1.6 KB
Line 
1%% Styles
2%% ==============================================================================
3
4%\pagestyle{fancy}
5\bibliographystyle{../../global/ametsoc}
6
7%% Additionnal fonts
8\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
9
10%% Hyperref
11\hypersetup{
12%  pdftitle={\heading},
13%  pdfauthor={\firstauthor and \secondauthor},
14  colorlinks
15}
16
17%% Page layout
18%\fancyhf{}
19%\fancyhead[LE,RO]{\bfseries\thepage}
20%\fancyhead[LO]{\bfseries\hspace{-0em}\rightmark}
21%\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
22%\fancyhead[RE]{\bfseries\leftmark}
23%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
24%\renewcommand{\headrulewidth}{0.5pt}
25%\renewcommand{\footrulewidth}{0pt  }
26%\addtolength{\headheight}{2.6pt}
27
28
29%% Catcodes
30%\makeatletter
31%\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax}
32%\def\LignesVerticales{\let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}
33%\def\GrosCarreAvecUnChiffre#1{
34%  \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}
35%  \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}}
36%  \vrule height 0pt width 1cm depth 0pt
37%}
38%\def\@makechapterhead#1{
39%  \hbox{
40%     \huge\LignesVerticales\hspace{-0.5cm}
41%     \GrosCarreAvecUnChiffre{\thechapter}\hspace{0.2cm}
42%     \hbox{#1}
43%  }
44%  \par\vskip
45%1cm
46%}
47%\def\@makeschapterhead#1{
48%  \hbox{
49%     \huge\LignesVerticales
50%     \hbox{#1}
51%  }
52%  \par\vskip
53%2cm
54%}
55%\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
56%  \hbox{}
57%  \vspace*{\fill}
58%  \vspace{\fill}
59%  \thispagestyle{empty}
60%  \newpage
61%  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
62%\def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}}
63%\makeatother
Note: See TracBrowser for help on using the repository browser.