svmono v5.6 的文档来自http://www.springer.com/gp/authors-editors/book-authors-editors/resources-guidelines/rights-permissions-licensing/manuscript-preparation/5636在 refguide.pdf 中说:
使用 \vec-command 时,vecarrow 表示带有上方箭头的矢量
然而pdflatex
,
\documentclass[vecarrow]{svmono}% v5.6 from https://resource-cms.springernature.com/springer-cms/rest/v1/content/20566/data/v10
\begin{document}
\(C\vec{C}\)
\end{document}
结果是
没有打印箭头。有没有什么错误修复,最好是通过\patchcmd
或类似方法,这样我就不必破解了svmono
?我无法联系到 Springer(我的电子邮件在 SMTP 级别被拒绝)。
日志摘录:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2018.8.21) 9 AUG 2019 21:12
LaTeX2e <2018-04-01> patch level 5
Document Class: svmono 2018/06/25 v5.6
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
File: color.cfg 2016/01/02 v1.6 sample color configuration
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
File: x11nam.def 2016/05/11 v2.12 Predefined colors according to Unix/X11 (UK)
Package: ntheorem 2011/08/15 1.33
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
[Loading MPS to PDF converter (version 2006.09.02).]
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <8.5> not available
(Font) size <8> substituted on input line 4.
LaTeX Font Warning: Size substitutions with differences
(Font) up to 0.5pt have occurred.
答案1
该类(版本 5.6)具有
\DeclareOption{vecarrow}{\def\vec@style{arrow}}
进而
\def\fig@type{arrow}% temporarily abused
\AtBeginDocument{\ifx\vec@style\fig@type\else
\@ifundefined{vec@style}{%
\def\vec#1{\ensuremath{\mathchoice
{\mbox{\boldmath$\displaystyle\mathbf{#1}$}}
{\mbox{\boldmath$\textstyle\mathbf{#1}$}}
{\mbox{\boldmath$\scriptstyle\mathbf{#1}$}}
{\mbox{\boldmath$\scriptscriptstyle\mathbf{#1}$}}}}%
}
{\def\vec#1{\ensuremath{\mathchoice
{\mbox{\boldmath$\displaystyle#1$}}
{\mbox{\boldmath$\textstyle#1$}}
{\mbox{\boldmath$\scriptstyle#1$}}
{\mbox{\boldmath$\scriptscriptstyle#1$}}}}%
}
\fi}
然而,同一个班级后来
\def\fig@type{figure}
结果是,在开始文档时,测试\ifx\vec@style\fig@type
返回 false。
5.5 版本没有,\AtBeginDocument
并且测试没有失败。
这显然是一个错误。
您可以通过重新定义来修复它\vec
:
\documentclass{svmono}
\AtBeginDocument{%
\let\vec\relax
\DeclareMathAccent{\vec}{\mathord}{letters}{"7E}%
}
\begin{document}
\(C\vec{C}\)
\end{document}
如果您使用amsmath
,解决方法会有所不同。
\documentclass{svmono}
\usepackage{amsmath}
\AtBeginDocument{%
\def\vec{\protect\mathaccentV{vec}17E}%
}
\begin{document}
\(C\vec{C}\)
\end{document}
解决newtxmath
方法又不同了:
\documentclass{svmono}
\usepackage{amsmath}
\usepackage{newtxtext,newtxmath}
\AtBeginDocument{%
\def\vec{\protect\mathaccentV{vec}2AE}%
}
\begin{document}
\(C\vec{C}\)
\end{document}