Re: [NTG-context] change caption position temporarily

2012-07-20 Thread d_jan

Is it possible to set the caption position for some images to another position
than the one defined in \setupcations ?
The standard in my document is location=bottom but for some images I'd prefer
=right.


\setupcaptions[location=bottom]
\def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
 \placefigure{#1}{#2}}}
\starttext
\placefigure{caption 1}{figure 1}
\PlaceRightFigure{caption 2}{figure 2}
\placefigure{caption 3}{figure 3}
\stoptext

Sorry that I get back on this so late:
thanks a lot, it works very well.
___
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
___


Re: [NTG-context] change caption position temporarily

2012-07-20 Thread Peter Münster
On Fri, Jul 20 2012, d_jan wrote:

 \setupcaptions[location=bottom]
 \def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
  \placefigure{#1}{#2}}}
 \starttext
 \placefigure{caption 1}{figure 1}
 \PlaceRightFigure{caption 2}{figure 2}
 \placefigure{caption 3}{figure 3}
 \stoptext
 Sorry that I get back on this so late:
 thanks a lot, it works very well.

Please don't send a message to the list, just to say thank you.
Millions of list-readers have to spend time opening and reading it.
For one person it's thank you, but for all the others it's spam.

Anyway, please take Wolfgang's solution, it's the better one.
(as always... ;)

-- 
   Peter
___
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
___


[NTG-context] change caption position temporarily

2012-07-16 Thread d_jan

Hello,

Is it possible to set the caption position for some images to another 
position than the one defined in \setupcations ?
The standard in my document is location=bottom but for some images I'd 
prefer =right.


Regards,
 Jan

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


Re: [NTG-context] change caption position temporarily

2012-07-16 Thread Peter Münster
On Mon, Jul 16 2012, d_jan wrote:

 Is it possible to set the caption position for some images to another position
 than the one defined in \setupcations ?
 The standard in my document is location=bottom but for some images I'd prefer
 =right.

\setupcaptions[location=bottom]
\def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
\placefigure{#1}{#2}}}
\starttext
\placefigure{caption 1}{figure 1}
\PlaceRightFigure{caption 2}{figure 2}
\placefigure{caption 3}{figure 3}
\stoptext

-- 
   Peter
___
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
___


Re: [NTG-context] change caption position temporarily

2012-07-16 Thread Wolfgang Schuster

Am 16.07.2012 um 11:27 schrieb Peter Münster:

 On Mon, Jul 16 2012, d_jan wrote:
 
 Is it possible to set the caption position for some images to another 
 position
 than the one defined in \setupcations ?
 The standard in my document is location=bottom but for some images I'd prefer
 =right.
 
 \setupcaptions[location=bottom]
 \def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
\placefigure{#1}{#2}}}
 \starttext
 \placefigure{caption 1}{figure 1}
 \PlaceRightFigure{caption 2}{figure 2}
 \placefigure{caption 3}{figure 3}
 \stoptext


It’s easier to create a real float command which has it’s own caption settings.

\definefloat[rightfigure][rightfigure][figure]

\setupcaption[rightfigure][location=right]

\starttext
\placefigure{caption 1}{\framed{figure 1}}
\placerightfigure{caption 2}{\framed{figure 2}}
\placefigure{caption 3}{\framed{figure 3}}
\stoptext

Wolfgang
___
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
___