pwaring,
@pwaring@fosstodon.org avatar

Getting Greek characters to display properly in a PDF generated from Markdown with Pandoc has caused some frustration today - here's what eventually worked for me:

  1. Use xelatex instead of pdflatex:

pandoc --pdf-engine=xelatex

  1. Use Linux Liberatine O as the font in your Markdown metadata:

mainfont: "Linux Libertine O"

I'm a bit sad that I can't use Palatino, which I think is a nicer font, but Linux Libertine 'just worked' and is free (as in beer and speech).

drj,
@drj@typo.social avatar

@pwaring The exact font is going to matter (because of all sorts of weirdly technical encoding issues).

I was going to suggest that if you're doing greek you might want to try one of the many fonts from Greek Font Society, then i noticed that their first font on their 20th/21st century page is accompanied with a Palatino-like latin: https://greekfontsociety-gfs.gr/typefaces/20th_21st_century

so that's a double suggest.

pwaring,
@pwaring@fosstodon.org avatar

@drj Thanks. I think I might need to do some work to get it looking right in LaTeX (some words are really off, like 'introduction') but the Greek rendering is nicer than Linux Libertine.

penguin42,
@penguin42@mastodon.org.uk avatar

@pwaring Can you do it if you tell something to include the Palatino font in the generated pdf?

pwaring,
@pwaring@fosstodon.org avatar

@penguin42 I don't think so - the problem isn't that the characters don't look right, but that xelatex (and pdflatex) won't even compile because they don't recognise Περικλῆς.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Fonts
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines