Quantcast
Channel: Defining a macro with three optional arguments in the form \newmacro{a}{b}[c]{d}[e][f] and \newmacro{a}{b}[c]{d}*[f] - TeX - LaTeX Stack Exchange
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by nickie for Defining a macro with three optional arguments in the...

This seems to be very easy with xparse. The only thing that seems hard to do is to enforce the exact syntax that you want for differentiating the two last optional arguments. With the solution below,...

View Article


Image may be NSFW.
Clik here to view.

Answer by egreg for Defining a macro with three optional arguments in the...

I would use a completely different approach, with a key-value syntax. Six arguments, some of them optional, with a * to denote a missing one are error...

View Article


Image may be NSFW.
Clik here to view.

Defining a macro with three optional arguments in the form...

I am defining a macro in LaTeX2e for writing function declarations.I want that the macro has tree compulsory arguments: the name of the function (v.g f), a depiction of the type of variable it takes...

View Article
Browsing all 3 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>