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

Issue 36 #41

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Issue 36 #41

merged 4 commits into from
Oct 1, 2024

Conversation

lueck
Copy link
Member

@lueck lueck commented Oct 1, 2024

This branch fixes #36 by adding a workaround for issues with reledmac's sectioning commands \eledxxxx as filed in maieul/ledmac#976 and maieul/ledmac#977.

The workaround rewrites these section commands like so:

\newcommand*{\seedsectionfont}[1]{\Large #1}
\renewcommand{\eledsection}[2][]{%
  \seedsectionfont{#2}%
  \ifthenelse{\equal{#1}{}}{%
    \addcontentsline{toc}{section}{#2}}{%
    \addcontentsline{toc}{section}{#1}}%
}

The redefinition does not contain vertical spacing, because using this inside \pstart...\pend results in similar issues. Instead, we add vertical spacing outside line numbering using XSLT hooks in xsl/latex/libtext.xsl.

We cannot use vertikal skips inside a paragraph with line
numbering. That would again result in similar issues like reledmac
using plain latex sectioning commands behind \eledxxxx. So remove
vskips from the sectioning macros and use XSLT hooks for adding
vertical space outside of \pstart\eledxxxx[...]{...}\pend.

We also provide macros to make font styling in section titles more
configurable.
Related to #36.
@lueck lueck merged commit d35f6fe into master Oct 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

echo from section commands
1 participant