diff --git a/mkdocs2pdf.py b/mkdocs2pdf.py index 465aeef43bd1c2628983c4ffedd76795fb05e530..9109fe9e29c8f78ef82bc65fd3599944a26f0bec 100644 --- a/mkdocs2pdf.py +++ b/mkdocs2pdf.py @@ -156,6 +156,18 @@ def injectContentIntoModel(mergedDocFilenameTex, lang): runCommand( 'ln -s ../../latex/logo_pole.png .' ) + runCommand( + 'ln -s {}/schema_rugosite_fond.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam')) + ) + runCommand( + 'ln -s {}/bloc_cylindre.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam')) + ) + runCommand( + 'ln -s {}/bloc_face_arrondie.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam')) + ) + runCommand( + 'ln -s {}/bloc_base_carree.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam')) + ) runCommand( 'rm rapport_inrae/logos.tex' ) @@ -176,7 +188,7 @@ def buildPDF(lang): cvt = os.path.join( baseDir,'docs/cassiopee_version.tex') shutil.copy(cvt, modelDir) - runCommand( + os.system( 'latexmk -f -xelatex -pdf -interaction=nonstopmode {} > /dev/null 2>&1'.format(sourceTexFile) ) # copy generated PDF to release directory