* after with fixed position
@ 2016-03-16 14:35 Pablo Rodriguez
2016-05-01 11:14 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2016-03-16 14:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: after with fixed position
2016-03-16 14:35 after with fixed position Pablo Rodriguez
@ 2016-05-01 11:14 ` Pablo Rodriguez
2016-05-01 14:32 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2016-05-01 11:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: after with fixed position
2016-05-01 11:14 ` Pablo Rodriguez
@ 2016-05-01 14:32 ` Aditya Mahajan
2016-05-01 14:50 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2016-05-01 14:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: after with fixed position
2016-05-01 14:32 ` Aditya Mahajan
@ 2016-05-01 14:50 ` Pablo Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2016-05-01 14:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-01 14:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 14:35 after with fixed position Pablo Rodriguez
2016-05-01 11:14 ` Pablo Rodriguez
2016-05-01 14:32 ` Aditya Mahajan
2016-05-01 14:50 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).