ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] how can I do this in CLD
@ 2023-11-08 17:44 Henning Hraban Ramm
  2023-11-08 17:48 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2023-11-08 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, I’m generating some code in a loop and would like to use formatting 
like \quotation or \emph in a caption:

context.startplacefigure({title = "Style " .. context.quotation(style)})

That doesn’t work. I guess context.quotation is executed immediately and 
doesn’t return anything?
How can I do this?

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

* [NTG-context] Re: how can I do this in CLD
  2023-11-08 17:44 [NTG-context] how can I do this in CLD Henning Hraban Ramm
@ 2023-11-08 17:48 ` Henning Hraban Ramm
  0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm @ 2023-11-08 17:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 08.11.23 um 18:44 schrieb Henning Hraban Ramm:
> Hi, I’m generating some code in a loop and would like to use formatting 
> like \quotation or \emph in a caption:
> 
> context.startplacefigure({title = "Style " .. context.quotation(style)})
> 
> That doesn’t work. I guess context.quotation is executed immediately and 
> doesn’t return anything?
> How can I do this?
> 
> Hraban

Found it:
title = "Style \\quotation{" .. style .. "}"

Sorry for the noise.

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

end of thread, other threads:[~2023-11-08 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08 17:44 [NTG-context] how can I do this in CLD Henning Hraban Ramm
2023-11-08 17:48 ` [NTG-context] " Henning Hraban Ramm

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