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.
LaTeX2HTML.sh in NEMO/releases/release-3.6/DOC – NEMO

source: NEMO/releases/release-3.6/DOC/LaTeX2HTML.sh @ 11998

Last change on this file since 11998 was 6992, checked in by nicolasmartin, 8 years ago

Global reorganisation of DOC directory to ensure the export of NEMO Reference Manual both in PDF & HTML

  • Move 'Figures' and 'Namelists' from ./TexFiles? to the root, create 'Styles' directory in ./TexFiles? with corresponding files and generate EPS version of all figures
  • Fix LaTex? typos, add the possibility to compile each chapter separately with 'subfiles' package and clean the main LaTeX file by creating 'Preamble.tex' & 'Top_Matter.tex' in ./TexFiles?
  • Provide LaTeX2HTML.sh script for producing HTML output (LaTeX2HTML tool needed with patch)
  • Remove PDF files from versionned files
  • Property svn:executable set to *
File size: 541 bytes
Line 
1#!/bin/bash
2
3sed -i -e 's#\\documentclass#%\\documentclass#' -e '/{document}/ s/^/%/' TexFiles/Chapters/*.tex
4sed -i    '30,${s#\\subfile{#\\include{#g}'                                    NEMO_book.tex
5latex NEMO_book && makeindex NEMO_book && bibtex NEMO_book
6mkdir -p html
7latex2html -local_icons -no_footnode -split 4 -link 2 -dir html $*
8sed -i -e 's#%\\documentclass#\\documentclass#' -e '/{document}/ s/^%//' TexFiles/Chapters/*.tex
9sed -i    '30,${s#\\include{#\\subfile{#g}'                                    NEMO_book.tex
10
11exit 0
Note: See TracBrowser for help on using the repository browser.