Orphans and widows in Natural Tables
Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables. I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how? advTHANKSance
MWE
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] %\definefontfamily[mainface][rm][Andada][sc=file:AndadaSC-Regular.otf] %\definefontfamily[mainface][ss][Fira Sans] %\definefontfamily[mainface][tt][Inconsolata] %\definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,9pt] \starttext \setupTABLE[frame=off, split=repeat] \setupTABLE[r][last][bottomframe=on] \setupTABLE[c][1][width=3.0in] \setupTABLE[c][2][width=0.5in, align=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH \eTH \eTR \eTABLEhead \bTABLEbody \dorecurse{10}{ %% Need to keep Unit description row and comment row together. \bTR[topframe=on] \bTD {\sc Unit } \eTD \bTD 10 \eTD \bTD 99 \eTD \bTD \eTD \eTR \bTR \bTD[nc=4] \input lorem.tex \eTD \eTR } \eTABLEbody \eTABLE \stoptext <<<< MWE -- Pavneet Arora m: +1 (647) 406-6843 Waroc Informatik t: +1 (416) 937-9276
On Thu, 9 Jun 2016, Pavneet Arora wrote:
Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables.
I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how?
advTHANKSance
MWE
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] %\definefontfamily[mainface][rm][Andada][sc=file:AndadaSC-Regular.otf] %\definefontfamily[mainface][ss][Fira Sans] %\definefontfamily[mainface][tt][Inconsolata] %\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,9pt]
\starttext \setupTABLE[frame=off, split=repeat] \setupTABLE[r][last][bottomframe=on] \setupTABLE[c][1][width=3.0in] \setupTABLE[c][2][width=0.5in, align=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH \eTH \eTR \eTABLEhead \bTABLEbody \dorecurse{10}{ %% Need to keep Unit description row and comment row together. \bTR[topframe=on] \bTD {\sc Unit } \eTD \bTD 10 \eTD \bTD 99 \eTD \bTD \eTD \eTR
(Untested): Add \noindent{\blank[samepage]}
\bTR \bTD[nc=4] \input lorem.tex \eTD \eTR } \eTABLEbody \eTABLE \stoptext
Aditya
Pavneet Arora mailto:pavneet_arora@waroc.com 9. Juni 2016 um 22:21 Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables.
I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how?
advTHANKSance
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] %\definefontfamily[mainface][rm][Andada][sc=file:AndadaSC-Regular.otf] %\definefontfamily[mainface][ss][Fira Sans] %\definefontfamily[mainface][tt][Inconsolata] %\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,9pt]
\starttext \setupTABLE[frame=off, split=repeat] \setupTABLE[r][last][bottomframe=on] \setupTABLE[c][1][width=3.0in] \setupTABLE[c][2][width=0.5in, align=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH \eTH \eTR \eTABLEhead \bTABLEbody \dorecurse{10}{ %% Need to keep Unit description row and comment row together. \bTR[topframe=on] \bTD {\sc Unit } \eTD \bTD 10 \eTD \bTD 99 \eTD \bTD \eTD \eTR \bTR \bTR[samepage=before] \bTD[nc=4] \input lorem.tex \eTD \eTR } \eTABLEbody \eTABLE \stoptext
<<<< MWE Wolfgang
participants (3)
-
Aditya Mahajan
-
Pavneet Arora
-
Wolfgang Schuster