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.
shr_func.sh in NEMO/trunk/doc/tools – NEMO

source: NEMO/trunk/doc/tools/shr_func.sh @ 11316

Last change on this file since 11316 was 11212, checked in by nicolasmartin, 5 years ago

Mainly some modifications to enable the compilation of the manual by dedicated LaTeX editors
The compilation options have been gathered within latexmkrc RC file for Latexmk,
this has been tested successfully for 2 cross-platform softwares: Texmaker & TeXstudio?
Don't be able to test it under TeXShop for MacOS, but it should be portable as
it requires only to modify the configuration of few cmds: LaTeX, PdfLaTeX, Latexmk & PDF viewer
For a comprehensive list of available LaTeX editors, see https://en.wikibooks.org/wiki/LaTeX/Installation#Cross-platform)

Other changes

  • Rectification of the required list for LaTeX pkgs
  • Append thanks.tex with the first reviewers of chapters
  • Configuration of the background color for namelists
  • Testing of colors for different types of links
  • Property svn:executable set to *
File size: 622 bytes
Line 
1#!/bin/sh
2
3clean() {
4    ## Not sure if this step is needed, guess latexmk should be able to detect a change
5    printf "\t¤ Clean previous build"
6    find latex/$1/build -mindepth 1 -prune -not -name $1_manual.pyg -exec rm -rf {} \;
7
8    ## HTML exports
9    #printf '   - possible HTML export'
10    #find latex/$1 -type d -name 'html*'    -exec rm -r {} \;
11
12    echo
13}
14
15build() {
16    printf "\t¤ Generation of the PDF format\n"
17    latexmk -r  ./latex/global/latexmkrc  \
18       -cd ./latex/$1/main/$1_manual \
19       1> /dev/null
20    [ -f ./latex/$1/build/$1_manual.pdf ] && mv ./latex/$1/build/$1_manual.pdf .
21    echo
22}
23
Note: See TracBrowser for help on using the repository browser.