Closed stephenlevitt closed 1 year ago
minted
uses fancyvrb
to typeset the code. The fontspec
manual gives an example using fancyvrb
, and in the \newfontfamily
definition uses the equivalent of NFSSFamily=inconsolata
. I'd suggest starting there.
Thanks! The following change produces the correct results:
\newfontfamily{\inconsolata}{InconsolataLGCMarkup}[NFSSFamily=inconsolata, Extension=.otf, ItalicFont =*-Italic, BoldFont=*-Bold, Scale=MatchLowercase]
The
fontspec
manual gives an example usingfancyvrb
, and in the\newfontfamily
definition uses the equivalent ofNFSSFamily=inconsolata
. I'd suggest starting there.
can you share the links :smiley:
is it this one:
Yes, that's it.
Tested platforms: Windows 10, MiKTeX 23.1 Versions:
I am trying to use Inconsolata for minted listings only - not the entire LaTeX document. As far as I can tell, the font is installed correctly because it is found when specifying it for normal text. However, when explicitly set as the font for a minted listing it cannot be found. See the MWE below and specifically the last line. I am not sure why this does not work.
Output:![2023-04-21 12_45_08-code-font-mwe pdf — Mozilla Firefox](https://user-images.githubusercontent.com/4232755/233621286-58de6ea6-0f97-40dc-aec6-cc60b514c16e.png)