legi2pdf: fix section code rendering of BQR
This commit is contained in:
parent
53ae4db926
commit
4f7cbbb0a2
|
@ -199,6 +199,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
<xsl:value-of select="$level"/>
|
||||
<xsl:text>) </xsl:text>
|
||||
<!--<xsl:if test="$appendix"><xsl:text>\tocless</xsl:text></xsl:if>-->
|
||||
<xsl:if test="$section-tag = 'bqrsection' and not($parchemin)">
|
||||
<xsl:text>\end{multicols} </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$section-tag = 'bqrsection' and (preceding-sibling::section)">
|
||||
<xsl:text>\newpage </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>\</xsl:text>
|
||||
<xsl:value-of select="$section-tag"/>
|
||||
<xsl:if test="$appendix"><xsl:text>*</xsl:text></xsl:if>
|
||||
|
@ -219,6 +225,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
<xsl:text>% level 1 </xsl:text>
|
||||
<xsl:text>\begin{multicols}{2} </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$section-tag = 'bqrsection' and not($parchemin)">
|
||||
<xsl:text>\begin{multicols}{2} </xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="content-templates"/>
|
||||
|
||||
|
@ -310,7 +319,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
<xsl:text>\setcounter{section}{0} </xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test='$bqr'>
|
||||
<xsl:text>\onecolumn</xsl:text>
|
||||
<xsl:text>\bqrpart{</xsl:text>
|
||||
<xsl:value-of select="$title-toc"/>
|
||||
<xsl:text>}{</xsl:text>
|
||||
|
@ -325,6 +333,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
<xsl:text>}\hypertarget{</xsl:text>
|
||||
<xsl:value-of select="$id"/>
|
||||
<xsl:text>}{}% </xsl:text>
|
||||
<xsl:if test="not($parchemin)">
|
||||
<xsl:text>\begin{multicols}{2}</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>\newpage </xsl:text>
|
||||
|
|
Reference in New Issue