I use VSCode
along with MiKTeX
. Although XeLaTeX
and LuLaTeX
seem to be installed when I checked on MiKTeX
, I cannot use the \fontspec
package to use Arial Narrow.
-
Have you tried something? Show a MWE code?– TomCommented May 25, 2022 at 1:49
-
1You've got to give us something to work with, like an example. Your choice of editor has almost certainly nothing to do with it.– IngmarCommented May 25, 2022 at 4:37
Add a comment
|
1 Answer
(Adding as an answer, because unlike comments it allows me to properly format my code)
Try this:
\documentclass{article}
\usepackage{blindtext}
\usepackage{fontspec}
% With LuaLaTeX, specifying the font by name uses the Italic variant, for some reason:
%\setmainfont{Arial Narrow}
% If using XeLaTeX is not an option, we need to specify the font by file name:
\setmainfont{ARIALN.TTF}
\begin{document}
\blindtext
\end{document}
This works for me on TeXLive 2022 / Windows 10.