| |
---|
| | --> |
---|
| | <template name="paragraph" match="paragraph|para|p|P"> |
---|
| | <common formats="/latex/xelatex/"> |
---|
| | <!-- |
---|
| | LaTeX delimits paragraphs with vertical whitespace, so we need to ensure plenty. A blank line before and after should be sufficient. |
---|
| | LaTeX delimits paragraphs with vertical whitespace, so we need to ensure plenty. A couple of blank lines before and after should be sufficient. |
---|
| | --> |
---|
| | <xsl:text> |
---|
| | |
---|
| | </xsl:text> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:choose> |
---|
| | <xsl:when test="(@align = 'left') or (@align = 'right')"> |
---|
| | <xsl:text>\begin{flush</xsl:text> |
---|
| | <xsl:value-of select="@align" /> |
---|
| |
---|
| | <xsl:when test="@align = 'center'"> |
---|
| | <xsl:text>\end{center}</xsl:text> |
---|
| | </xsl:when> |
---|
| | </xsl:choose> |
---|
| | <xsl:text> |
---|
| | |
---|
| | </xsl:text> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </common> |
---|
| | <!-- |
---|
| | HTML is weird about what things you cannot include inside paragraphs (e.g. lists of any kind). However, the end P tag is optional, so one option might simply be not to output it (not for XHTML, though!). |
---|
| | --> |
---|
| |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | <!-- |
---|
| | Whereas the "newline" template above is for line breaks intended to be displayed in the final document, this is for additional linebreaks in the generated LaTeX or HTML markup. This is used to avoid things like "\end{verbatim}\item" all on one line, not that this really matters in general, as the generated markup will be pretty messy anyway :). |
---|
| | Whereas the "newline" template above is for line breaks intended to be displayed in the final document, this is for additional linebreaks in the generated LaTeX or HTML markup. This is used to avoid things like "\end{verbatim}\item" all on one line, not that this really matters in general, as the generated markup will be pretty messy anyway, and TeX doesn't usually care :). |
---|
| | |
---|
| | This also makes any XSLT markup that generates internal newlines a lot tidier looking! |
---|
| | --> |
---|
| | <template name="newline-internal" match="newline-internal"> |
---|
| |
---|
| | |
---|
| | <template name="page-break" match="page-break|new-page|newpage|pagebreak"> |
---|
| | <common formats="/latex/xelatex/"> |
---|
| | <xsl:if test="@print-caption = 'yes'"> |
---|
| | <xsl:text>\begin{flushright}\emph{</xsl:text> |
---|
| | <xsl:text>\begin{flushright}</xsl:text> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:text>\emph{</xsl:text> |
---|
| | <xsl:choose> |
---|
| | <xsl:when test="@caption-text"> |
---|
| | <xsl:value-of select="@caption-text" /> |
---|
| | </xsl:when> |
---|
| | <xsl:otherwise> |
---|
| | <xsl:text>continues over\ldots</xsl:text> |
---|
| | </xsl:otherwise> |
---|
| | </xsl:choose> |
---|
| | <xsl:text>}\end{flushright}</xsl:text> |
---|
| | <xsl:text>}</xsl:text> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:text>\end{flushright}</xsl:text> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </xsl:if> |
---|
| | <xsl:text>\newpage</xsl:text> |
---|
| | </common> |
---|
| | </template> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | |
---|
| | <!-- |
---|
| | Skip a certain amount of space vertically. Probably more relevant to LaTeX than HTML. Is it even possible to vskip a set amount in HTML?? I suppose you could create an empty <div> element with a specified height, but I'm not sure that it even makes sense in HTML to skip more than the standard paragraph separation anyway. |
---|
| |
---|
| | <xsl:text>" (valid values are "small", "medium", "large", "fill", or a LaTeX length, e.g., "24pt")</xsl:text> |
---|
| | </xsl:message> |
---|
| | </xsl:otherwise> |
---|
| | </xsl:choose> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </common> |
---|
| | <common formats="/html/xhtml/"> |
---|
| | <!-- For the moment we'll just throw in a <br /> :). --> |
---|
| | <br clear="left" /> |
---|
| |
---|
|