ramiromagno / wiley-njd

Wiley's New Journal Design (NJD) Latex Authoring Template
MIT License
16 stars 2 forks source link

The font "Lato-Regular" cannot be found for `classoption: [APA, LATO1COL]` #12

Open jmlondon opened 6 months ago

jmlondon commented 6 months ago

First off, thank you for pursuing this project. A Wiley NJD Quarto template/extension would be a great asset for the community.

I'm able to successfully render the wiley-njd-example.qmd initially. But, if I change the classoption to [APA, LATO1COL], for instance, I get the error below suggesting "Lato-Regular" font cannot be found.

I am able to confirm that the lato package is installed.

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

updating tlmgr

updating existing packages
finding package for Lato-Regular(-(Bold|Italic|Regular).*)?[.](tfm|afm|mf|otf|ttf)
> 1 package to install
> installing lato (1 of 1)
  This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

finding package for Lato-Regular(-(Bold|Italic|Regular).*)?[.](tfm|afm|mf|otf|ttf)
ERROR:
compilation failed- package installation error
Package fontspec Error: The font "Lato-Regular" cannot be found.
ramiromagno commented 4 months ago

I'm sorry to hear that you're experiencing issues with the Lato font. Since the fonts are included with the extension, you shouldn't need to install them separately. Here are a few steps to troubleshoot this issue:

Check Font Files

Ensure that the font files are correctly placed in the Fonts/Lato/ directory. The directory should contain the following files: