updates
[phd-thesis.git] / preamble.tex
index b5b123e..ae176ee 100644 (file)
@@ -1,5 +1,23 @@
 \usepackage[utf8]{inputenc}  % Input encoding
 \usepackage[T2A,T1]{fontenc} % Font encoding
+\usepackage{ifxetex}
+\ifxetex%
+       \usepackage{amsmath}        % extra math
+       \usepackage{fontspec}
+       \usepackage{polyglossia}
+       \setmainlanguage[variant=british]{english}
+       \setotherlanguage{dutch}
+       \setotherlanguage{russian}
+       \newfontfamily{\cyrillicfont}{Liberation Serif}
+\else
+       \usepackage{lmodern}        % Nicer font
+       \usepackage{microtype}      % Better kerning
+       \usepackage{amsmath}        % extra math
+       \usepackage{amssymb}        % extra math symbols
+
+       \usepackage[dutch,russian,british]{babel}
+%      \babelfont[russian]{rm}{Liberation Serif}
+\fi
 
 % Typography, widows, orphans, fonts
 \input{preamble/typography}
@@ -35,4 +53,4 @@
 \usepackage{subfiles}
 
 % Metadata (only works in main document) and should go after subfiles
-\input{preamble/metadata}
+%\input{preamble/metadata}