ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* help! how to get a part title?
@ 2003-02-26 22:07 Bruce D'Arcus
  2003-02-26 22:43 ` John Culleton
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce D'Arcus @ 2003-02-26 22:07 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-26 22:07 help! how to get a part title? Bruce D'Arcus
@ 2003-02-26 22:43 ` John Culleton
  2003-02-27 16:36   ` Bruce D'Arcus
  0 siblings, 1 reply; 8+ messages in thread
From: John Culleton @ 2003-02-26 22:43 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-26 22:43 ` John Culleton
@ 2003-02-27 16:36   ` Bruce D'Arcus
  2003-02-27 22:06     ` Henning Hraban Ramm
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce D'Arcus @ 2003-02-27 16:36 UTC (permalink / raw)



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]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-27 16:36   ` Bruce D'Arcus
@ 2003-02-27 22:06     ` Henning Hraban Ramm
  2003-02-28  0:12       ` John Culleton
  2003-02-28  0:13       ` Bruce D'Arcus
  0 siblings, 2 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2003-02-27 22:06 UTC (permalink / raw)


> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-27 22:06     ` Henning Hraban Ramm
@ 2003-02-28  0:12       ` John Culleton
  2003-02-28 12:55         ` Henning Hraban Ramm
  2003-02-28  0:13       ` Bruce D'Arcus
  1 sibling, 1 reply; 8+ messages in thread
From: John Culleton @ 2003-02-28  0:12 UTC (permalink / raw)


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!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-27 22:06     ` Henning Hraban Ramm
  2003-02-28  0:12       ` John Culleton
@ 2003-02-28  0:13       ` Bruce D'Arcus
  2003-02-28 12:53         ` Henning Hraban Ramm
  1 sibling, 1 reply; 8+ messages in thread
From: Bruce D'Arcus @ 2003-02-28  0:13 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-28  0:13       ` Bruce D'Arcus
@ 2003-02-28 12:53         ` Henning Hraban Ramm
  0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2003-02-28 12:53 UTC (permalink / raw)


> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: help! how to get a part title?
  2003-02-28  0:12       ` John Culleton
@ 2003-02-28 12:55         ` Henning Hraban Ramm
  0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2003-02-28 12:55 UTC (permalink / raw)


>> (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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-02-28 12:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-26 22:07 help! how to get a part title? Bruce D'Arcus
2003-02-26 22:43 ` John Culleton
2003-02-27 16:36   ` Bruce D'Arcus
2003-02-27 22:06     ` Henning Hraban Ramm
2003-02-28  0:12       ` John Culleton
2003-02-28 12:55         ` Henning Hraban Ramm
2003-02-28  0:13       ` Bruce D'Arcus
2003-02-28 12:53         ` Henning Hraban Ramm

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).