• Added further clarification about the behaviour of split hyperlinks in (Xe)LaTeX.
1 parent 900de4d commit c8e302bde3fe0df755318b66f633fbd5187f044f
Nigel Stanger authored on 12 Feb 2016
Showing 1 changed file
View
4
modules/hyperlinks.xml
</xsl:when>
<xsl:otherwise>
<!--
Sometimes the hyperlink content may be explicitly split across multiple lines, separated by <br> elements. This isn't a problem in (X)HTML, but it breaks (Xe)LaTeX, because you can't include a \\ inside most macros. The solution is to explicitly process the sub-elements, and wrap appropriate hyperref macros around them, /except/ for any embedded <br> elements. This does lead to some slightly
odd output when you embed markup in the hyperlink text.
odd output when you embed markup in the hyperlink text; in particular, spaces won't be included in
the hyperlink.
We can't just call hyperlink-internal, because we still want to process the <br> elements.
-->
<xsl:for-each select="node()">