source: NEMO/trunk/doc/latex/global/minted.sty @ 11148

Last change on this file since 11148 was 11148, checked in by nicolasmartin, 23 months ago

Reorganisation of the latex directory
Creation of frontpages.tex to standardise the look of the manuals and few !LaTeX files to facilitate the overall modifications

  • minted : syntax highlighting
  • packages.sty : !LaTeX packages to load
  • styles.sty : gathering of all rules affecting the style
  • new_cmds.sty : custom LaTeX commands
  • todonotes.sty: insertion of TODO bubbles inline or at the margin
File size: 993 bytes
Line 
1%% Minted package: syntax highlighting configuration
2%% ==============================================================================
3
4%% Global highlighting style
5\setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline}
6\setminted[xml]{style=borland} %% Specific per language
7
8%% Oneliner
9\newmint[forline]{fortran}{}   % \forline|...|
10\newmint[xmlline]{xml}{}       % \xmlline|...|
11\newmint[cmd]{console}{}       % \cmd|...|
12
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}
18
19%% File
20\newmintedfile[forfile]{fortran}{}   % \forfile{../namelists/nam...}
21
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.