From 5e3e1e095ef8861eac9b4e0931ee8d1929003b9c Mon Sep 17 00:00:00 2001 From: Aleksander Zamojski Date: Wed, 20 Jan 2021 17:23:58 +0100 Subject: [PATCH 1/2] Change order of ifpdf statement --- eiti/eiti-thesis.cls | 46 +++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/eiti/eiti-thesis.cls b/eiti/eiti-thesis.cls index e31b42e..eccb3a0 100644 --- a/eiti/eiti-thesis.cls +++ b/eiti/eiti-thesis.cls @@ -65,28 +65,6 @@ \RequirePackage{xkeyval} % Keys and class parameters \RequirePackage{xspace} % Remove duplicated spaces -%-------------------------------------- -% PdfTeX specific configuration -%-------------------------------------- -\ifpdf - \RequirePackage[T1]{fontenc} - \RequirePackage[utf8]{inputenc} - \RequirePackage[ - protrusion=true, - expansion=true - ]{microtype} -\fi - -%-------------------------------------- -% XeTeX specific configuration -%-------------------------------------- -\ifxetex - \RequirePackage{fontspec-xetex} - \RequirePackage[ - protrusion=true, - ]{microtype} -\fi - %-------------------------------------- % LuaTeX specific configuration %-------------------------------------- @@ -135,6 +113,30 @@ luatexbase.add_to_callback("pre_linebreak_filter",prevent_single_letter,"~") \end{luacode} +\else + +%-------------------------------------- +% XeTeX specific configuration +%-------------------------------------- + \ifxetex + \RequirePackage{fontspec-xetex} + \RequirePackage[ + protrusion=true, + ]{microtype} + \else + +%-------------------------------------- +% PdfTeX specific configuration +%-------------------------------------- + \ifpdf + \RequirePackage[T1]{fontenc} + \RequirePackage[utf8]{inputenc} + \RequirePackage[ + protrusion=true, + expansion=true + ]{microtype} + \fi + \fi \fi %-------------------------------- From 519976d4e325af8b0b68379ee3626054c734fb0d Mon Sep 17 00:00:00 2001 From: "Artur M. Brodzki" Date: Wed, 20 Jan 2021 21:05:52 +0100 Subject: [PATCH 2/2] Indentation --- eiti/eiti-thesis.cls | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/eiti/eiti-thesis.cls b/eiti/eiti-thesis.cls index eccb3a0..11016aa 100644 --- a/eiti/eiti-thesis.cls +++ b/eiti/eiti-thesis.cls @@ -118,25 +118,25 @@ %-------------------------------------- % XeTeX specific configuration %-------------------------------------- - \ifxetex - \RequirePackage{fontspec-xetex} - \RequirePackage[ - protrusion=true, - ]{microtype} - \else +\ifxetex + \RequirePackage{fontspec-xetex} + \RequirePackage[ + protrusion=true, + ]{microtype} +\else %-------------------------------------- % PdfTeX specific configuration %-------------------------------------- - \ifpdf - \RequirePackage[T1]{fontenc} - \RequirePackage[utf8]{inputenc} - \RequirePackage[ - protrusion=true, - expansion=true - ]{microtype} - \fi - \fi +\ifpdf + \RequirePackage[T1]{fontenc} + \RequirePackage[utf8]{inputenc} + \RequirePackage[ + protrusion=true, + expansion=true + ]{microtype} +\fi +\fi \fi %--------------------------------