ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Captions command (special alignment)
@ 2011-09-17 19:12 Honza Hejzl
  2011-09-18 12:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Honza Hejzl @ 2011-09-17 19:12 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]

Hello,
why that simple thing doesn't work? Does anybody know?

\def\mycap#1#2{\hbox{\hbox{#1}\vtop{#2\par}}}

\setupcaptions[command=\mycap]


Simply I need this:


Fig. 1 The fig is great...

...like any other fig.


I have tried to set this up via table but still can't proceed.


Thanks, Honza Hejzl

[-- Attachment #1.2: Type: text/html, Size: 2298 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

* Re: Captions command (special alignment)
  2011-09-17 19:12 Captions command (special alignment) Honza Hejzl
@ 2011-09-18 12:19 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-09-18 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]


Am 17.09.2011 um 21:12 schrieb Honza Hejzl:

> Hello,
> why that simple thing doesn't work? Does anybody know?
> 
> \def\mycap#1#2{\hbox{\hbox{#1}\vtop{#2\par}}}
> \setupcaptions[command=\mycap]
> 
> Simply I need this:
> 
> Fig. 1 The fig is great...
> ...like any other fig.
> 
> I have tried to set this up via table but still can't proceed.

This doesn’t work because the command-key expects a command with one
argument which contains the caption number *and* text.

To write your own caption layout ask Hans to rewrite the code
for the \placefloatcaption (…number and …text) commands for MkIV.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2293 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2011-09-18 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-17 19:12 Captions command (special alignment) Honza Hejzl
2011-09-18 12:19 ` Wolfgang Schuster

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