Browse Source

WIP: Small fix for polyglossia

master
Christos Choutouridis 1 month ago
parent
commit
1261ff9bf8
3 changed files with 13 additions and 11 deletions
  1. +8
    -6
      AUThReport.cls
  2. +3
    -5
      AUThReportTemplateEL.tex
  3. +2
    -0
      AUThReportTemplateEN.tex

+ 8
- 6
AUThReport.cls View File

@@ -180,13 +180,13 @@
% PDFLaTeX fonts % PDFLaTeX fonts
\else \else
% \setmainfont{CMU-Serif-Roman.ttf}[% % \setmainfont{CMU-Serif-Roman.ttf}[%
% Path=cmu/,
% Path=./cmu/,
% ItalicFont = CMU-Serif-Italic.ttf, % ItalicFont = CMU-Serif-Italic.ttf,
% BoldFont = CMU-Serif-Bold.ttf, % BoldFont = CMU-Serif-Bold.ttf,
% BoldItalicFont= CMU-Serif-BoldItalic.ttf % BoldItalicFont= CMU-Serif-BoldItalic.ttf
% ] % ]
% \setsansfont{CMU-Sans-Medium.ttf}[% % \setsansfont{CMU-Sans-Medium.ttf}[%
% Path=cmu/,
% Path=./cmu/,
% ItalicFont = CMU-Sans-Oblique.ttf, % ItalicFont = CMU-Sans-Oblique.ttf,
% BoldFont = CMU-Sans-Bold.ttf, % BoldFont = CMU-Sans-Bold.ttf,
% BoldItalicFont= CMU-Sans-BoldOblique.ttf % BoldItalicFont= CMU-Sans-BoldOblique.ttf
@@ -198,14 +198,16 @@
% % BoldItalicFont= CMU-Concrete-BoldItalic.ttf % % BoldItalicFont= CMU-Concrete-BoldItalic.ttf
% %] % %]
% \setmonofont{CMU-Typewriter-Regular.ttf}[% % \setmonofont{CMU-Typewriter-Regular.ttf}[%
% Path=cmu/,
% Path=./cmu/,
% ItalicFont = CMU-Typewriter-Oblique.ttf, % ItalicFont = CMU-Typewriter-Oblique.ttf,
% BoldFont = CMU-Typewriter-Bold.ttf, % BoldFont = CMU-Typewriter-Bold.ttf,
% BoldItalicFont= CMU-Typewriter-Oblique.ttf % BoldItalicFont= CMU-Typewriter-Oblique.ttf
% ] % ]
\typeout{[DEBUG] set fonts}
% \typeout{[DEBUG] set fonts}
\setmainfont{CMU Serif} \setmainfont{CMU Serif}
\setsansfont{CMU Sans Serif} \setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
% \setmonofont{Courier New}
\fi \fi


} }
@@ -294,10 +296,10 @@
} }


\AtBeginDocument{% \AtBeginDocument{%
% % Language
% \authSetupLanguageEnv
% Fonts % Fonts
\authSetupFontEnv \authSetupFontEnv
% Language
\authSetupLanguageEnv % After fonts


% Page layout (check above for the geometry setup) % Page layout (check above for the geometry setup)
\authSetPageLayout \authSetPageLayout


+ 3
- 5
AUThReportTemplateEL.tex View File

@@ -12,8 +12,6 @@
\authSetMainLanguage{greek} \authSetMainLanguage{greek}
\authSetLanguages{english} \authSetLanguages{english}


\authSetupLanguageEnv

\AuthorName{Όνομα Επίθετο} \AuthorName{Όνομα Επίθετο}
\AuthorAEM{1234} \AuthorAEM{1234}
\AuthorMail{xxx@ece.auth.gr} \AuthorMail{xxx@ece.auth.gr}
@@ -39,7 +37,7 @@
\CurrentDate{\today} \CurrentDate{\today}




\usepackage{lipsum}
%\usepackage{lipsum}




\begin{document} \begin{document}
@@ -48,10 +46,10 @@


\section{Εισαγωγή} \section{Εισαγωγή}


\lipsum[1]
%\lipsum[1]


\setEnglish \setEnglish
\lipsum[1]
%\lipsum[1]
\setGreek \setGreek


\end{document} \end{document}

+ 2
- 0
AUThReportTemplateEN.tex View File

@@ -54,4 +54,6 @@
\lipsum[1] \lipsum[1]
\setEnglish % Only for LaTex, dont use it in XeLaTeX \setEnglish % Only for LaTex, dont use it in XeLaTeX




\end{document} \end{document}

Loading…
Cancel
Save