source: NEMO/trunk/doc/manual_build.sh @ 11176

Last change on this file since 11176 was 11176, checked in by nicolasmartin, 16 months ago

Implementation of multi-indexes instead of an indiscrimate aggregate index
Creation of 5 sections under Indexes chapter for the most relevant lists of index entries:
namelist blocks and parameters, CPP keys, modules and subroutines.

  • indexes.tex & index.ist: new file in global directory for index management
  • Add symbolic links under main to non-existing *.idx before LaTeX compilation to reduce trivial error messages with makeindex
  • Create latexmkrc init file loaded latexmk with '-r' option in order to apply the style rules to the indexes with the sequence of several compilations

Other changes:

  • Define a preamble.tex with the list of files to load from global folder
  • Integrate 'Citation' subsubsection in new info_page.tex for the 2nd page along with 'frontpage.tex' for the cover, in order to have a clear distinction with \maketitle in the main LaTeX document
  • Move 'Foreword' chapter from subfiles to main as more appropriate

Bugfixes with few attempts of HTML export

  • One single location for defining the paths to search for images with \graphicspath in packages.tex
  • Renaming of authors variables (\1stauthor\firstauthor and so one)
  • Update of LaTeX dependencies in terms of new pkgs (DEPS)
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[9407]1#!/bin/sh
2
[11004]3## Initialisation
4##---------------
[9407]5
[11176]6## Env. variable for using relative paths with latexmk
[11120]7export openout_any='a'
[10474]8
[11004]9## Default selection for models
10if   [ "$1" = 'all' ]; then
[11120]11    models='NEMO SI3 TOP'
[11004]12elif [ "$1" =    '' ]; then
[11120]13    models='NEMO'
[11004]14else
[11120]15    models=$*
[11004]16fi
[10146]17
[11004]18# Source shared functions
19. tools/shr_func.sh
[10146]20
21
[11004]22## Check dependancies
23##-------------------
[10474]24
[11004]25## LaTeX installation, find latexmk should be enough
[11120]26[ -z $( which latexmk ) ] && { echo 'latexmk not installed => QUIT'; exit 2; }
[10474]27
[11120]28## Pygments package for syntax highlighting of source code (namelists & snippets)
29[ -n "$( ./tools/check_pkg.py pygments )" ] && { echo 'Python pygments is missing => QUIT'; exit 2; }
30
[11004]31## Retrieve figures if not already there
32if [ ! -d latex/figures ]; then
[11120]33    printf "Downloading of shared figures and logos\n\n"
34    svn co https://forge.ipsl.jussieu.fr/nemo/svn/utils/figures latex/figures > /dev/null
[11004]35fi
[10610]36
[10146]37
[11004]38## Loop on the models
39##-------------------
40
41for model in $models; do
[11120]42    echo $model
43    clean $model
44    build $model
45    printf "\t¤ End of building run\n"
46    echo
[11004]47done
48
[9407]49exit 0
[11176]50
Note: See TracBrowser for help on using the repository browser.