Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Latin Modern and fontspec

481 views
Skip to first unread message

Wolfgang Jeltsch

unread,
Jun 17, 2013, 7:58:09 AM6/17/13
to
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

unread,
Jun 17, 2013, 8:28:49 AM6/17/13
to
Wolfgang Jeltsch <wolf...@cs.ioc.ee> wrote:
> 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}

\setmainfont{Latin Modern Roman}

;)

jon

unread,
Jun 17, 2013, 10:04:33 AM6/17/13
to
On Jun 17, 8:28 am, Miroslaw Kwasniak
<mi...@infrared.zind.ikem.pwr.wroc.pl> wrote:
> Wolfgang Jeltsch <wolfg...@cs.ioc.ee> wrote:
> > 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}
>
> \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.
0 new messages