| |
---|
| | <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
| | |
---|
| | |
---|
| | <!-- |
---|
| | Create a layout of multiple columns across the page. By default, columns are of equal width, but may be varied on a column-by-column basis. Each column is totally independent of the others, i.e., you can't have text automatically flowing from one column to the next (yet). |
---|
| | Create a layout of multiple columns across the page. By default, columns are of equal width, but may be varied on a column-by-column basis. Each column is totally independent of the others, i.e., you can't have text automatically flowing from one column to the next (yet). In LaTeX, the multi-column layout is formatted as a separate paragraph to prevent run-on text into the right margin. |
---|
| | |
---|
| | @vspace: The amount of vertical space to put around the multi-column elements. [small, medium, big, LaTeX length, NONE] |
---|
| | |
---|
| | @align: Overall alignment of the columns (only relevant if the total width of the columns is less than the page width). [LEFT, center, right] |
---|
| |
---|
| | <xsl:variable name="total-width"> |
---|
| | <xsl:value-of select="1" /> |
---|
| | <xsl:if test="@width"><xsl:value-of select="@width" /></xsl:if> |
---|
| | </xsl:variable> |
---|
| | |
---|
| | <!-- |
---|
| | Ensure that layout is treated as a separate paragraph. |
---|
| | --> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | |
---|
| | <xsl:choose> |
---|
| | <xsl:when test="@vspace = 'small'"><xsl:text>\smallskip</xsl:text></xsl:when> |
---|
| | <xsl:when test="@vspace = 'medium'"><xsl:text>\medskip</xsl:text></xsl:when> |
---|
| | <xsl:when test="@vspace = 'big'"><xsl:text>\bigskip</xsl:text></xsl:when> |
---|
| |
---|
| | <xsl:when test="@vspace = 'medium'"><xsl:text>\medskip</xsl:text></xsl:when> |
---|
| | <xsl:when test="@vspace = 'big'"><xsl:text>\bigskip</xsl:text></xsl:when> |
---|
| | <xsl:when test="@vspace"><xsl:text>\vskip</xsl:text><xsl:value-of select="@vspace" /></xsl:when> |
---|
| | </xsl:choose> |
---|
| | |
---|
| | <!-- |
---|
| | Ensure that layout is treated as a separate paragraph. |
---|
| | --> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </common> |
---|
| | <common formats="/html/xhtml/"> |
---|
| | <xsl:variable name="total-width"> |
---|
| | <xsl:value-of select="100" /> |
---|
| |
---|
|