我有以下代码,它在 overleaf 中有效,但在 texmaker 中无效:
\documentclass{article}
\usepackage{graphicx,mathtools}
%*
\usepackage{old-arrows}
\newcommand{\eqstackrel}[1]{\stackrel{\substack{\mathclap{#1}\\[0.5ex]\displaystyle\uparrow\\ ~}}{ = } }
%*
\newcommand{\equparrow}[1][1]{\stackrel{\text{\scalebox{1}[#1]{$\uparrow$}}}{=}}
\newcommand{\equparrowx}[2][1]{\stackrel{\mathclap{#2}}{\equparrow[#1]}}
\begin{document}
\begin{align*}
b&=a/c\\[-.5\baselineskip]
a&\equparrow b\\[-.5\baselineskip]
a&\equparrow[2] \frac12
\end{align*}
\[a\equparrowx{a=b/c}b\]
\[a\equparrowx[1.5]{a=b/c}b\]
\[a \equparrowx[2]{a=\frac{b}{c}} b\]
%*
\[ a\eqstackrel{b = a/c} b \]
%*
\end{document}
日志中的错误是:
!pdfTeX error: pdflatex (file oasy10): Font oasy10 at 600 not found
==> Fatal error occurred, no output PDF file produced!
我该如何修复它?
答案1
该软件包old-arrows
已于 2015 年 8 月 25 日添加到 TeX Live。
您没有告诉 TeXmaker 程序使用的是哪个版本的 TeX Live,但从错误信息来看,该软件包安装不正确:除了文件之外old-arrows.sty
,还必须在预期的位置安装字体,并且必须更新地图文件。
根据以下列表检查您的文件系统。特别要查找oasy.map
。
package: old-arrows
category: Package
shortdesc: Computer Modern old-style arrows with smaller arrowheads
longdesc: This package provides Computer Modern old-style arrows with smaller arrowheads, associated with the usual LaTeX commands. It can be used in documents that contain other amssymb arrow characters that also have small arrowheads. It is also possible to use the usual new-style Computer Modern arrows together with the old-style ones.
installed: Yes
revision: 42872
sizes: doc: 981k, run: 221k
relocatable: No
cat-version: 2.0
cat-license: lppl1.3
cat-topics: font-symbol-maths font-type1
collection: collection-fontsextra
Included files, by type:
run files:
texmf-dist/fonts/afm/public/old-arrows/oabsy10.afm
texmf-dist/fonts/afm/public/old-arrows/oabsy5.afm
texmf-dist/fonts/afm/public/old-arrows/oabsy7.afm
texmf-dist/fonts/afm/public/old-arrows/oasy10.afm
texmf-dist/fonts/afm/public/old-arrows/oasy5.afm
texmf-dist/fonts/afm/public/old-arrows/oasy6.afm
texmf-dist/fonts/afm/public/old-arrows/oasy7.afm
texmf-dist/fonts/afm/public/old-arrows/oasy8.afm
texmf-dist/fonts/afm/public/old-arrows/oasy9.afm
texmf-dist/fonts/enc/dvips/old-arrows/oasy.enc
texmf-dist/fonts/map/dvips/old-arrows/oasy.map
texmf-dist/fonts/tfm/public/old-arrows/oabsy10.tfm
texmf-dist/fonts/tfm/public/old-arrows/oabsy5.tfm
texmf-dist/fonts/tfm/public/old-arrows/oabsy6.tfm
texmf-dist/fonts/tfm/public/old-arrows/oabsy7.tfm
texmf-dist/fonts/tfm/public/old-arrows/oabsy8.tfm
texmf-dist/fonts/tfm/public/old-arrows/oabsy9.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy10.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy5.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy6.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy7.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy8.tfm
texmf-dist/fonts/tfm/public/old-arrows/oasy9.tfm
texmf-dist/fonts/type1/public/old-arrows/oabsy10.pfb
texmf-dist/fonts/type1/public/old-arrows/oabsy10.pfm
texmf-dist/fonts/type1/public/old-arrows/oabsy5.pfb
texmf-dist/fonts/type1/public/old-arrows/oabsy5.pfm
texmf-dist/fonts/type1/public/old-arrows/oabsy7.pfb
texmf-dist/fonts/type1/public/old-arrows/oabsy7.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy10.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy10.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy5.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy5.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy6.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy6.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy7.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy7.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy8.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy8.pfm
texmf-dist/fonts/type1/public/old-arrows/oasy9.pfb
texmf-dist/fonts/type1/public/old-arrows/oasy9.pfm
texmf-dist/tex/latex/old-arrows/old-arrows.sty
doc files:
texmf-dist/doc/fonts/old-arrows/README details="Readme"
texmf-dist/doc/fonts/old-arrows/old-arrows-italian.pdf details="Package documentation (Italian)" language="it"
texmf-dist/doc/fonts/old-arrows/old-arrows-italian.tex
texmf-dist/doc/fonts/old-arrows/old-arrows.pdf details="Package documentation"
texmf-dist/doc/fonts/old-arrows/old-arrows.tex
如果您的 TeX 发行版是 MiKTeX,请务必以管理员和用户身份更新字体映射。请参阅如何在用户模式下更新字体映射文件?
答案2
解决该问题的一种方法是注释该命令:
\usepackage{old-arrows}