Skip to content

Commit

Permalink
Merge pull request #91 from c42f/lualatex-unicode-symbols
Browse files Browse the repository at this point in the history
Add unicode symbol support based on CMU and Latin Modern fonts
  • Loading branch information
mpastell authored May 15, 2017
2 parents aaabc2c + da17ac2 commit 96bc072
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions templates/julia_tex.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@
\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex}
\ifxetex
\usepackage{mathspec}
\fi
\usepackage{graphics}
\usepackage{microtype}
\usepackage{hyperref}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.2ex}

\usepackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi

\hypersetup
{ pdfauthor = { {{{:author}}} },
pdftitle={ {{{:title}}} },
Expand All @@ -37,6 +45,14 @@

{{{ :highlight }}}

\ifxetexorluatex
\usepackage{fontspec}
\setmainfont{CMU Serif Roman}
\setmonofont{CMU Typewriter Text}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\fi

\begin{document}

{{#:title}}\maketitle{{/:title}}
Expand Down

0 comments on commit 96bc072

Please sign in to comment.