Centrovana tabulka

Jaroslav Kuruc kuruc na fiit.stuba.sk
Středa Březen 2 12:21:34 CET 2005


Pouzivam XEP. Nastavil som spominane atributy, este aj navyse

   <xsl:attribute-set name="formal.object.properties">
     <xsl:attribute name="text-align">center</xsl:attribute>
   </xsl:attribute-set>

no nie je to celkom ono.

Teraz mi to formatuje takto:
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...


Jirka Kosek wrote:
> 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.
> 

-- 
Jaroslav Kuruc
kuruc na fiit.stuba.sk
Slovak University of Technology
Faculty of Informatics and Information Technologies
Ilkovicova 3
84216 Bratislava
Slovakia


Další informace o konferenci Docbook