From 1261ff9bf8b83c41e24d7838866d4a3507097d78 Mon Sep 17 00:00:00 2001 From: Christos Choutouridis Date: Tue, 10 Dec 2024 15:38:47 +0200 Subject: [PATCH] WIP: Small fix for polyglossia --- AUThReport.cls | 14 ++++++++------ AUThReportTemplateEL.tex | 8 +++----- AUThReportTemplateEN.tex | 2 ++ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/AUThReport.cls b/AUThReport.cls index 814c6bd..f2a3734 100644 --- a/AUThReport.cls +++ b/AUThReport.cls @@ -180,13 +180,13 @@ % PDFLaTeX fonts \else % \setmainfont{CMU-Serif-Roman.ttf}[% -% Path=cmu/, +% Path=./cmu/, % ItalicFont = CMU-Serif-Italic.ttf, % BoldFont = CMU-Serif-Bold.ttf, % BoldItalicFont= CMU-Serif-BoldItalic.ttf % ] % \setsansfont{CMU-Sans-Medium.ttf}[% -% Path=cmu/, +% Path=./cmu/, % ItalicFont = CMU-Sans-Oblique.ttf, % BoldFont = CMU-Sans-Bold.ttf, % BoldItalicFont= CMU-Sans-BoldOblique.ttf @@ -198,14 +198,16 @@ % % BoldItalicFont= CMU-Concrete-BoldItalic.ttf % %] % \setmonofont{CMU-Typewriter-Regular.ttf}[% -% Path=cmu/, +% Path=./cmu/, % ItalicFont = CMU-Typewriter-Oblique.ttf, % BoldFont = CMU-Typewriter-Bold.ttf, % BoldItalicFont= CMU-Typewriter-Oblique.ttf % ] - \typeout{[DEBUG] set fonts} +% \typeout{[DEBUG] set fonts} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} + \setmonofont{CMU Typewriter Text} +% \setmonofont{Courier New} \fi } @@ -294,10 +296,10 @@ } \AtBeginDocument{% -% % Language -% \authSetupLanguageEnv % Fonts \authSetupFontEnv + % Language + \authSetupLanguageEnv % After fonts % Page layout (check above for the geometry setup) \authSetPageLayout diff --git a/AUThReportTemplateEL.tex b/AUThReportTemplateEL.tex index 8ab6260..f34e2df 100644 --- a/AUThReportTemplateEL.tex +++ b/AUThReportTemplateEL.tex @@ -12,8 +12,6 @@ \authSetMainLanguage{greek} \authSetLanguages{english} -\authSetupLanguageEnv - \AuthorName{Όνομα Επίθετο} \AuthorAEM{1234} \AuthorMail{xxx@ece.auth.gr} @@ -39,7 +37,7 @@ \CurrentDate{\today} -\usepackage{lipsum} +%\usepackage{lipsum} \begin{document} @@ -48,10 +46,10 @@ \section{Εισαγωγή} -\lipsum[1] +%\lipsum[1] \setEnglish -\lipsum[1] +%\lipsum[1] \setGreek \end{document} diff --git a/AUThReportTemplateEN.tex b/AUThReportTemplateEN.tex index 56c1957..ec509fd 100644 --- a/AUThReportTemplateEN.tex +++ b/AUThReportTemplateEN.tex @@ -54,4 +54,6 @@ \lipsum[1] \setEnglish % Only for LaTex, dont use it in XeLaTeX + + \end{document}