Hello list! I'd like to be able to add vertical spacing before a chapter title on the first page of a chapter, and also I want to control spacing before and after section titles with something different than the \setupwhitespace value, which I want to keep for default spacing between paragraphs. How does one achieve this? I've tried using \blank with after= and before= parameters in \setuphead, but to no avail! Thanks all for your help, as always. Jeff
On Sat, 23 Jun 2007 00:17:27 +0200
"Jeff Smith"
Hello list!
I'd like to be able to add vertical spacing before a chapter title on the first page of a chapter, and also I want to control spacing before and after section titles with something different than the \setupwhitespace value, which I want to keep for default spacing between paragraphs. How does one achieve this? I've tried using \blank with after= and before= parameters in \setuphead, but to no avail!
Thanks all for your help, as always. Jeff
Hi Jeff, the following works for me: \starttext \chapter{Knuth} \input knuth \setuphead [chapter] [before={\blank[force,2cm]}] \chapter{Knuth} \input knuth \stoptext Wolfgang
Oh, right. This works. Two parameters with a comma; I need to remember the cases where this is possible! Thanks a lot! Jeff
Hi Jeff,
the following works for me:
\starttext
\chapter{Knuth} \input knuth
\setuphead [chapter] [before={\blank[force,2cm]}]
\chapter{Knuth} \input knuth
\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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Well, I spoke a bit fast. I'd still like to control the vertical spacing _after_ a title with another command than \setupwhitespace. Is it possible? Thanks in advance!
Hi again!
On 6/23/07, Aditya Mahajan
\setuphead[section][after={\blank[big]}]
Is this the only way? The thing is, between my section title and the text, I want vertical spacing roughly equal to my interlinespace, not my "whitespace" (as the spacing between paragraphs with \setupwhitespace). The former is a smaller value than the latter, and with after= and \blank it doesn't work as long as I specify such a smaller value. It only works when I want extra spacing, but I want less. How does one achieve this? Thanks in advance! Jeff
On Sun, 24 Jun 2007 11:12:00 +0200
"Jeff Smith"
Hi again!
On 6/23/07, Aditya Mahajan
wrote: \setuphead[section][after={\blank[big]}]
Is this the only way? The thing is, between my section title and the text, I want vertical spacing roughly equal to my interlinespace, not my "whitespace" (as the spacing between paragraphs with \setupwhitespace). The former is a smaller value than the latter, and with after= and \blank it doesn't work as long as I specify such a smaller value. It only works when I want extra spacing, but I want less. How does one achieve this?
Thanks in advance! Jeff
\setuphead[section][after=\nowhitespace] \starttext \section{Knuth} \input knuth \stoptext Wolfgang
That works. Thank you very much! I must find a way to come to grips
with those simple commands!
Jeff
On 6/24/07, Wolfgang Schuster
\setuphead[section][after=\nowhitespace]
\starttext
\section{Knuth}
\input knuth
\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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Aditya Mahajan
-
Jeff Smith
-
Wolfgang Schuster