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

Last change on this file since 11176 was 11176, checked in by nicolasmartin, 5 years ago

Implementation of multi-indexes instead of an indiscrimate aggregate index
Creation of 5 sections under Indexes chapter for the most relevant lists of index entries:
namelist blocks and parameters, CPP keys, modules and subroutines.

  • indexes.tex & index.ist: new file in global directory for index management
  • Add symbolic links under main to non-existing *.idx before LaTeX compilation to reduce trivial error messages with makeindex
  • Create latexmkrc init file loaded latexmk with '-r' option in order to apply the style rules to the indexes with the sequence of several compilations

Other changes:

  • Define a preamble.tex with the list of files to load from global folder
  • Integrate 'Citation' subsubsection in new info_page.tex for the 2nd page along with 'frontpage.tex' for the cover, in order to have a clear distinction with \maketitle in the main LaTeX document
  • Move 'Foreword' chapter from subfiles to main as more appropriate

Bugfixes with few attempts of HTML export

  • One single location for defining the paths to search for images with \graphicspath in packages.tex
  • Renaming of authors variables (\1stauthor -> \firstauthor and so one)
  • Update of LaTeX dependencies in terms of new pkgs (DEPS)
File size: 1018 bytes
Line 
1%% Syntax highlighting configuration
2%% ==============================================================================
3
4\usepackage[outputdir=../build]{minted}
5
6%% Global highlighting style
7\setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline}
8\setminted[xml]{style=borland} %% Specific per language
9
10%% Oneliner
11\newmint[forline]{fortran}{}   % \forline|...|
12\newmint[xmlline]{xml}{}       % \xmlline|...|
13\newmint[cmd]{console}{}       % \cmd|...|
14
15%% Multi-lines
16\newminted[forlines]{fortran}{}   % \begin{forlines}
17\newminted[xmllines]{xml}{}       % \begin{xmllines}
18\newminted[cmds]{console}{}       % \begin{cmds}
19\newminted[clines]{c}{}           % \begin{clines}
20
21%% File
22\newmintedfile[forfile]{fortran}{}   % \forfile{../namelists/nam...}
23
24%% Inline
25\newmintinline[forcode]{fortran}{fontsize=auto, frame=lines}   % \forcode{...}
26\newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}   % \xmlcode{...}
27\newmintinline[snippet]{console}{fontsize=auto, frame=lines}   % \snippet{...}
Note: See TracBrowser for help on using the repository browser.