Thanks for the response! But the same problem keeps occurring with other fonts (it works only when I didn't specify the fontfamily) and with other pdf engines. Also, I just installed the Libre Baskerville font in my system, but still it doesn't work. Thanks again for your help! On Saturday, April 29, 2023 at 12:06:38 AM UTC-5 John MacFarlane wrote: > If you're using xelatex, then it will look in your system fonts, not in > special LaTex fonts. > Make sure Libre Baskerville is installed there. > > > > On Apr 28, 2023, at 9:54 PM, kch...-KQhtac8ZjM8@public.gmane.org wrote: > > > > Hi all, > > > > I am getting the below error message although I checked Tex Live that > the font is installed: > > > > Error producing PDF. > > ! LaTeX Error: File `LibreBaskerville.sty' not found. > > > > Type X to quit or to proceed, > > or enter new name. (Default extension: sty) > > > > Enter file name: > > ! Emergency stop. > > > > > > l.21 \ifPDFTeX > > > > --- > > My command line is : pandoc test.txt -s -o test.pdf -V > --pdf-engine=xelatex -C --bibliography=library.bib --number-sections > > > > And this is the TexLive Utilities screen shot. > > > > > > Thanks! > > > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/22b445a3-4028-464e-9e87-7422ff9e98a6n%40googlegroups.com > . > > > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7c3b416d-5742-4f80-a4e7-fd5c29a26c60n%40googlegroups.com.