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 11212 for NEMO/trunk – NEMO

Changeset 11212 for NEMO/trunk


Ignore:
Timestamp:
2019-07-03T21:21:59+02:00 (5 years ago)
Author:
nicolasmartin
Message:

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
Location:
NEMO/trunk/doc
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/DEPS

    r11187 r11212  
    2323helvetic 
    2424hyperref 
    25 idxlayout 
    2625ifplatform 
     26imakeidx 
    2727koma-script 
    2828latex 
     29latexconfig 
    2930latex-bin 
    30 latexconfig 
    3131latex-fonts 
    3232latexmk 
     
    5353wrapfig 
    5454xcolor 
     55xkeyval 
    5556xstring 
    5657zapfchan 
    5758 
    58  
  • NEMO/trunk/doc/latex/NEMO/build

    • Property svn:ignore
      •  

        old new  
        88*.ilg 
        99*.ind 
        10 *.lof 
        11 *.log 
        12 *.lot 
         10*.lo* 
        1311*.maf 
        1412*.mtc* 
  • NEMO/trunk/doc/latex/NEMO/main/thanks.tex

    r11170 r11212  
    1 TBD 
     1J\'{e}r\^{o}me Chanut, 
     2Silvia Mocavero 
  • NEMO/trunk/doc/latex/SI3/build

    • Property svn:ignore
      •  

        old new  
        88*.ilg 
        99*.ind 
        10 *.lof 
        11 *.log 
        12 *.lot 
         10*.lo* 
        1311*.maf 
        1412*.mtc* 
  • NEMO/trunk/doc/latex/TOP/build

    • Property svn:ignore
      •  

        old new  
        88*.ilg 
        99*.ind 
        10 *.lof 
        11 *.log 
        12 *.lot 
         10*.lo* 
        1311*.maf 
        1412*.mtc* 
  • NEMO/trunk/doc/latex/global/document.tex

    r11187 r11212  
    6262\listoffigures 
    6363\listoftables 
     64\listoflistings 
    6465 
    6566\clearpage 
  • NEMO/trunk/doc/latex/global/highlighting.tex

    r11176 r11212  
    55 
    66%% Global highlighting style 
    7 \setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline} 
     7\definecolor{bg}{HTML}{f8f8f8} 
     8\usemintedstyle{emacs} 
     9\setminted{bgcolor=bg, fontsize=\scriptsize, breaklines, frame=leftline} 
    810\setminted[xml]{style=borland} %% Specific per language 
    911 
     
    2628\newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}   % \xmlcode{...} 
    2729\newmintinline[snippet]{console}{fontsize=auto, frame=lines}   % \snippet{...} 
     30 
     31%% Namelists inclusion 
     32\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} 
     33 
  • NEMO/trunk/doc/latex/global/indexes.tex

    r11189 r11212  
    2727%  pdfauthor={\firstauthor and \secondauthor}, 
    2828  colorlinks, 
    29   urlcolor=blue 
     29  citecolor=olive, 
     30  linkcolor=blue, 
     31  urlcolor=gray 
    3032} 
  • NEMO/trunk/doc/latex/global/latexmkrc

    r11178 r11212  
    11 
    2 $silent = 1; 
     2## Defaults 
     3$silent   = 1; 
    34$pdf_mode = 1; 
    4 $makeindex = "makeindex -s %R.ist %O -o %D %S"; 
    5 $pdflatex = 'pdflatex -shell-escape %O %S'; 
    65 
     6## Using relative paths 
     7$ENV{'openout_any'}='a'; 
     8$out_dir = '../build'; 
     9 
     10## Custom cmds 
     11$makeindex = 'makeindex -s %R.ist %O -o %D %S'; 
     12$pdflatex  = 'pdflatex -shell-escape %O %S'; 
     13 
     14#@BIBINPUTS=('.', '../main'); 
     15#$bibtex    = 'bibtex %O ../main/bibliography.bib'; 
     16#$kpsewhich = 'kpsewhich bibliography.bib' 
     17 
  • NEMO/trunk/doc/latex/global/new_cmds.tex

    r11187 r11212  
    3434\newcommand{\pd}[2][]{\ensuremath{\frac{\partial #1}{\partial #2}}} 
    3535 
    36 %% Namelists inclusion 
    37 \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} 
    38  
    3936%% Workaround for issue with \listoffigures 
    4037\DeclareRobustCommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 
  • NEMO/trunk/doc/latex/global/styles.tex

    r11189 r11212  
    88\renewcommand{\bibpostamble}{\end{multicols}} 
    99 
    10 %% Additionnal fonts 
     10%% Additional fonts 
    1111\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} 
    1212 
  • NEMO/trunk/doc/manual_build.sh

    r11176 r11212  
    33## Initialisation 
    44##--------------- 
    5  
    6 ## Env. variable for using relative paths with latexmk 
    7 export openout_any='a' 
    85 
    96## Default selection for models 
  • NEMO/trunk/doc/tools/shr_func.sh

    r11177 r11212  
    44    ## Not sure if this step is needed, guess latexmk should be able to detect a change 
    55    printf "\t¤ Clean previous build" 
    6     find latex/$1/build -mindepth 1 -prune -exec rm -rf {} \; 
     6    find latex/$1/build -mindepth 1 -prune -not -name $1_manual.pyg -exec rm -rf {} \; 
    77 
    88    ## HTML exports 
     
    1717    latexmk -r  ./latex/global/latexmkrc  \ 
    1818       -cd ./latex/$1/main/$1_manual \ 
    19        -outdir=../build              \ 
    2019       1> /dev/null 
    2120    [ -f ./latex/$1/build/$1_manual.pdf ] && mv ./latex/$1/build/$1_manual.pdf . 
Note: See TracChangeset for help on using the changeset viewer.