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
\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


+ 3
- 5
AUThReportTemplateEL.tex View File

@@ -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}

+ 2
- 0
AUThReportTemplateEN.tex View File

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



\end{document}

||||||
x
 
000:0
Loading…
Cancel
Save