![poetrycol verseindent "未定义的控制序列。"](https://linux22.com/image/455484/poetrycol%20verseindent%20%22%E6%9C%AA%E5%AE%9A%E4%B9%89%E7%9A%84%E6%8E%A7%E5%88%B6%E5%BA%8F%E5%88%97%E3%80%82%22.png)
“\verseindent”总是提示“未定义控制序列”。我该如何修复这个问题?下面是一个例子:
\documentclass[10pt]{book}
\usepackage[width=4.375in, height=7.0in, top=1.0in, papersize={5.5in,8.5in}]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage{textcomp}
\usepackage{fancyhdr}
\usepackage{poemscol}
\begin{document}
\poemtitle{Title}
\attribution{Author}
\begin{poem}
line one \verseline
\verseindent line two
\end{poem}
\end{document}
给出:
$ pdflatex test-vi.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
...
(/usr/local/texlive/2022/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
! Undefined control sequence.
\\verseindent [#1]->\ifthenelse
{\equal {#1}{}}{\hspace {\verseindentamount ...
l.13 \verseindent l
ine two
?
答案1
\ifthenelse
由包定义ifthen
,因此添加\usepackage{ifthen}
(这应该报告给作者poemscol
,包可以ifthen
自行加载。