...
 
Commits (5)
image: silkeh/latex:full
before_script:
- ln -sf $PWD $(kpsewhich --var-value TEXMFHOME)
docs:
script:
- cd doc/latex/utwente
- latexmk -xelatex utwente
artifacts:
expire_in: 10 yrs
paths:
- doc/latex/utwente/utwente.pdf
examples:pdflatex: &examples
variables:
ARGS: -pdf
script:
- cd doc/latex/utwente
- latexmk $ARGS utwente-beamer-example utwentetitle-example
examples:xelatex:
<<: *examples
variables:
ARGS: -xelatex
# Currently broken, see !6
# examples:lualatex:
# <<: *examples
# variables:
# ARGS: -lualatex
\RequirePackage{ l3keys2e }
\ProvidesExplPackage
{utwentefont}
{2017/01/25}
{2.1}
{2018/07/13}
{2.2}
{Fonts for the visual identity of the University of Twente}
% Use OpenType fonts for XeTeX and LuaTeX.
......@@ -39,42 +39,42 @@
}
\bool_if:NTF \utwentefont_otf {
\RequirePackage{mathspec}
% Load mathspec when math is set
\bool_if:NT \utwentefont_math {
\RequirePackage{mathspec}
}
% Load roboto as fallback for certain situation
% This can be done with the roboto package,
% but it uses an older font version missing small caps
% \usepackage{roboto}
\defaultfontfeatures
{ Ligatures = TeX ,
Extension = .ttf ,
UprightFont = *-Regular ,
ItalicFont = *-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic }
\newfontfamily \roboto {Roboto}
\newfontfamily \robotocondensed {RobotoCondensed}
\newfontfamily \robotothin
[ UprightFont = *-Thin ,
ItalicFont = *-ThinItalic ]
{Roboto}
\newfontfamily \robotolight
[ UprightFont = *-Light ,
ItalicFont = *-LightItalic ]
{Roboto}
\newfontfamily \robotomedium
[ UprightFont = *-Medium ,
ItalicFont = *-MediumItalic ,
BoldFont = *-Black ,
BoldItalicFont = *-BlackItalic ]
{Roboto}
\RequirePackage{roboto}
% Font features for Roboto
\defaultfontfeatures
{ Ligatures = TeX ,
Extension = .ttf ,
UprightFont = *-Regular ,
ItalicFont = *-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic }
\newfontfamily \robotothin
[ UprightFont = *-Thin ,
ItalicFont = *-ThinItalic ]
{Roboto}
\newfontfamily \robotolight
[ UprightFont = *-Light ,
ItalicFont = *-LightItalic ]
{Roboto}
\newfontfamily \robotomedium
[ UprightFont = *-Medium ,
ItalicFont = *-MediumItalic ,
BoldFont = *-Black ,
BoldItalicFont = *-BlackItalic ]
{Roboto}
% For the math font always use Roboto for Greek
\bool_if:NT \utwentefont_math {\setallmainfonts(Greek){Roboto} }
\bool_if:NT \utwentefont_math { \setallmainfonts(Greek){Roboto} }
% Roboto is used as the free alternative to Linotype Univers
\bool_if:NTF \utwentefont_freefont {
......@@ -82,11 +82,9 @@
\cs_set_eq:NN \univers \roboto
\cs_set_eq:NN \universcn \robotocondensed
\cs_set_eq:NN \universtitle \robotocondensed
\cs_set_eq:NN \universthin \robotothin
\cs_set_eq:NN \universmed \robotomedium
% Set the sans font
\setsansfont{Roboto}
\cs_set_eq:NN \universthin \robotothin
\cs_set_eq:NN \universlight \robotolight
\cs_set_eq:NN \universmed \robotomedium
% Set the math font
\bool_if:NT \utwentefont_math {
......