![](https://secure.gravatar.com/avatar/f8c585f7ce0d7ffc15d854bf7ade06e1.jpg?s=120&d=mm&r=g)
What I get from the manual is that part titles are not there by default. How do I get them?? I just want a page with the part title centered more-or-less on the page. Bruce
![](https://secure.gravatar.com/avatar/558730e6e47886788aae8ebe7a13956f.jpg?s=120&d=mm&r=g)
On Wednesday 26 February 2003 05:07 pm, Bruce D'Arcus wrote:
What I get from the manual is that part titles are not there by default. How do I get them??
I just want a page with the part title centered more-or-less on the page.
Bruce
Remember that most of the things you can do in plain TeX you can do in Context. Try this: \page[yes] \startstandardmakeup \vfil \midaligned{Here is a TItle} \vfil \stopstandardmakeup \page[yes] .... HTH John Culleton
![](https://secure.gravatar.com/avatar/f8c585f7ce0d7ffc15d854bf7ade06e1.jpg?s=120&d=mm&r=g)
Thanks, and this will work for this thing I need to get out today. But, there is a \part command, so shouldn't it be simple to get what I want with a \setuphead command? I'd submit what I'm asking for ought to be default behavior (as it is in LaTeX), and that one could just turn off the typesetting with a simple parameter if so wanted. Bruce On Wednesday, February 26, 2003, at 05:43 PM, John Culleton wrote:
Remember that most of the things you can do in plain TeX you can do in Context.
Try this: \page[yes] \startstandardmakeup \vfil \midaligned{Here is a TItle} \vfil \stopstandardmakeup \page[yes]
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
Thanks, and this will work for this thing I need to get out today. But, there is a \part command, so shouldn't it be simple to get what I want with a \setuphead command?
It's really quite easy, you must only setup the "part" head -- you could find it in the docs yourself. (John tends to give a bit contraproductive low-level TeX answers even if there's a comfortable ConTeXt solution...) An example from my latest book: \setuphead[part] [style={\ss\bfc}, page=yes, number=yes, placehead=yes, align=right, before={}, after=\blank, header=empty] Any more questions? Grüßlis vom Hraban! -- www.fiee.net/texnique/ www.ramm.ch/context/
![](https://secure.gravatar.com/avatar/8b3c344f0adba6016612e05447039f44.jpg?s=120&d=mm&r=g)
On Thursday 27 February 2003 05:06 pm, Henning Hraban Ramm wrote:
Thanks, and this will work for this thing I need to get out today. But, there is a \part command, so shouldn't it be simple to get what I want with a \setuphead command?
It's really quite easy, you must only setup the "part" head -- you could find it in the docs yourself. (John tends to give a bit contraproductive low-level TeX answers even if there's a comfortable ConTeXt solution...)
An example from my latest book:
\setuphead[part] [style={\ss\bfc}, page=yes, number=yes, placehead=yes, align=right, before={}, after=\blank, header=empty]
Any more questions?
...and a fine example it is. You are right, when in a hurry I tend to use commands I know and know will work. Your solution is much better. And it is in the manual:-) But it is always good to have a worked example and you have provided that. John Culleton
Grüßlis vom Hraban!
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
(John tends to give a bit contraproductive low-level TeX answers even if there's a comfortable ConTeXt solution...)
and a fine example it is. You are right, when in a hurry I tend to use commands I know and know will work. Your solution is much better. And it is in the manual:-) But it is always good to have a worked example and you have provided that.
I wish I'd understand TeX like you -- so I'm forced to use the documented ConTeXt commands. And most time that's better or at least more readable. ;-) Grüßlis vom Hraban! -- www.fiee.net/texnique/
![](https://secure.gravatar.com/avatar/f8c585f7ce0d7ffc15d854bf7ade06e1.jpg?s=120&d=mm&r=g)
On Thursday, February 27, 2003, at 05:06 PM, Henning Hraban Ramm wrote:
It's really quite easy, you must only setup the "part" head -- you could find it in the docs yourself.
I looked in the docs, but there is no explicit discussion on setting up parts formatting, and it's not intuitively obvious (at least to me) how to apply the procedures for, say, sections (which are formatted by default) to those for parts (which are not).
(John tends to give a bit contraproductive low-level TeX answers even if there's a comfortable ConTeXt solution...)
An example from my latest book:
\setuphead[part] [style={\ss\bfc}, page=yes, number=yes, placehead=yes, align=right, before={}, after=\blank, header=empty]
Any more questions?
Yes :-) The doc I am working on is a two-part book proposal. The first part is the proposal proper, while the second part is a sample chapter from the book. In other words, the first part has no chapter, while the second part does. If I use your code, here is what I get: For part 1, I get "Part 1..." at the top of the page, and text (beginning with the first section) begins right after it. For part 2, I get (as I was looking for) "Part 2..." on a separate page, plus a blank page that follows, and then the sample chapter. Just so I understand this, is this explained by some interaction between the chapter setup commands, and the parts? Thank you! Bruce
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
I looked in the docs, but there is no explicit discussion on setting up parts formatting, and it's not intuitively obvious (at least to me) how to apply the procedures for, say, sections (which are formatted by default) to those for parts (which are not).
parts are formatted like any other sectioning commands. Ok, it should be mentioned somewhere that "part" has no default setup.
\setuphead[part] [style={\ss\bfc}, page=yes, number=yes, placehead=yes, align=right, before={}, after=\blank, header=empty]
For part 1, I get "Part 1..." at the top of the page, and text (beginning with the first section) begins right after it.
That makes "after=\blank" (only one empty line after the part line; I needed that because the first chapter of a part should begin on the part page).
For part 2, I get (as I was looking for) "Part 2..." on a separate page, plus a blank page that follows, and then the sample chapter.
If you are not paper restricted (my book had to fit into a fixed page frame), you normally should use "page=right" and no "before" or "after".
Just so I understand this, is this explained by some interaction between the chapter setup commands, and the parts?
Maybe. Perhaps your chapter is defined with "page=right". You didn't show us your chapter setup, and I can't find my cristal ball. Grüßlis vom Hraban! -- www.fiee.net/texnique/ www.ramm.ch/context/
participants (4)
-
Bruce D'Arcus
-
Henning Hraban Ramm
-
John Culleton
-
John Culleton