document
This commit is contained in:
parent
53169830ec
commit
0a2f3cae99
3 changed files with 19 additions and 8 deletions
|
@ -25,14 +25,15 @@ def errun(command):
|
||||||
def build(sign):
|
def build(sign):
|
||||||
for en, fr in DOCUMENTS:
|
for en, fr in DOCUMENTS:
|
||||||
command = ['xelatex', '-output-directory', TMP, en]
|
command = ['xelatex', '-output-directory', TMP, en]
|
||||||
run(command)
|
if en == 'document':
|
||||||
run(['makeglossaries', '-d', TMP, en])
|
run(command)
|
||||||
run(['biber',
|
run(['makeglossaries', '-d', TMP, en])
|
||||||
'--input-directory', TMP,
|
run(['biber',
|
||||||
'--output-directory', TMP,
|
'--input-directory', TMP,
|
||||||
en,
|
'--output-directory', TMP,
|
||||||
])
|
en,
|
||||||
run(command)
|
])
|
||||||
|
run(command)
|
||||||
run(command)
|
run(command)
|
||||||
pdf = f'{fr}.pdf'
|
pdf = f'{fr}.pdf'
|
||||||
os.rename(os.path.join(TMP, f'{en}.pdf'),
|
os.rename(os.path.join(TMP, f'{en}.pdf'),
|
||||||
|
|
9
cnam/travaux/mémoire/document.tex
Normal file
9
cnam/travaux/mémoire/document.tex
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
\newcommand{\import}[1]{\input{document/#1}}
|
||||||
|
|
||||||
|
\import{settings}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
…
|
||||||
|
|
||||||
|
\end{document}
|
1
cnam/travaux/mémoire/document/settings.tex
Normal file
1
cnam/travaux/mémoire/document/settings.tex
Normal file
|
@ -0,0 +1 @@
|
||||||
|
\documentclass[12pt]{extarticle}
|
Loading…
Add table
Add a link
Reference in a new issue