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/branches/2019/ENHANCE-02_ISF_nemo/doc/latex/global – NEMO

source: NEMO/branches/2019/ENHANCE-02_ISF_nemo/doc/latex/global/highlighting.tex @ 12143

Last change on this file since 12143 was 12143, checked in by mathiot, 4 years ago

update ENHANCE-02_ISF_nemo to 12072 (sette in progress)

File size: 1.1 KB
Line 
1%% Syntax highlighting configuration
2%% ==============================================================================
3
4\usepackage[outputdir=../build, chapter, newfloat]{minted}
5
6%% Global highlighting style
7\definecolor{bg}{HTML}{f8f8f8}
8\usemintedstyle{emacs}
9\setminted{bgcolor=bg, fontsize=\scriptsize, breaklines}
10\setminted[xml]{style=borland} %% Specific per language
11
12%% Oneliner
13\newmint[forline]{fortran}{}   % \forline|...|
14\newmint[xmlline]{xml}{}       % \xmlline|...|
15\newmint[cmd]{console}{}       % \cmd|...|
16
17%% Multi-lines
18\newminted[forlines]{fortran}{}   % \begin{forlines}
19\newminted[xmllines]{xml}{}       % \begin{xmllines}
20\newminted[cmds]{console}{}       % \begin{cmds}
21\newminted[clines]{c}{}           % \begin{clines}
22
23%% File
24\newmintedfile[forfile]{fortran}{}
25
26%% Inline
27\newmintinline[forcode]{fortran}{bgcolor=, fontsize=auto}   % \forcode{...}
28\newmintinline[xmlcode]{xml}{    bgcolor=, fontsize=auto}   % \xmlcode{...}
29\newmintinline[snippet]{console}{bgcolor=, fontsize=auto}   % \snippet{...}
30
31%% Namelists inclusion
32\newcommand{\nlst}[1]{\forfile{../../../namelists/#1}}
Note: See TracBrowser for help on using the repository browser.