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

Last change on this file since 14257 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
Line 
1%% =================================================================================================
2%% Syntax highlighting configuration
3%% =================================================================================================
4
5%% Global highlighting style
6\definecolor{bg}{HTML}{f8f8f8} %% ?
7\usemintedstyle{emacs}
8\setminted{bgcolor=bg,fontsize=\scriptsize,breaklines}
9\setminted[xml]{style=borland} %% Specific style for XML
10
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
16%% Oneliner
17\newmint[forline]{fortran}{} %% \forline|...|
18\newmint[xmlline]{xml    }{} %% \xmlline|...|
19\newmint[cmd]{    console}{} %% \cmd|...|
20
21%% Multi-lines
22\newminted[forlines]{fortran}{} %% \begin{forlines}
23\newminted[xmllines]{xml    }{} %% \begin{xmllines}
24\newminted[cmds]{    console}{} %% \begin{cmds}
25\newminted[clines]{  c      }{} %% \begin{clines}
26
27%% File (namelist or module)
28\newmintedfile[forfile]{fortran}{}
29
30%% Namelists inclusion
31\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
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.