ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Change Figure Capture
@ 2025-05-10 10:58 Jeroen
  2025-05-10 11:14 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Jeroen @ 2025-05-10 10:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Is there an easy way to change the capture below all figure captures to
italic?

Many thanks, Jeroen

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Change Figure Capture
  2025-05-10 10:58 [NTG-context] Change Figure Capture Jeroen
@ 2025-05-10 11:14 ` Wolfgang Schuster
  2025-05-10 12:41   ` Jeroen
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2025-05-10 11:14 UTC (permalink / raw)
  To: ntg-context

Am 10.05.2025 um 12:58 schrieb Jeroen:
> Is there an easy way to change the capture below all figure captures to 
> italic?

Use

   \setupcaption [figure] [style=italic]

to change the style of \placefigure only or use

   \setupcaption [style=italic]

to change the style of all floats, i.e. \placefigure, \placetable etc.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Change Figure Capture
  2025-05-10 11:14 ` [NTG-context] " Wolfgang Schuster
@ 2025-05-10 12:41   ` Jeroen
  2025-05-10 13:15     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Jeroen @ 2025-05-10 12:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I eventually got it to work as following:

\definefloat
  [figure]

\setupcaption
  [figure]
  [style=italic]


Op za 10 mei 2025 om 13:17 schreef Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com>:

> Am 10.05.2025 um 12:58 schrieb Jeroen:
> > Is there an easy way to change the capture below all figure captures to
> > italic?
>
> Use
>
>    \setupcaption [figure] [style=italic]
>
> to change the style of \placefigure only or use
>
>    \setupcaption [style=italic]
>
> to change the style of all floats, i.e. \placefigure, \placetable etc.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Change Figure Capture
  2025-05-10 12:41   ` Jeroen
@ 2025-05-10 13:15     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2025-05-10 13:15 UTC (permalink / raw)
  To: ntg-context

Am 10.05.2025 um 14:41 schrieb Jeroen:
> I eventually got it to work as following:
> 
> \definefloat
>    [figure]

You don't need \definefloat because "figure" as a float 
command/environment is predefined.

%%%% begin example
\setupcaption[figure][style=italic]

\starttext

\startplacefigure[title={First dummy figure}]
   \externalfigure[dummy-1]
\stopplacefigure

\placefigure
   {Second dummy figure}
   {\externalfigure[dummy-2]}

\stoptext
%%%% end example

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2025-05-10 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-10 10:58 [NTG-context] Change Figure Capture Jeroen
2025-05-10 11:14 ` [NTG-context] " Wolfgang Schuster
2025-05-10 12:41   ` Jeroen
2025-05-10 13:15     ` 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).