koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
393 stars 42 forks source link

NewCommand missing #11

Closed MikaelMayer closed 7 years ago

MikaelMayer commented 7 years ago

I am trying to create my own concepts and reuse them, such as variable names and so on. Basically, I would like to write a \newcommand but the following displays raw in the interface.

~ Snippet
\newcommand{\MYTOOL}{MYTOOL}
~

and I cannot see how to use the command if it was ever defined. \MYTOOL shows up literally, and $\MYTOOL$ shows $\mathpre{\MYTOOL}$

  1. Is there any equivalent to \newcommand in madoko that I could use?
  2. If not, how could I make the above to work ?
MikaelMayer commented 7 years ago

OK I found the concept of entities that does exactly what I wanted:

http://madoko.org/reference.html#sec-entity