自从软件包更新lettrine
至 2.01 版本后,以下 MWE 不再编译:
\documentclass{article}
\usepackage{xcookybooky}
\begin{document}
\begin{recipe}{Back}
\preparation{%
\step test
}
\end{recipe}
\end{document}
答案1
这个问题可以通过重新定义来解决\step
\documentclass{article}
\usepackage{xcookybooky}
\renewcommand{\step}
{%
\stepcounter{step}%
\lettrine
[%
lines=2,
lhang=0, % space into margin, value between 0 and 1
loversize=0.15, % enlarges the height of the capital
slope=0em,
findent=1em, % gap between capital and intended text
nindent=0em % shifts all intended lines, begining with the second line
]{\thestep}{}%
}
\begin{document}
\begin{recipe}{Back}
\preparation{%
\step test
}
\end{recipe}
\end{document}
该问题已在 github 版本的软件包中修复,xcookybooky
可从以下网址获取https://github.com/SvenHarder/xcookybooky