Browse Source

Add poluglosia support (hyphenation, etc...)

master
Christos Choutouridis 4 months ago
parent
commit
ac4359558c
1 changed files with 19 additions and 10 deletions
  1. +19
    -10
      AUTHReport.cls

+ 19
- 10
AUTHReport.cls View File

@@ -38,8 +38,10 @@
\ifPDFTeX \ifPDFTeX
\RequirePackage[utf8]{inputenc} \RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
\RequirePackage[english, greek]{babel}
\else \else
\RequirePackage{fontspec} \RequirePackage{fontspec}
\RequirePackage{polyglossia}
\fi \fi


\RequirePackage{xargs} % Commands \RequirePackage{xargs} % Commands
@@ -117,8 +119,6 @@
\setmainfont{#1}[SmallCapsFeatures={Letters=SmallCaps}] \setmainfont{#1}[SmallCapsFeatures={Letters=SmallCaps}]
\setsansfont{#2} \setsansfont{#2}
\setmonofont{#3} \setmonofont{#3}

% \newfontface\smallcapsfont{Libertinus Serif}[Letters=SmallCaps]
} }




@@ -205,13 +205,22 @@
} }
\setlist[itemize]{topsep=0pt, partopsep=0pt, itemsep=3pt, parsep=3pt} \setlist[itemize]{topsep=0pt, partopsep=0pt, itemsep=3pt, parsep=3pt}




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


% Fonts % Fonts
\authFontEnvSetup{CMU Serif}{CMU Sans Serif}{Courier New} \authFontEnvSetup{CMU Serif}{CMU Sans Serif}{Courier New}
\setdefaultlanguage{greek} % Main language
\setotherlanguage{english} % Other language


%hyphenation settiongs
\lefthyphenmin=2 % minimum characters before
\righthyphenmin=2 % minimum characters after
% Header - Footer % Header - Footer
\pagestyle{plain} \pagestyle{plain}
\thispagestyle{authTitlePageStyle} \thispagestyle{authTitlePageStyle}
@@ -282,13 +291,13 @@
\else \else
\emph{Συντάκτης:} \emph{Συντάκτης:}
\fi \\ \fi \\
\textsc{\auth@authorName} \\ \auth@authorName \\
\textsc{AEM:\auth@authorAEM} \\[0.35ex] AEM:\auth@authorAEM \\[0.35ex]
\normalsize \href{mailto:\auth@authorMail}{\auth@authorMail} \\[2ex] \normalsize \href{mailto:\auth@authorMail}{\auth@authorMail} \\[2ex]
\large \large
\ifdefined \auth@coauthorName \ifdefined \auth@coauthorName
\textsc{\auth@coauthorName} \\ \auth@coauthorName \\
\textsc{AEM:\auth@coauthorAEM} \\[0.35ex] AEM:\auth@coauthorAEM \\[0.35ex]
\normalsize \href{mailto:\auth@coauthorMail}{\auth@coauthorMail} \\[2ex] \normalsize \href{mailto:\auth@coauthorMail}{\auth@coauthorMail} \\[2ex]
\fi \fi
\end{flushleft} \end{flushleft}
@@ -301,11 +310,11 @@
\else \else
\emph{Διδάσκων:} \emph{Διδάσκων:}
\fi \\ \fi \\
\textsc{\auth@instructorName} \\[0.35ex] \auth@instructorName \\[0.35ex]
\normalsize \href{mailto:\auth@instructorMail}{\auth@instructorMail} \\[2ex] \normalsize \href{mailto:\auth@instructorMail}{\auth@instructorMail} \\[2ex]
\large \large
\ifdefined \auth@coinstructorName \ifdefined \auth@coinstructorName
\textsc{\auth@coinstructorName} \\[0.35ex] \auth@coinstructorName \\[0.35ex]
\normalsize \href{mailto:\auth@coinstructorMail}{\auth@coinstructorMail} \\[2ex] \normalsize \href{mailto:\auth@coinstructorMail}{\auth@coinstructorMail} \\[2ex]
\fi \fi
\end{flushright} \end{flushright}


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