Skip to content

Use named command variants in ConTeXt #9604

Answered by jgm
juh2 asked this question in Q&A
Mar 25, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Currently the writer has:

  return $ braces $ "\\externalfigure" <> brackets (literal src') <> dims <> clas

where clas is the first class, in brackets, if it exists, otherwise nothing, and dims are dimension specifiers e.g. height=3in in brackets, if specified, otherwise nothing.

This suggests you could just add a class, and it looks like that works:

% pandoc -t context
![ALT](image.jpg){.full}
\startplacefigure[title={ALT}]
{\externalfigure[image.jpg][full]}
\stopplacefigure

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@juh2
Comment options

@massifrg
Comment options

@jgm
Comment options

Answer selected by juh2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants