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.
Changeset 9389 for branches/2017/dev_merge_2017/DOC/tex_sub/NEMO_minted.sty – NEMO

Ignore:
Timestamp:
2018-03-08T21:56:32+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Starting to use minted macros to highlight namelists parameters: \textit -> \forcode
Work in progress as all escape characters (\) have to be removed in namelist parameter ids
Then several \np macros along with their paramater values with will be replaced by \forcode{np = value} apart from section headings for indexing
Fixes: style issue by reordering preamble section, removing \np macros inside equations and editing path to NEMO_manual.tex for subfiles.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/tex_sub/NEMO_minted.sty

    r9388 r9389  
    1818%% ============================================================================== 
    1919 
    20 \newmint[forline]{fortran}{}                          % \forline|...| 
    21 \newmint[xmlline]{xml}{    }                          % \xmlline|...| 
    22 \newmint[cmd]{console}{}                              % \cmd|...| 
     20\newmint[forline]{fortran}{}        % \forline|...| 
     21\newmint[xmlline]{xml}{}         % \xmlline|...| 
     22\newmint[cmd]{console}{}         % \cmd|...| 
    2323 
    2424 
     
    2626%% ============================================================================== 
    2727 
    28 \newminted[forlines]{fortran}{}                       % \begin{forlines} 
    29 \newminted[xmllines]{xml}{}                           % \begin{xmllines} 
    30 \newminted[cmds]{console}{}                           % \begin{cmds} 
    31 \newminted[clines]{c}{fontsize=\tiny}                    % \begin{clines} 
     28\newminted[forlines]{fortran}{}        % \begin{forlines} 
     29\newminted[xmllines]{xml}{}         % \begin{xmllines} 
     30\newminted[cmds]{console}{}         % \begin{cmds} 
     31\newminted[clines]{c}{fontsize=\tiny}        % \begin{clines} 
    3232 
    3333 
     
    4040%% ============================================================================== 
    4141 
    42 \newmintinline[forcode]{fortran}{frame=lines}         % \forcode{...} 
    43 \newmintinline[xmlcode]{xml}{    frame=lines}         % \xmlcode{...} 
    44 \newmintinline[snippet]{console}{frame=lines}         % \snippet{...} 
     42\newmintinline[forcode]{fortran}{fontsize=auto, frame=lines}         % \forcode{...} 
     43\newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}         % \xmlcode{...} 
     44\newmintinline[snippet]{console}{fontsize=auto, frame=lines}         % \snippet{...} 
Note: See TracChangeset for help on using the changeset viewer.