You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right so the reason I did this is that when defining a command via \newcommand, you must explicitly pass the number of arguments. When defining a lx_* you don't specify this and so it's hardcoded to one.
I'll have a think about it. In theory it could be done by passing an optional kwarg to lx_* so that you'd define lx_*(com, _; nargs=2) but it needs to be done carefully.
(side note: I actually quite like passing named arguments to "latex-like" commands because it becomes more readable which is why I went down that route of parsing the content of the command but I agree that both things should be supported).
It seems that the number of arguments with the
lx_*
function defined inutils.jl
is hardcoded:https://github.com/tlienart/Franklin.jl/blob/master/src/parser/latex/blocks.jl#L161
This makes it impossible to support multiple arguments in a latex command.
Though you provide a workaround here: #411 (comment)
But this means one has to parse argument names and values by hand.
The text was updated successfully, but these errors were encountered: