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.
Changeset 9360 for branches/2017/dev_merge_2017/DOC/TexFiles/Preamble.tex – NEMO

Ignore:
Timestamp:
2018-02-26T15:41:49+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Preamble.tex: some cleaning, use \path instead of \textit for path typeset, testing of 2 different ways to include source code with syntax highlighting, preliminary work on hyphenation to fix overfull errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/TexFiles/Preamble.tex

    r9350 r9360  
    2020%\WarningsOff* 
    2121 
    22 %\usepackage[french]{babel} 
    23 %\usepackage{color} 
    2422\usepackage{graphicx}                            % allows insertion of pictures 
    25 %\usepackage{graphics}                           % allows insertion of pictures 
    2623\graphicspath{{Figures/}}                                  % Set global directory for pictures 
    27 %\DeclareGraphicsExtensions{.pdf,.eps}                      % Use .eps for LaTeX2HTML 
    28 %\usepackage{xcolor}                                       % Incompatibility with color -> graphicx 
    2924\usepackage[capbesideposition={top,center}]{floatrow}      % allows captions 
    3025\floatsetup[table]{style=plaintop}                         % beside pictures 
     
    3328\usepackage{enumitem}                                      % allows non-bold description items 
    3429\usepackage{longtable}                                     % allows multipage tables 
    35 %\usepackage{colortbl}                                     % gives coloured panels behind table columns 
    3630 
    3731%hyperref 
     32\usepackage[obeyspaces]{url} 
    3833\usepackage[pdftitle={NEMO ocean engine},pdfauthor={Gurvan Madec},pdfstartview=FitH, 
    3934bookmarks=true,bookmarksopen=true,breaklinks=true,colorlinks=true, 
     
    190185 
    191186\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} 
     187 
     188\usepackage{hyphenat} 
     189\hyphenation{AGRIF FORTRAN NEMOVAR bi-laplacian off-line on-line sea-ice well-known} 
     190 
     191%% Add source code highlighting 
     192%% From LaTeX Wikibooks https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings 
     193\usepackage{listings} 
     194\usepackage{xcolor} 
     195%% Colors from Trac default style 
     196\definecolor{backgroundcode}{HTML}{f8f8f8} 
     197\definecolor{graycode}{HTML}{666666} 
     198\definecolor{greencode}{HTML}{008800} 
     199\definecolor{purplecode}{HTML}{AA22FF} 
     200\definecolor{redcode}{HTML}{BB4444} 
     201\definecolor{yellowcode}{HTML}{B8860B} 
     202\lstset{language=[90]Fortran, 
     203  backgroundcolor=\color{backgroundcode}, 
     204  basicstyle=\tiny, 
     205  breaklines=true, 
     206  commentstyle=\color{greencode}, 
     207  identifierstyle=\color{yellowcode}, 
     208  keywordstyle=\color{purplecode}, 
     209  numberstyle=\color{graycode}, 
     210  stringstyle=\color{redcode}, 
     211  title=\lstname, 
     212} 
     213 
     214\usepackage{minted} 
     215\usemintedstyle{emacs} 
Note: See TracChangeset for help on using the changeset viewer.