Skip to content

Commit bf7d60a

Browse files
committed
Fix LaTeX compilation errors in GitHub Actions
Remove problematic custom table templates from XSL that were causing incomplete \ifx conditionals in LaTeX output. The templates were interfering with dblatex's default table processing. Table improvements will rely on the enhanced preamble.tex packages and post-processing script instead.
1 parent d70e2ff commit bf7d60a

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

custom.xsl

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -38,68 +38,6 @@
3838
</l:l10n>
3939
</l:i18n>
4040

41-
<!-- Better table formatting -->
42-
<xsl:param name="table.default.position">H</xsl:param>
43-
<xsl:param name="table.in.float">0</xsl:param>
44-
45-
<!-- Custom table template for cleaner output -->
46-
<xsl:template match="table">
47-
<xsl:text>
48-
\begin{table}[H]
49-
\centering
50-
\caption{</xsl:text>
51-
<xsl:apply-templates select="title"/>
52-
<xsl:text>}
53-
</xsl:text>
54-
<xsl:apply-templates select="tgroup"/>
55-
<xsl:text>
56-
\end{table}
57-
</xsl:text>
58-
</xsl:template>
59-
60-
<!-- Simplified tgroup template -->
61-
<xsl:template match="tgroup">
62-
<xsl:variable name="cols" select="@cols"/>
63-
<xsl:text>\begin{tabular}{</xsl:text>
64-
<xsl:for-each select="colspec">
65-
<xsl:text>l</xsl:text>
66-
</xsl:for-each>
67-
<xsl:text>}
68-
\toprule
69-
</xsl:text>
70-
<xsl:apply-templates select="thead"/>
71-
<xsl:text>\midrule
72-
</xsl:text>
73-
<xsl:apply-templates select="tbody"/>
74-
<xsl:text>\bottomrule
75-
\end{tabular}</xsl:text>
76-
</xsl:template>
77-
78-
<!-- Simplified row template -->
79-
<xsl:template match="row">
80-
<xsl:for-each select="entry">
81-
<xsl:if test="position() > 1">
82-
<xsl:text> &amp; </xsl:text>
83-
</xsl:if>
84-
<xsl:apply-templates/>
85-
</xsl:for-each>
86-
<xsl:text> \\
87-
</xsl:text>
88-
</xsl:template>
89-
90-
<!-- Header row template -->
91-
<xsl:template match="thead/row">
92-
<xsl:for-each select="entry">
93-
<xsl:if test="position() > 1">
94-
<xsl:text> &amp; </xsl:text>
95-
</xsl:if>
96-
<xsl:text>\textbf{</xsl:text>
97-
<xsl:apply-templates/>
98-
<xsl:text>}</xsl:text>
99-
</xsl:for-each>
100-
<xsl:text> \\
101-
</xsl:text>
102-
</xsl:template>
10341

10442
</xsl:stylesheet>
10543

0 commit comments

Comments
 (0)