From: Julien L. <ju...@se...> - 2004-11-17 13:07:15
|
Hello, The XSL template for <para> elements puts an empty line before the generated paragraph text. I noticed that this can messes the page layout when the paragraph follows a section title. The LaTeX code generated is something along the lines of : <code> \section{Some title} % empty line Some stuff, first paragraph % empty line Some other stuff, next paragraph </code> If the section is placed near the bottom of a page, the title can be orphaned at the bottom of a page, while the paragraph is on the next page. On the other hand, if the code is : <code> \section{Some title} Some stuff, first paragraph % empty line Some other stuff, next paragraph % empty line </code> the layout is OK. It can be resolved by changing the para template to : <code> <xsl:template match="para|simpara"> <xsl:apply-templates/> <xsl:text> </xsl:text> <xsl:text> </xsl:text> </xsl:template> </code> Was it an intended feature ? -- Julien Lamy <ju...@se...> |