Skip to content

Commit

Permalink
use full skips around sectioning commands
Browse files Browse the repository at this point in the history
The default glues do not work well in reledmac.

This is related to #36.
  • Loading branch information
lueck committed Oct 7, 2024
1 parent eba4396 commit 0caf760
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions xsl/latex/libtext.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -478,4 +478,16 @@
<xsl:text>&lb;}</xsl:text>
<xsl:text>&lb;\makeatother</xsl:text>
</xsl:template>

<xsl:template name="text:latex-header-full-seedskips" visibility="public">
<xsl:text>&lb;\renewcommand*{\seedchapterbeforeskip}{\bigskip}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedchapterafterskip}{}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsectionbeforeskip}{\bigskip}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsectionafterskip}{}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsubsectionbeforeskip}{\bigskip}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsubsectionafterskip}{}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsubsubsectionbeforeskip}{\bigskip}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsubsubsectionafterskip}{}</xsl:text>
</xsl:template>

</xsl:package>
1 change: 1 addition & 0 deletions xsl/projects/alea/latex/prose.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ target/bin/xslt.sh -config:saxon.he.xml -xsl:xsl/projects/alea/latex/prose.xsl -

<!-- workaround for broken sectioning commands in reledmac -->
<xsl:call-template name="text:latex-header-workaround36"/>
<xsl:call-template name="text:latex-header-full-seedskips"/>
<xsl:text>&lb;\renewcommand*{\seedchapterfont}[1]{\bfseries #1}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsectionfont}[1]{\bfseries #1}</xsl:text>
<xsl:text>&lb;\renewcommand*{\seedsubsectionfont}[1]{\bfseries #1}</xsl:text>
Expand Down

0 comments on commit 0caf760

Please sign in to comment.