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.
\setupbodyfont[9pt]
\setupindenting[yes,medium,next]
\setupwhitespace[small]
\definetabulate[subjectpar][|f{\ssc}w(.3\textwidth)|f{\ssc}p|]
\setuptabulate
[subjectpar][after={\blackrule[width=\textwidth,height=\linewidth]\noindentation}]
\defineframedtext
[subjectblock]
[frame=off,
width=max,
offset=0pt,
before={\blank[2*big]}]
\starttext
\blank[8*big, force]
\dorecurse{10}
{\startsubjectblock
\startsubjectpar
\NC ENG4U \NC English (Grade 12) \NC\NR
\stopsubjectpar
\input{lorem.tex}
\stopsubjectblock}
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________