# Re: [NTG-context] Caption textcommand option

Sorry, the message was not over.

I was hilighting the interesting part :

\def\DotAtEnd#1{#1.}

\long\def\putcompletecaption#1#2%
...
\begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
...

-- Cédric

On Tue, Oct 19, 2010 at 14:24, Cedric Mauclair
<cedric.maucl...@gmail.com> wrote:
> 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.}
>
> \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
>
___________________________________________________________________________________