diff --git a/generate.py b/generate.py index 24a1a3a..21aae58 100755 --- a/generate.py +++ b/generate.py @@ -216,7 +216,7 @@ class PdfFile(FromTeX): def run_pdflatex(self): args = [ - 'pdflatex', + 'xelatex', '-jobname', self.output_file.stem, '-output-directory', self.output_file.parent, '-shell-escape' diff --git a/include/bookreport.cls b/include/bookreport.cls index 4d36667..8a98a59 100644 --- a/include/bookreport.cls +++ b/include/bookreport.cls @@ -12,13 +12,21 @@ Título: \hfill \@title\\ Autor: \hfill \@author\\ Data da Ficha: \hfill \@date\\ - \rule{\textwidth}{0.4pt} + } + { + \IfLanguageName{polish} + { + \noindent\large + Tytuł: \hfill \@title\\ + Autor: \hfill \@author\\ + Data Reportu: \hfill \@date\\ } { \noindent\large Title: \hfill \@title\\ Author: \hfill \@author\\ Report Date: \hfill \@date\\ - \rule{\textwidth}{0.4pt} } + } + \rule{\textwidth}{0.4pt} }