Here is my minimal LaTeX document:
\documentclass{article}
\usepackage[polutonikogreek,english]{babel}
\newcommand{\Gk}[1]{\selectlanguage{polutonikogreek}#1\selectlanguage{english}}
\usepackage{ledmac}
\newcommand{\cn}[1]{\Afootnote{#1}}
\usepackage{ledpar}
\begin{document}
\beginnumbering
\pstart
\edtext{apostle}{\cn{\Gk{apostoloc}}}
\pend
\endnumbering
\end{document}
Executing latex test.tex
produces the following error:
...
Section 1 (./test.1)
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.15 \pend
?
Some notes:
The
DVI
produced looks fine despite the error.Commenting out the
\usepackage{ledpar}
fixes the problem.Not using the
\Gk
command also solves the problem. (But sort of defeats the purpose of having a footnote.)
What's going on here and how do I get around the error message?