miktex icon indicating copy to clipboard operation
miktex copied to clipboard

Automatically install font package at usage of setmainfont

Open koppor opened this issue 7 years ago • 7 comments

MiKTeX brings the functionality to automatically install CTAN packages when a LaTeX package is required by \usepackage{...}.

When using a \setmainfont (.e.g, \setmainfont{TeX Gyre Termes}) the respective package tex-gyre is not installed. One has to manually install it (mpm --install=tex-gyre) to resolve fontspec error: "font-not-found".

Since lualatex / fontspec gets more and more popular, such a feature of MiKTeX would be really helpful.

Side comments:

  • First reported at https://github.com/latextemplates/scientific-thesis-template/issues/88.
  • A CTAN package is different from a LaTeX package - see https://tex.stackexchange.com/questions/247530/difference-between-cfr-lm-and-lm-package/247533#247533

koppor avatar May 08 '18 07:05 koppor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 02 '20 13:08 stale[bot]

I hoped, this was a quick win to implement. 😇

koppor avatar Aug 03 '20 05:08 koppor

Similar concept #429. (Not saying that the implementation could be similar.)

ivankokan avatar Sep 19 '20 19:09 ivankokan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 18 '20 19:11 stale[bot]

I hoped, this was a quick win to implement. 😇

koppor avatar Nov 18 '20 22:11 koppor

Other errors:

  • Package fontspec Error: The font "Inconsolatazi4" cannot be found. Install "inconsolata" package manually
  • Package fontspec Error: The font "LinuxLibertineO" cannot be found.. Install "libertine" package manually
  • Package fontspec Error: The font "TeXGyreTermes" cannot be found.. Install "tex-gyre" and "tex-gyre-math" packages manually

koppor avatar Dec 05 '20 23:12 koppor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 04 '21 00:02 stale[bot]