I've found that it only works when I copy "fontname.sty" file from tex directory to the working directory where I work on my docs. So it may be that I should designate where the fonts are located in latex? I am not sure how it can be done and whether this is the source of the problem. On Saturday, April 29, 2023 at 12:35:03 AM UTC-5 kch...-KQhtac8ZjM8@public.gmane.org wrote: > 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/1043c1d9-fcb7-439c-ada2-1c1c0fd5c2b4n%40googlegroups.com.