Open main menu

Changes

542 bytes added ,  21:29, 3 June 2009
m
→‎Paragraph columns: Added ConTeXt output
* The format for the spanned column is fixed and you have to change it in the macro
{| ! width="45%"| ! width="10%"| ! width="45%"| |- | <texcode>
\def\tabulateuse#1%
{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
\starttext
\starttabulate[|p(4cm2cm)|p(4cm3cm)|p(6cm4cm)|]\NC \dorecurse{10}{text } \NC \dorecurse{84}{text Lorem Ipsum } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC
\dorecurse{2217}{text } \NC\NR
\stoptabulate
\stoptext
</texcode>
|
|<context>
\def\tabulateuse#1%
{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
 
\appendtoks
\let\use\tabulateuse
\defineTABLEshorthands
\to \everytabulate
 
\starttext
\switchtobodyfont[8pt]
\starttabulate[|p(2cm)|p(3cm)|p(4cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{4}{Lorem Ipsum } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC
\dorecurse{17}{text } \NC\NR
\stoptabulate
 
\stoptext
</context>
|}
[[Category:Tables]]