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 14526 for NEMO/trunk/doc/latex/NEMO/subfiles/chap_ASM.tex – NEMO

Ignore:
Timestamp:
2021-02-22T17:37:38+01:00 (3 years ago)
Author:
nicolasmartin
Message:

Modify \nlst LaTeX macro for better efficienty
Only one line is needed now to include the highlighted source code, the caption and the cross-reference

\newcommand{\nlst}[1]{
   \begin{listing}
      \newmintedfile{fortran}{../../../namelists/#1}
      \caption{\forcode{&#1}}
      \label{lst:#1}
   \end{listing}
}
File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_ASM.tex

    r14257 r14526  
    148148the ORCA2 grid. 
    149149 
    150 \begin{listing} 
    151   \nlst{nam_asminc} 
    152   \caption{\forcode{&nam_asminc}} 
    153   \label{lst:nam_asminc} 
    154 \end{listing} 
     150\nlst{nam_asminc} 
    155151 
    156152The header of an assimilation increments file produced using the NetCDF tool 
Note: See TracChangeset for help on using the changeset viewer.