\setupwhitespace and Natural Table paragraphs
I am trying to find the most effective way of changing paragraph spacing for paragraphs inside table cells, without resorting to explicit \blank directives. Here is a MWE to show what I mean. Outside of the table, the paragraph spacing seems to honour the \setupwhitespace directive. Not so inside the table. Curiously, though, the default enumeration inside the table *does* seem to honour \setupwhitespace, which you can affect using the before, after and inbetween options, as shown in the commented \startitemize line. advTHANKSance
MWE % Change spacing \setupwhitespace[big] \setupinterlinespace[3.8ex]
\starttext \input ward \input ward \midaligned{% \setupTABLE[frame=off]% \setupTABLE[offset=1em]% \setupTABLE[r][each][topframe=on,bottomframe=on]% \setupTABLE[c][1][align={flushleft,high},width=1.5in]% \setupTABLE[c][2][align={flushleft,lohi},width=4.0in]% \bTABLE \bTABLEbody \bTR \bTD {\bf 2014--2015} \eTD \bTD \input ward \input ward \blank \input ward \eTD \eTR \bTR \bTD {\bf 2013--2014} \eTD \bTD \input ward % \startitemize[before={\blank[small]},after={\blank[small]},inbetween={\blank[medium]}] \startitemize \item Item one. \item Item two. \item Item three. \stopitemize \eTD \eTR \eTABLEbody \eTABLE } \stoptext <<<< -- ---- Pavneet Arora m: 647.406.6843 Waroc Informatik t: 416.937.9276
Pavneet Arora mailto:pavneet_arora@waroc.com 17. August 2015 23:05 I am trying to find the most effective way of changing paragraph spacing for paragraphs inside table cells, without resorting to explicit \blank directives. Here are three ways how you can set the parskip value in a table cell.
\startsetups[table:whitespace] \setupwhitespace[medium] \stopsetups \starttext \bTABLE \bTR \bTD \setupwhitespace[medium] \input knuth \eTD \eTR \bTR \bTD[style={\setupwhitespace[medium]}] \input knuth \eTD \eTR \bTR \bTD[setups=table:whitespace] \input knuth \eTD \eTR \eTABLE \stoptext Wolfgang
participants (2)
-
Pavneet Arora
-
Wolfgang Schuster