ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Caption with new line
@ 2017-03-17  7:29 Kostirya
  2017-03-17 15:11 ` Kostirya
  0 siblings, 1 reply; 2+ messages in thread
From: Kostirya @ 2017-03-17  7:29 UTC (permalink / raw)
  To: ntg-context

Hello.

I use \vbox to separate headtext from text in chapter header by new line.

 \define[2]\MyChapterCommand{\vbox{\centeraligned{\headtext{chapter} #1.\\#2}}}
 \define[1]\DotAfterNumber{\doiftext{#1}{#1.}}

 \setuphead[chapter][command=\MyChapterCommand]
 \setuphead[title][numbercommand=\DotAfterNumber,command=]

Tell me, please, how can I do like for Captions of Floating Objects?

Nick.
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Caption with new line
  2017-03-17  7:29 Caption with new line Kostirya
@ 2017-03-17 15:11 ` Kostirya
  0 siblings, 0 replies; 2+ messages in thread
From: Kostirya @ 2017-03-17 15:11 UTC (permalink / raw)
  To: ntg-context

Hello.

I use \vbox to separate headtext from text in chapter header by new line.

 \define[2]\MyChapterCommand{\vbox{\centeraligned{\headtext{chapter} #1.\\#2}}}
 \define[1]\DotAfterNumber{\doiftext{#1}{#1.}}

 \setuphead[chapter][command=\MyChapterCommand]
 \setuphead[title][numbercommand=\DotAfterNumber,command=]

Tell me, please, how can I do like for Captions of Floating Objects?

Nick.
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-03-17 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17  7:29 Caption with new line Kostirya
2017-03-17 15:11 ` Kostirya

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