Created
April 15, 2014 11:23
-
-
Save bartv/10724355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{microtype} | |
\ifluatex | |
\usepackage{fontspec} | |
\newfontfeature{Microtype}{protrusion=default;expansion=default;} | |
\defaultfontfeatures{Ligatures=TeX} | |
\setmainfont[Numbers=OldStyle]{Linux Libertine O} | |
\setsansfont[UprightFont = *-Regular, | |
ItalicFont = *-RegularIt, | |
BoldFont = *-Semibold, | |
BoldItalicFont = *-SemiboldIt]{Source Sans Pro} | |
\setmonofont[Scale=MatchLowercase]{Source Code Pro} | |
\else | |
\ifxetex | |
\usepackage{fontspec} | |
\usepackage{xunicode} | |
\usepackage{xltxtra} | |
\newfontfeature{Microtype}{protrusion=default;expansion=default;} | |
\defaultfontfeatures{Ligatures=tex-text} | |
\setmainfont[Numbers=OldStyle]{Linux Libertine O} | |
\setsansfont[UprightFont = *-Regular, | |
ItalicFont = *-RegularIt, | |
BoldFont = *-Semibold, | |
BoldItalicFont = *-SemiboldIt]{Source Sans Pro} | |
\setmonofont[Scale=MatchLowercase]{Source Code Pro} | |
\else | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} % to make pdf searchable | |
\fi\fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment