Jason-S-Ross / ox-context

An Org Mode export backend for ConTeXt
13 stars 4 forks source link

Using named command variants #40

Open juh2 opened 3 months ago

juh2 commented 3 months ago

In ConTeXt you can define new command variants like this:


\defineexternalfigure
[text]
[width=\textwidth]

\defineexternalfigure
[margin]
[width=\rightmarginwidth]

\defineexternalfigure
[full]
[width=\dimexpr\textwidth+\rightmargintotal\relax]

It is thus possible to define different externalfigures that behave in specific ways.

Is there already a way to pass "name" from org-mode to context?

Jason-S-Ross commented 3 months ago

That functionality doesn't currently exist. It sounds like a great idea and I'd be happy to take a pull request :)