source: NEMO/trunk/doc/PDF_creation.sh @ 10442

Last change on this file since 10442 was 10405, checked in by nicolasmartin, 2 years ago

Add .svnignore for managing globally the skiping files and switch to latexmk to build the documentation from LaTeX

  • Use .svnignore to update the extensions list and apply it with svn pset -R svn:ignore -F .svnignore latex
  • Latexmk is a LaTeX package (https://www.ctan.org/pkg/latexmk) which takes care of the compilation process, in particular the update of the cross-references
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 632 bytes
RevLine 
[9407]1#!/bin/sh
2
3
[10405]4export opts='-shell-escape -pdf'
[10146]5model='NEMO'
[9407]6
[10146]7clean() {
8    ## Delete latex build files
[10405]9    find latex -regextype posix-extended                                              \
10         -regex ".*\.(aux|bbl|blg|dvi|fdb|fls|idx|ilg|ind|log|maf|mtc|out|pdf|toc).*" \
11         -exec rm {} \;
[10146]12
13    ## Remove 'minted' directories
14    find latex -type d -name '_minted*' -exec rm -r {} \;
15
16    ## HTML exports
17    find latex -type d -name 'html*'    -exec rm -r {} \;
18}
19
20build() {
21    cd latex/$1/main
[10405]22    latexmk $opts $1'_manual' > /dev/null
23    mv            $1'_manual'.pdf ../../..
[10146]24    cd -
25}
26
27clean
[10405]28build $model
[10146]29
[9407]30exit 0
Note: See TracBrowser for help on using the repository browser.