after with fixed position
Dear list, I have the following sample: \showgrid \setuphead[chapter][after={\blank[10*big]}] \starttext \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \chapter{Knuth\\\&\\Zapf} \input zapf\par\input zapf \stoptext How could I have the text after the chapter heading with a fixed distance, no matter how many lines the title itself has? Many thanks for your help, Pablo -- http://www.ousia.tk
On 03/16/2016 03:35 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\showgrid \setuphead[chapter][after={\blank[10*big]}] \starttext \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \chapter{Knuth\\\&\\Zapf} \input zapf\par\input zapf \stoptext
How could I have the text after the chapter heading with a fixed distance, no matter how many lines the title itself has?
For future reference (and replying to myself), the solution may read: \showgrid \define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}} \setuphead[chapter][command={\chapterframe}] \starttext \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \chapter{Knuth\\\&\\Zapf} \input zapf\par\input zapf \stoptext The code comes from the user that reported the issue at https://github.com/ousia/context-critica/issues/1. Just in case it may be useful to anyone, Pablo -- http://www.ousia.tk
On Sun, 1 May 2016, Pablo Rodriguez wrote:
For future reference (and replying to myself), the solution may read:
OT, but ...
\define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}}
you can define a new frame using: \defineframed[chapterframe][frame=off, height=10mm, align=high] Aditya
On 05/01/2016 04:32 PM, Aditya Mahajan wrote:
On Sun, 1 May 2016, Pablo Rodriguez wrote:
For future reference (and replying to myself), the solution may read:
OT, but ...
\define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}}
you can define a new frame using:
\defineframed[chapterframe][frame=off, height=10mm, align=high]
Many thanks for the tipp, Aditya. Pablo -- http://www.ousia.tk
participants (2)
-
Aditya Mahajan
-
Pablo Rodriguez