我正在尝试使用以下代码写入巴斯克瓦尔德十世
\documentclass[danish,a4paper,11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{slantsc}
\usepackage{array}
\usepackage{amsmath}
\setkomafont{subsection}{\usefont{T1}{fvm}{m}{n}}
\setkomafont{section}{\usefont{T1}{fvs}{b}{n}\Large}
\setcounter{secnumdepth}{0}
\pagestyle{empty}
\usepackage[lf]{Baskervaldx} % lining figures
\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\renewcommand*\oldstylenums[1]{\textosf{#1}}
\begin{document}
\section*{Baskervald X}
\subsection*{\textbackslash normalfont}
\normalfont\normalfont
\input catalogue
\subsection*{\textbackslash itshape}
\normalfont\itshape
\input catalogue
\subsection*{\textbackslash bfseries}
\normalfont\bfseries
\input catalogue
\subsection*{\textbackslash bfseries\textbackslash itshape}
\normalfont\bfseries\itshape
\input catalogue
\newpage
\normalfont\normalfont
\input fonttable
\section{Math}
\normalfont
\[
\mathbf{B}(P)=\frac{\mu_0}{4\pi}\int\frac{\mathbf{I}\times\hat{r}'}{r'^2}dl = \frac{\mu_0}{4\pi}\,I\!\int\frac{d\boldsymbol{l}\times\hat{r}'}{r'^2}
\]
\end{document}
但它向我显示了以下错误信息,
! I can't find file `catalogue'.
l.20 \input catalogue
Please type another input file name:
我该如何解决这个问题?
答案1
您获得的是示例的 LaTeX 源代码,但文件catalogue.tex
不fonttable.tex
包含在正常的 TeX 发行版中。
让你的文档使用 Baskervaldx 所需的只是几行
\usepackage[lf]{Baskervaldx} % lining figures
\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\renewcommand*\oldstylenums[1]{\textosf{#1}}
例如,您可以将其添加到文档序言中
\documentclass{article}
\usepackage[lf]{Baskervaldx} % lining figures
\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\renewcommand*\oldstylenums[1]{\textosf{#1}}
% other packages or commands
\begin{document}
My document using Baskervaldx
\end{document}