On Tuesday, January 24, 2017 at 12:35:08 PM UTC-5, ousia wrote:
On 01/19/2017 05:08 PM, John Muccigrosso wrote:
> I was helping a friend use pandoc to go from markdown to PDF on a Mac.
> His problem was that the default PDF output couldn't handle the Greek
> characters.
> [...]
> I'm concluding that the default PDF output font (Latin Modern Roman?)
> doesn't have these characters, whereas Baskerville (among others) does.
Sorry for my delayed reply, John.
The Latin Modern typeface only contains Latin glyphs.
> Is this right? Is there another way to solve this within the default setup?
https://cm-unicode.sf.net contains Computer Modern fonts in OpenType
format. The following should work:
\setmainfont{CMU Serif}
Even defining a fallaback font for Greek characters should be easy with
fontspec. But I haven’t used LaTeX for years and I don’t remember how to
do it.
Thanks. I found them here: http://cm-unicode.sourceforge.net
It looks like the CMU Serif is (nearly) identical to Latin Modern Roman.
I have a default.latex that sets my own fonts, but I think I'll modify it to be sensitive to main font being set in the YAML.