Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direction in normal footnotes can not be properly set #982

Open
u-fischer opened this issue Feb 3, 2025 · 1 comment
Open

direction in normal footnotes can not be properly set #982

u-fischer opened this issue Feb 3, 2025 · 1 comment

Comments

@u-fischer
Copy link

I'm trying to set a german text with some hebrew paragraphs. Footnotes should be LTR. I'm compiling with lualatex on a current texlive.
With twocol and paragraph footnotes I managed the correct footnote layout as described in #980. But then I got the request to change one aparatus to normal, and it failed again. It only worked either by surrounding all footnotes with a \foreignlanguage command, or by hooking into an internal command:

\documentclass{article}
\usepackage[ngerman,bidi=basic,layout=footnotes]{babel}
  
\babelprovide[import,onchar=ids fonts]{hebrew}
\babelprovide[onchar=ids fonts]{ngerman}
\babelfont[ngerman]{rm}{TeXGyreHeros}
\babelfont[hebrew]{rm}{FreeSerif}

\usepackage[noend]{reledmac}
\arrangementX[B]{normal}
\beforeinsertingX[B]{\selectlanguage{ngerman}}% 

\makeatletter
\AddToHookWithArguments
  {cmd/prepare@prenotesX/before}
  {\csname prepare@prenotesX@#1\endcsname}
%\newcommand\prepare@prenotesX@B{\selectlanguage{ngerman}} %works
\makeatother

\usepackage{kantlipsum}


\begin{document}
blub

\begin{selectlanguage}{hebrew}\tracingmacros=1
חלוקת עולם הטבע \footnoteB{footnote B in heb}לשלוש ממלכות,\foreignlanguage{ngerman}{\footnoteB{footnote B in heb in foreign language}} בספרו של ארנסט הקל משנת
תורת :
\end{selectlanguage}

blub
\end{document} 

Without the patch:

Image

With the patch

Image

@maieul
Copy link
Owner

maieul commented Feb 3, 2025

Hum,

maybe we should provide a reledmac hook prenotesX ? Is that your suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants