Hello,
I’d like to create a small set of macros in a .ts package file for writing vectors in two different styles: either as bold italic letters or as letters with arrows above .
I could define two separate macros — for example, vec
for bold italic vectors and vecarrow
for arrowed vectors.
However, I’d prefer to use a single macro name , like vec
, and control the style via a parameter or a global setting to be specified when using the package. For example style=bold_italic or style=arrow.
Is it possible in TeXmacs to define such a macro where the vector style (bold italic vs. arrow) can be selected through an argument or a configurable option? Do you have an idea of how I could write these macros?
Best regards,
Diog