这不是一个严重的问题,但我想知道为什么会发生这种情况。
如果我编译
\documentclass[ngerman]{scrartcl}
\usepackage[ngerman]{babel}
\title{Title}
\date{\today}
\usepackage{igo}
\begin{document}
\maketitle
\end{document}
输出看起来像英文版,即日期格式为英文。不使用 igo 包,一切都正常工作。我查看了 sty 文件以及使用的 repeat.tex 文件,但我找不到原因。
答案1
因为repeat.tex
重新定义了\repeat
LaTeX 内核在\loop...\repeat
构造中使用的内容,并且为了按照 中描述的方式工作plain.tex
,因此强制的的意思\repeat
和 是一样的\fi
。
您可以进行修改igo.sty
以避免该问题。
\input{repeat.tex}
添加后
\let\REPEAT\repeat
\let\repeat\fi
并将\repeat
代码中所有出现的 更改为。igo.sty
\REPEAT
最好将该Define size of stones
部分中的所有代码更改为
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define size of stones in text (Nikolai Nemov, from size10.clo)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AddToHook{cmd/normalsize/after}{\def\stonesize{\igo@fonts{9}}}
\AddToHook{cmd/small/after}{\def\stonesize{\igo@fonts{8}}}
\AddToHook{cmd/footnotesize/after}{\def\stonesize{\igo@fonts{7}}}
\AddToHook{cmd/scriptsize/after}{\def\stonesize{\igo@fonts{6}}}
\AddToHook{cmd/tiny/after}{\def\stonesize{\igo@fonts{5}}}
\AddToHook{cmd/large/after}{\def\stonesize{\igo@fonts{10}}}
\AddToHook{cmd/Large/after}{\def\stonesize{\igo@fonts{11}}}
\AddToHook{cmd/LARGE/after}{\def\stonesize{\igo@fonts{12}}}
\AddToHook{cmd/huge/after}{\def\stonesize{\igo@fonts{15}}}
\AddToHook{cmd/Huge/after}{\def\stonesize{\igo@fonts{20}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
幸好igo.sty
不在 TeX Live 中……