Skip to content
Snippets Groups Projects
Commit 3672a4a5 authored by David Dorchies's avatar David Dorchies
Browse files

fix(docs): missing utf8 French characters in Latex

IN math formulas need to put proper latex accent instructions as \acute{}

Refs #656
parent 11b3bf12
No related branches found
No related tags found
2 merge requests!252release: version 4.18.0,!251Resolve "Documentation PDF: erreurs à la compilation"
......@@ -36,7 +36,7 @@ Pour une cote de l'eau aval supérieure à la cote de la crête du déversoir, l
Villemonte propose la formule suivante :
$$K = \frac{Q_{noyé}}{Q_{dénoyé}} = \left [ 1- \left ( \frac{h2}{h1} \right)^n \right]^{0.385}$$
$$K = \frac{Q_{noy\acute{e}}}{Q_{d\acute{e}noy\acute{e}}} = \left [ 1- \left ( \frac{h2}{h1} \right)^n \right]^{0.385}$$
Avec :
......
......@@ -12,7 +12,7 @@ Pour une cote de l'eau aval supérieure à la cote de la crête du déversoir, l
Villemonte propose la formule suivante :
$$K = \frac{Q_{noyé}}{Q_{dénoyé}} = \left [ 1- \left ( \frac{h2}{h1} \right)^n \right]^{0.385}$$
$$K = \frac{Q_{noy\acute{e}}}{Q_{d\acute{e}noy\acute{e}}} = \left [ 1- \left ( \frac{h2}{h1} \right)^n \right]^{0.385}$$
Avec :
......
......@@ -47,6 +47,30 @@
%*******************************************************************************
\input{cassiopee_preamble.tex}
%*******************************************************************************
% Preamble specific for this language
%*******************************************************************************
%*******************************************************************************
% Begin the document
%*******************************************************************************
\begin{document}
%Supprime les veuves et orphelines
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
% Integre la page de garde
%\input{title.tex}
\input{rapport_inrae/cover_inrae}
\input{rapport/headfoot_content}
\cleardoublepage
% Table des matières
\cleardoublepage
\tableofcontents
%*******************************************************************************
% Contenu de la documentation en anglais, généré par pandoc via mkdocs2pdf.py
......
......@@ -48,6 +48,31 @@
\input{cassiopee_preamble.tex}
%*******************************************************************************
% Preamble specific for this language
%*******************************************************************************
%*******************************************************************************
% Begin the document
%*******************************************************************************
\begin{document}
%Supprime les veuves et orphelines
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
% Integre la page de garde
%\input{title.tex}
\input{rapport_inrae/cover_inrae}
\input{rapport/headfoot_content}
\cleardoublepage
% Table des matières
\cleardoublepage
\tableofcontents
%*******************************************************************************
% Contenu de la documentation en français, généré par pandoc via mkdocs2pdf.py
%*******************************************************************************
......
......@@ -51,26 +51,10 @@
\newunicodechar{α}{\ensuremath{\alpha}}
\newunicodechar{β}{\ensuremath{\beta}}
\newunicodechar{μ}{\ensuremath{\mu}}
\newunicodechar{σ}{\ensuremath{\sigma}}
\newunicodechar{Δ}{\ensuremath{\Delta}}
\newunicodechar{}{\ensuremath{\equiv}}
\newunicodechar{}{\ensuremath{\approx}}
\newunicodechar{ϵ}{\ensuremath{\in}}
\newunicodechar{}{\ensuremath{\hookleftarrow}}
\newunicodechar{}{\ensuremath{\leq}}
\begin{document}
%Supprime les veuves et orphelines
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
% Integre la page de garde
%\input{title.tex}
\input{rapport_inrae/cover_inrae}
\input{rapport/headfoot_content}
\cleardoublepage
% Table des matières
\cleardoublepage
\tableofcontents
......@@ -196,11 +196,11 @@ def buildPDF(lang):
# copy Cassiopée version LateX file
cvt = os.path.join(buildDir, 'cassiopee_version.tex')
shutil.copy(cvt, modelDir)
cmdline = 'latexmk -f -pdf -interaction=nonstopmode'
if verbose:
os.system('latexmk -f -xelatex -interaction=nonstopmode {0} > {0}.latexmk.log'.format(sourceTexFile))
os.system('{0} {1} > {1}.latexmk.log'.format(cmdline, sourceTexFile))
else:
os.system('latexmk -f -xelatex -interaction=nonstopmode {} > /dev/null 2>&1'.format(sourceTexFile))
os.system('{} {} > /dev/null 2>&1'.format(cmdline, sourceTexFile))
# copy generated PDF to release directory
shutil.copy(outputPdfFile, outputDir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment