On Fri, 17 Jun 2016, Wolfgang Schuster wrote:

Pavneet Arora <mailto:pavneet_ar...@waroc.com>
17. Juni 2016 um 14:22
I tried to use Aditya's suggestion (which was for Natural Tables) to
keep paragraphs on the same page:

\noindent{\blank[samepage]}

but I don't seem to have much success with the MWE I posted earlier.

Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc
English (Grade 12)}" and the hairline together. I can, however, keep
the hairline and the following lorem text together, but I need all three
elements to float as a group: the paragraph header, hairline, and
paragraph body.

Would anyone have any suggestions on how to accomplish this?
You can put everything in a framedtext to keep it together.

Or, just put everything in a TABLE (that does not split, by default):

\setupbodyfont[9pt]
\setupindenting[yes,medium,next]
\setupwhitespace[small]

\startsetups subjects
  \setupTABLE[frame=off, align={normal,hyphenated}]
  \setupTABLE[column][1][width=0.3\textwidth]
  \setupTABLE[column][2][width=0.7\textwidth]
  \setupTABLE[row][1][style=\ssc, bottomframe=on, toffset={2\bigskipamount}]
\stopsetups

\starttext

\blank[8*big, force]

\dorecurse{10}
  {\startTABLE[setups=subjects]}]
     \NC ENG4U \NC English (Grade 12) \NC\NR
     \NC[nc=2] \input{lorem.tex}      \NC\NR
   \stopTABLE}

\stoptext

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to