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 @ 11212

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

Mainly some modifications to enable the compilation of the manual by dedicated LaTeX editors
The compilation options have been gathered within latexmkrc RC file for Latexmk,
this has been tested successfully for 2 cross-platform softwares: Texmaker & TeXstudio?
Don't be able to test it under TeXShop for MacOS, but it should be portable as
it requires only to modify the configuration of few cmds: LaTeX, PdfLaTeX, Latexmk & PDF viewer
For a comprehensive list of available LaTeX editors, see https://en.wikibooks.org/wiki/LaTeX/Installation#Cross-platform)

Other changes

  • Rectification of the required list for LaTeX pkgs
  • Append thanks.tex with the first reviewers of chapters
  • Configuration of the background color for namelists
  • Testing of colors for different types of links
File size: 1.6 KB
Line 
1
2%% Styles
3%% ==============================================================================
4
5%\pagestyle{fancy}
6\bibliographystyle{../../global/ametsoc}
7\renewcommand{\bibpreamble}{\begin{multicols}{2}}
8\renewcommand{\bibpostamble}{\end{multicols}}
9
10%% Additional fonts
11\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
12
13%% Page layout
14%\fancyhf{}
15%\fancyhead[LE,RO]{\bfseries\thepage}
16%\fancyhead[LO]{\bfseries\hspace{-0em}\rightmark}
17%\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
18%\fancyhead[RE]{\bfseries\leftmark}
19%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
20%\renewcommand{\headrulewidth}{0.5pt}
21%\renewcommand{\footrulewidth}{0pt  }
22%\addtolength{\headheight}{2.6pt}
23
24
25%% Catcodes
26%\makeatletter
27%\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax}
28%\def\LignesVerticales{\let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}
29%\def\GrosCarreAvecUnChiffre#1{
30%  \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}
31%  \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}}
32%  \vrule height 0pt width 1cm depth 0pt
33%}
34%\def\@makechapterhead#1{
35%  \hbox{
36%     \huge\LignesVerticales\hspace{-0.5cm}
37%     \GrosCarreAvecUnChiffre{\thechapter}\hspace{0.2cm}
38%     \hbox{#1}
39%  }
40%  \par\vskip
41%1cm
42%}
43%\def\@makeschapterhead#1{
44%  \hbox{
45%     \huge\LignesVerticales
46%     \hbox{#1}
47%  }
48%  \par\vskip
49%2cm
50%}
51%\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
52%  \hbox{}
53%  \vspace*{\fill}
54%  \vspace{\fill}
55%  \thispagestyle{empty}
56%  \newpage
57%  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
58%\def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}}
59%\makeatother
60
61
Note: See TracBrowser for help on using the repository browser.