languages,comments

This commit is contained in:
Marc Beninca 2020-10-08 08:32:57 +02:00
parent ac1fee4301
commit 80d2623d70
3 changed files with 11 additions and 1 deletions

View file

@ -41,7 +41,7 @@ def build(directory, sign):
# prepare build command # prepare build command
command = ['xelatex', command = ['xelatex',
'-output-directory', tmp, '-output-directory', tmp,
MAIN, f'\def\mainlanguage{{{language}}}\input{{{MAIN}}}',
] ]
# if it's the main document # if it's the main document
if document[ENGLISH] == 'thesis': if document[ENGLISH] == 'thesis':

View file

@ -1,7 +1,10 @@
% apply settings
\input{settings} \input{settings}
% begin document
\begin{document} \begin{document}
% end document
\end{document} \end{document}

View file

@ -1 +1,8 @@
% set default size and document class
\documentclass[12pt]{extarticle} \documentclass[12pt]{extarticle}
% handle multiple languages
\usepackage{polyglossia}
% set main language
\setmainlanguage{\mainlanguage}