build/glossaries
This commit is contained in:
parent
4fbf4356c7
commit
dafceb6e52
1 changed files with 12 additions and 10 deletions
|
@ -8,22 +8,23 @@ DOCUMENTS = [
|
||||||
'présentation',
|
'présentation',
|
||||||
]
|
]
|
||||||
PURGE = [
|
PURGE = [
|
||||||
'.acn',
|
'.aux', '.log', '.toc',
|
||||||
'.aux',
|
'.acn', '.acr', '.alg',
|
||||||
'.glo',
|
'.glg', '.glo', '.gls',
|
||||||
'.glsdefs',
|
'.glsdefs', '.ist',
|
||||||
'.ist',
|
|
||||||
'.log',
|
|
||||||
'.toc',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def run(*args):
|
||||||
|
subprocess.call(args)
|
||||||
|
|
||||||
|
|
||||||
def build(directory):
|
def build(directory):
|
||||||
os.chdir(directory)
|
os.chdir(directory)
|
||||||
for document in DOCUMENTS:
|
for document in DOCUMENTS:
|
||||||
command = ['xelatex', f'{document}.tex']
|
run('xelatex', f'{document}.tex')
|
||||||
for _ in range(2):
|
run('makeglossaries', f'{document}')
|
||||||
subprocess.call(command)
|
run('xelatex', f'{document}.tex')
|
||||||
|
|
||||||
|
|
||||||
def clean(directory):
|
def clean(directory):
|
||||||
|
@ -38,6 +39,7 @@ def clean(directory):
|
||||||
def main():
|
def main():
|
||||||
file = os.path.realpath(__file__)
|
file = os.path.realpath(__file__)
|
||||||
directory = os.path.dirname(file)
|
directory = os.path.dirname(file)
|
||||||
|
clean(directory)
|
||||||
build(directory)
|
build(directory)
|
||||||
clean(directory)
|
clean(directory)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue