ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Caption textcommand option
@ 2010-10-19 12:24 Cedric Mauclair
  2010-10-19 12:26 ` Cedric Mauclair
  2010-10-19 12:46 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Cedric Mauclair @ 2010-10-19 12:24 UTC (permalink / raw)
  To: ConTeXt-mailinglist

Hi Hans and all,

Would it be possible to add an options to the captions with name
textcommand to typeset the caption text only. In French, we use a
point at the end of the captions, but if I want to use \about...
somewhere, I end up with the dot too, which I don't want.

Currently I have changed, rather crudely, the definition of
\putcompletecaption... to take that into account. Here is what I came
up with.

\def\DotAtEnd#1{#1.}
\setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

\long\def\putcompletecaption
 ...
       \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
% MODIFIED
     \fi
   \endgroup
  %\floatcaptionparameter\c!after % test for side effects first
   \doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
%% END YUCK!!

I am sure there is a better way though.

Regards.

-- Cédric
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2010-10-20  6:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-19 12:24 Caption textcommand option Cedric Mauclair
2010-10-19 12:26 ` Cedric Mauclair
2010-10-19 12:46 ` Wolfgang Schuster
2010-10-19 14:55   ` Cedric Mauclair
2010-10-19 18:15     ` Wolfgang Schuster
2010-10-19 20:46       ` Alan BRASLAU
2010-10-20  6:37         ` Cedric Mauclair

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