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_DIA.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_DIA.tex

    r14257 r14526  
    13311331setting the \np{ln_nc4zip}{ln\_nc4zip} logical to false in the \nam{nc4}{nc4} namelist: 
    13321332 
    1333 \begin{listing} 
    1334   \nlst{namnc4} 
    1335   \caption{\forcode{&namnc4}} 
    1336   \label{lst:namnc4} 
    1337 \end{listing} 
     1333\nlst{namnc4} 
    13381334 
    13391335If \key{netcdf4} has not been defined, these namelist parameters are not read. 
     
    14291425\label{sec:DIA_trd} 
    14301426 
    1431 \begin{listing} 
    1432   \nlst{namtrd} 
    1433   \caption{\forcode{&namtrd}} 
    1434   \label{lst:namtrd} 
    1435 \end{listing} 
     1427\nlst{namtrd} 
    14361428 
    14371429Each trend of the dynamics and/or temperature and salinity time evolution equations can be send to 
     
    14681460\label{sec:DIA_FLO} 
    14691461 
    1470 \begin{listing} 
    1471   \nlst{namflo} 
    1472   \caption{\forcode{&namflo}} 
    1473   \label{lst:namflo} 
    1474 \end{listing} 
     1462\nlst{namflo} 
    14751463 
    14761464The on-line computation of floats advected either by the three dimensional velocity field or constraint to 
     
    15711559\label{sec:DIA_diag_dct} 
    15721560 
    1573 \begin{listing} 
    1574   \nlst{nam_diadct} 
    1575   \caption{\forcode{&nam_diadct}} 
    1576   \label{lst:nam_diadct} 
    1577 \end{listing} 
     1561\nlst{nam_diadct} 
    15781562 
    15791563A module is available to compute the transport of volume, heat and salt through sections. 
     
    19431927the Indo-Pacific mask been deduced from the sum of the Indian and Pacific mask (\autoref{fig:DIA_mask_subasins}). 
    19441928 
    1945 \begin{listing} 
    19461929%  \nlst{namptr} 
    1947   \caption{\forcode{&namptr}} 
    1948   \label{lst:namptr} 
    1949 \end{listing} 
    19501930 
    19511931%% ================================================================================================= 
    19521932\subsection{25 hour mean output for tidal models} 
    19531933 
    1954 \begin{listing} 
    1955   \nlst{nam_dia25h} 
    1956   \caption{\forcode{&nam_dia25h}} 
    1957   \label{lst:nam_dia25h} 
    1958 \end{listing} 
     1934\nlst{nam_dia25h} 
    19591935 
    19601936A module is available to compute a crudely detided M2 signal by obtaining a 25 hour mean. 
Note: See TracChangeset for help on using the changeset viewer.