Discussion:
Latin Modern and fontspec
(too old to reply)
Wolfgang Jeltsch
2013-06-17 11:58:09 UTC
Permalink
Hi,

how can I set Latin Modern as the main font via fontspec? I thought it
should work like this:

\usepackage{fontspec}
\setmainfont{Latin Modern}

However, LuaTeX (which I use) cannot find the font.

I am using TeXLive 2012.

Best wishes,
Wolfgang
Miroslaw Kwasniak
2013-06-17 12:28:49 UTC
Permalink
Post by Wolfgang Jeltsch
Hi,
how can I set Latin Modern as the main font via fontspec? I thought it
\usepackage{fontspec}
\setmainfont{Latin Modern}
\setmainfont{Latin Modern Roman}

;)
jon
2013-06-17 14:04:33 UTC
Permalink
On Jun 17, 8:28 am, Miroslaw Kwasniak
Post by Miroslaw Kwasniak
Post by Wolfgang Jeltsch
Hi,
how can I set Latin Modern as the main font via fontspec? I thought it
   \usepackage{fontspec}
   \setmainfont{Latin Modern}
\setmainfont{Latin Modern Roman}
in fact, latin modern is the defaul font for fontspec:

\documentclass{article}
%\usepackage{unicode-math} % if you want it for math
%\setmathfont{latinmodern-math.otf}
\usepackage{lipsum,fontspec}
\begin{document}
$ 1 + 1 $\par
\lipsum[1]
\end{document}

cheers,
jon.

Loading...