maieul / ledmac

package reledmac for latex
http://www.ctan.org/tex-archive/macros/latex/contrib/reledmac
54 stars 28 forks source link

footnote directions not correctly initialized #962

Closed u-fischer closed 6 months ago

u-fischer commented 9 months ago

Version

reledmac 2023/08/21 v2.39.7

TeX Engine

Lualatex

Regression

no, the problem is old.

Description

Footnote directions are not correctly setup up if the first footnote is created with \footnoteAtext.

Minimal Working Example

\documentclass{book}
\usepackage{reledmac}
\begin{document}
\makeatletter
%\footnoteA{xxx}
xxxx\footnoteAmark\footnoteAtext{blub}
\end{document} 

errors with

! Undefined control sequence.
\footfmtA ...tex \textdir \footnote@luatextextdir 
                                                  \pardir \footnote@luatexpa...
l.7 xxxx\footnoteAmark\footnoteAtext{blub}

? 
! Undefined control sequence.
\footfmtA ...xtdir \pardir \footnote@luatexpardir 
                                                  \fi \protected@edef \@curr...
l.7 xxxx\footnoteAmark\footnoteAtext{blub}

? x

Workaround

Predefine the commands (or use \footnoteA{something} first).

maieul commented 9 months ago

May you propose a PR ?

maieul commented 7 months ago

Please try branch issue_962_footnotedirection_withAmark

maieul commented 7 months ago

@u-fischer may I ask again to try the branch ?

maieul commented 6 months ago

will be released tomorrow night