Zarovnani pevnych sloupcu tabulky

Davidek Tomas davidek at hp02.troja.mff.cuni.cz
Thu Oct 28 22:55:28 CEST 1999


> \def\sirka{2cm}             % Sirka sloupce tabulky
> \begin{tabular}[p]{|p{\sirka}|p{\sirka}|p{\sirka}|}
>  text doleva & text na stred & text doprava \\
> ...
>
> a potreboval bych aby v jednotlivych sloucich bylo jine zarovnani
> (doleva, na stred a doprava). Kdyz zmenim p{\sirka} na napr. r{\sirka}
> nebo c{\sirka} nahlasi se chyba.

Inspiraci naleznete v baliku tabularx.sty od Davida Carlisle. Ja jsem
nedavno potreboval neco podobneho, vyresila to definice napr.:
\newcolumntype{K}{>{\centering\arraybackslash}p{0.6in}}
    \begin{tabularx}{0.9\linewidth}{|K||X|X|}
to asi pujde i s obycejnym tabular, jen musite nadefinovat prikaz
\arraybackslash, ktery je definovan tusim az v tabularx.sty

TeXu zdar a LaTeXu zvlast,

           Tomas Davidek

 E-mail : davidek at hp01.troja.mff.cuni.cz,
	  Tomas.Davidek at cern.ch




More information about the csTeX mailing list