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/apdx_DOMAINcfg.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/apdx_DOMAINcfg.tex

    r14375 r14526  
    4242 
    4343\begin{listing} 
    44 %  \nlst{namdom_domcfg} 
    4544  \begin{forlines} 
    4645!----------------------------------------------------------------------- 
     
    409408 
    410409\begin{listing} 
    411 %  \nlst{namzgr_sco_domcfg} 
    412410  \caption{\forcode{&namzgr_sco_domcfg}} 
    413411  \label{lst:namzgr_sco_domcfg} 
Note: See TracChangeset for help on using the changeset viewer.