source: NEMO/trunk/doc/latex/global/highlighting.sty @ 11170

Last change on this file since 11170 was 11170, checked in by nicolasmartin, 18 months ago

Review of the overall building of any reference manual
Implementation of a compilation process shared between the 3 manuals: now a global document.tex will be used as the main LaTeX file (a symbolic link will refer to it in each ./engine/main directory).
At the time of the manual building, a few small LaTeX files will be imported on the fly from the corresponding folder ./latex/engine/main.

  • definitions.tex: engine, title, author(s), IPSL publication number and DOI ID
  • thanks.tex: list of collaborators to be thanked for the writing/reviewing
  • chapters.tex: ordered list of chapters (relative path to subfiles)
  • appendices.tex: ordered list of subordinate chapters (relative path to subfiles)
File size: 993 bytes
1%% Minted package: syntax highlighting configuration
2%% ==============================================================================
4%% Global highlighting style
5\setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline}
6\setminted[xml]{style=borland} %% Specific per language
8%% Oneliner
9\newmint[forline]{fortran}{}   % \forline|...|
10\newmint[xmlline]{xml}{}       % \xmlline|...|
11\newmint[cmd]{console}{}       % \cmd|...|
13%% Multi-lines
14\newminted[forlines]{fortran}{}   % \begin{forlines}
15\newminted[xmllines]{xml}{}       % \begin{xmllines}
16\newminted[cmds]{console}{}       % \begin{cmds}
17\newminted[clines]{c}{}           % \begin{clines}
19%% File
20\newmintedfile[forfile]{fortran}{}   % \forfile{../namelists/nam...}
22%% Inline
23\newmintinline[forcode]{fortran}{fontsize=auto, frame=lines}   % \forcode{...}
24\newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}   % \xmlcode{...}
25\newmintinline[snippet]{console}{fontsize=auto, frame=lines}   % \snippet{...}
Note: See TracBrowser for help on using the repository browser.