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.
convert_to_HTML_latex2html.sh in branches/2017/dev_merge_2017/DOC – NEMO

source: branches/2017/dev_merge_2017/DOC/convert_to_HTML_latex2html.sh @ 9388

Last change on this file since 9388 was 9388, checked in by nicolasmartin, 6 years ago

Global reorganisation of DOC directory: implementation and configuration of syntax highlighting with 'minted' LaTeX package
New macros have been created to insert different source codes (fortran, xml, c and shell-session) in the document.
Pygments Python package is now required to compile the documentation.

  • Property svn:executable set to *
File size: 571 bytes
Line 
1#!/bin/bash
2
3sed -i -e 's#\\documentclass#%\\documentclass#' -e '/{document}/ s/^/%/' \
4   texfiles/chapters/*.tex
5sed -i    '30,${s#\\subfile{#\\include{#g}' \
6   NEMO_manual.tex
7
8latex     -shell-escape    NEMO_manual
9makeindex                  NEMO_manual
10bibtex                     NEMO_manual
11
12latex2html -local_icons -no_footnode -split 4 -link 2 -mkdir -dir html_LaTeX2HTML   \
13            $*                                                                      \
14   NEMO_manual
15
16sed -i -e 's#%\\documentclass#\\documentclass#' -e '/{document}/ s/^%//' \
17   texfiles/chapters/*.tex
18sed -i    '30,${s#\\include{#\\subfile{#g}' \
19   NEMO_manual.tex
20
21exit 0
Note: See TracBrowser for help on using the repository browser.