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

Last change on this file since 15814 was 14530, checked in by nicolasmartin, 3 years ago

Revert commit 14526, can't use verbatim envs in macro

File size: 1.2 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
[14530]31\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
32
Note: See TracBrowser for help on using the repository browser.