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.
highlighting.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/highlighting.tex @ 14457

Last change on this file since 14457 was 14257, checked in by nicolasmartin, 3 years ago

Overall review of LaTeX sources (not tested completely as of now):

  • Reworking global files: main document.tex, add glossary.tex, cosmetic changes...
  • Ignore missing namelists (namsbc_isf, namsbc_iscpl and namptr)
  • Removal of references for unused indices (\hfile, \ifile and \jp)
  • Update of .svnignore and svn:ignore properties accordingly
  • Split of manual abstract into a common NEMO abs for all and a specific one for each engine
  • Shrinking variables names used in the frontmatter
File size: 1.3 KB
RevLine 
[14257]1%% =================================================================================================
[11176]2%% Syntax highlighting configuration
[14257]3%% =================================================================================================
[11148]4
5%% Global highlighting style
[14257]6\definecolor{bg}{HTML}{f8f8f8} %% ?
[11212]7\usemintedstyle{emacs}
[14257]8\setminted{bgcolor=bg,fontsize=\scriptsize,breaklines}
9\setminted[xml]{style=borland} %% Specific style for XML
[11148]10
[14257]11%% Inline
12\newmintinline[forcode]{fortran}{bgcolor=,fontsize=auto} %% \forcode{...}
13\newmintinline[xmlcode]{xml}{    bgcolor=,fontsize=auto} %% \xmlcode{...}
14\newmintinline[snippet]{console}{bgcolor=,fontsize=auto} %% \snippet{...}
15
[11148]16%% Oneliner
[14257]17\newmint[forline]{fortran}{} %% \forline|...|
18\newmint[xmlline]{xml    }{} %% \xmlline|...|
19\newmint[cmd]{    console}{} %% \cmd|...|
[11148]20
21%% Multi-lines
[14257]22\newminted[forlines]{fortran}{} %% \begin{forlines}
23\newminted[xmllines]{xml    }{} %% \begin{xmllines}
24\newminted[cmds]{    console}{} %% \begin{cmds}
25\newminted[clines]{  c      }{} %% \begin{clines}
[11148]26
[14257]27%% File (namelist or module)
[14113]28\newmintedfile[forfile]{fortran}{}
[11148]29
[11212]30%% Namelists inclusion
31\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
[14257]32%\newcommand{\nlst}[1]{
33%   \begin{listing}
34%      \newmintedfile{fortran}{../../../namelists/#1}
35%      \caption{\forcode{&#1}}
36%      \label{lst:#1}
37%   \end{listing}
38%}
Note: See TracBrowser for help on using the repository browser.