fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2 runs in creating pdf
[librarian.git]
/
librarian
/
pdf
/
wl2tex.xslt
diff --git
a/librarian/pdf/wl2tex.xslt
b/librarian/pdf/wl2tex.xslt
index
149fbde
..
c929c73
100644
(file)
--- a/
librarian/pdf/wl2tex.xslt
+++ b/
librarian/pdf/wl2tex.xslt
@@
-335,7
+335,7
@@
<xsl:strip-space elements="nota|akap|wyroznienie"/>
<xsl:template mode="inline"
<xsl:strip-space elements="nota|akap|wyroznienie"/>
<xsl:template mode="inline"
- match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|punkt|www|nota_red">
+ match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|
lista|
punkt|www|nota_red">
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
@@
-442,15
+442,17
@@
- first: is first column special?
-->
- first: is first column special?
-->
-<xls:template match="tabela">
+<xsl:template match="tabela">
+ <cmd name="outmulticols"></cmd>
<cmd name="begin"><parm>tabela</parm> </cmd>
<xsl:apply-templates mode="tabela"/>
<cmd name="end"><parm>tabela</parm> </cmd>
<cmd name="begin"><parm>tabela</parm> </cmd>
<xsl:apply-templates mode="tabela"/>
<cmd name="end"><parm>tabela</parm> </cmd>
-</x
ls
:template>
+</x
sl
:template>
<xsl:template match="r" mode="tabela">
<xsl:template match="r" mode="tabela">
+<!-- R<xsl:value-of select="count(preceding-sibling::*)" />-->
<xsl:choose>
<xsl:choose>
- <xsl:when test="
position() = 1
">
+ <xsl:when test="
count(preceding-sibling::*) = 0
">
<cmd name="tabelanaglowek"><parm>
<xsl:apply-templates mode="tabelanaglowek"/>
</parm></cmd>
<cmd name="tabelanaglowek"><parm>
<xsl:apply-templates mode="tabelanaglowek"/>
</parm></cmd>
@@
-464,21
+466,22
@@
</xsl:template>
<xsl:template match="c" mode="tabelanaglowek">
</xsl:template>
<xsl:template match="c" mode="tabelanaglowek">
- <xsl:if test="
position() > 1">&
</xsl:if>
+ <xsl:if test="
count(preceding-sibling::*) > 0"><spec cat="align"/>
</xsl:if>
<cmd name="tabelakomnaglowek"><parm>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:template>
<xsl:template match="c" mode="tabelawiersz">
<cmd name="tabelakomnaglowek"><parm>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:template>
<xsl:template match="c" mode="tabelawiersz">
+
<xsl:choose>
<xsl:choose>
- <xsl:when test="
position() = 1
">
+ <xsl:when test="
count(preceding-sibling::*) = 0
">
<cmd name="tabelakompierwsza"><parm>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:when>
<xsl:otherwise>
<cmd name="tabelakompierwsza"><parm>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:when>
<xsl:otherwise>
-
&
<cmd name="tabelakom"><parm>
+
<spec cat="align"/>
<cmd name="tabelakom"><parm>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:otherwise>
<xsl:apply-templates mode="inline"/>
</parm></cmd>
</xsl:otherwise>