Reputation
2,125
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
11 35
Newest
 Revival
Impact
~362k people reached

May
6
comment How can I get a count of the optional arguments with xparse?
@DavidCarlisle Putting aside that this doesn't really answer the question of getting an argument count, I do appreciate that you're trying to help me create a more efficient way of doing this. The actual use is to create a specially formatted form. I need to isolate the arguments to insert them in specific places. Another criterion is to keep the code readable. Being able to put argument inputs on separate lines is key. The other option is to create horrible looking tables of this information (I am trying to provide a better option)
May
6
comment How can I get a count of the optional arguments with xparse?
@egreg Please consider my last comment. to Manuel. How do I know which number represents the last variable if the user can sometimes use 3 args (last=#3), sometimes 8 (last=#8)? Thats a pretty general judgement right there (about this syntax being clumsy), by the way.
May
6
comment How can I get a count of the optional arguments with xparse?
@Manuel Ok oops, the answer to your question about just declaring the last arg m is that I still do not know whether m=#1,#2,#3,#4,#5,#6,#7,#8, or #9.
May
6
comment How can I get a count of the optional arguments with xparse?
@Manuel I knew about the \IfValueTF but I was hoping for a "cleaner" solution (less code). I think just making the ninth argument mandatory is a good idea and should work for my purposes! I did not know about the maximum number of arguments.
May
6
comment How can I get a count of the optional arguments with xparse?
@UlrikeFischer That test is not robust enough. It does not work when working with an arbitrary number of arguments.
May
6
asked How can I get a count of the optional arguments with xparse?
May
4
comment How can I typeset an environment and its literal equivalent in an environment?
Is it possible to have LaTeX automatically delete the tmp.tex file after compilation?
May
4
comment How can I typeset an environment and its literal equivalent in an environment?
Hey that looks great. Could you elaborate as to where the example hack starts and ends? What are the \chardefs doing? Normally set special characters to have class 11 (letter) for verbatim information, right?
May
3
accepted How can I typeset an environment and its literal equivalent in an environment?
Apr
30
comment How can I typeset an environment and its literal equivalent in an environment?
The time you spent reading Stephan von Bechtolsheim's "TeX in practice" wasn't completely wasted :D
Apr
29
comment How can I typeset an environment and its literal equivalent in an environment?
@cfr No, I did mean xparse. \NewDocumentEnvironment{environment}{vvv} is possible due to xparse.
Apr
28
comment How can I typeset an environment and its literal equivalent in an environment?
ChristianHupfer I don't know and it is frankly more interesting to figure out how to switch between literal code and code to be typeset that taking the tcolorbox route. I would have to open a new question for that anyway, because it is beyond the scope of this question. Thanks for the environ package tip. @cfr I am aware of it for capturing the body as \BODY, but I then I can't use xparse for the verbatim input and fancy-schmancy environments/commands.
Apr
27
revised How can I typeset an environment and its literal equivalent in an environment?
add picture
Apr
27
comment How can I typeset an environment and its literal equivalent in an environment?
@PaulGessler If you are referring to tcolorbox, it is not an option due to compatibility issues with hyperref.
Apr
27
revised How can I typeset an environment and its literal equivalent in an environment?
added 199 characters in body
Apr
27
revised How can I typeset an environment and its literal equivalent in an environment?
updated attempt
Apr
25
revised How can I use multicolumn or multirow in a tabular using the array package global formatting technique?
added missing formatting commands to multicolumn and multirow
Apr
25
asked How can I use multicolumn or multirow in a tabular using the array package global formatting technique?
Apr
24
revised How can I typeset an environment and its literal equivalent in an environment?
added 2 characters in body; edited tags
Apr
24
revised How can I typeset a command and its literal equivalent in an environment?
added link to follow-up q