Centrovana tabulka
Jirka Kosek
jirka na kosek.cz
Středa Březen 2 10:53:10 CET 2005
Jaroslav Kuruc wrote:
> je mozne dosiahnut (pre xsl fo), aby boli tabulky umiestnene v ramci
> bloku centrovane a aby mali len nutnu sirku? Teda nieco taketo:
>
> Text text text text text text text text text text text text text text
> text text text text text text text text text...
>
> Tabulka 1. Nazov tabulky
> +----------+----------+-------------------+
> | Stlpec 1 | Stlpec 2 | Stlpec 3 |
> +----------+----------+-------------------+
> | text | text | dlhy predlhy text |
> +----------+----------+-------------------+
> ...
>
> Text text text text text text text text text text text text text text
> text text text text text text text text text...
U tabulky nesmíte určit šířky sloupců (colspec), musíte nastavit
automatický layout tabulek a centrování:
<xsl:attribute-set name="table.properties">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="table-layout">auto</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="tablecolumns.extension" select="0"/>
a musíte použít FO procesor, který podporuje automatický layout tabulek
-- třeba XEP nebo XSL Formatter.
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka na kosek.cz http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
------------- další část ---------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3158 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.linux.cz/pipermail/docbook/attachments/20050302/e69adac9/attachment.bin>
Další informace o konferenci Docbook