Reputation
1,957
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
11 34
Impact
~353k people reached

13h
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?
15h
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?
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
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
23
comment Is there a way to delay the setting of hyperref hypersetup values?
It works. Here it is: \newcommand\hyperset{\hypersetup{pdftitle={\baluga{} \whale{}},}} and call it after the \renewcommand\whale{whale} in the \specialmacro. If you incorporate that into your answer I will give you credit for it.
Apr
23
comment Is there a way to delay the setting of hyperref hypersetup values?
That is in interesting idea. I will try wrapping \hypersetupin a macro and calling it in the \specialmacro after the title is set.
Apr
23
comment Is there a way to delay the setting of hyperref hypersetup values?
I am sorry, but that does not answer the question, "Is there a way to post-process setting the hyperref hypersetup values?" I appreciate the effort anyway.
Apr
23
comment How can I typeset a command and its literal equivalent in an environment?
@egreg Sorry to be such a nag, but I really want to understand this. In your rescan, you create a new arg \l_macmad_argument_tl to contain the standard tokens of arg1 e.g. \framebox Then you follow it with {} which I don't understand, then \l_macmad_argument_i_tl. The manual states that rescan takes "⟨tl var⟩ {⟨setup⟩} {⟨tokens⟩}". tl var=\l_macmad_argument_tl, setup={}, tokens=\l_macmad_argument_i_tl? Is that correct? Where is your setup? And if it is just {}, what does that mean?
Apr
23
comment How can I typeset a command and its literal equivalent in an environment?
@egreg Why is the second \l_macmad_argument_ii_tl in \tl_if_blank:VF \l_macmad_argument_ii_tl {\l_macmad_argument_ii_tl } in braces?
Apr
22
comment How can I typeset a command and its literal equivalent in an environment?
@egreg The interface3 manual states that tl=token list and that l= parameters whose value should only be set locally. Are those referring to what you have as \tl and \l? I also see the _tl appended to the variable name.
Apr
22
comment How can I typeset a command and its literal equivalent in an environment?
Great! Thanks for sharing another option. My problem with the tcolorbox option is that it does not fully support hyperref. Perhaps in future versions this will not be the case.
Apr
22
comment How can I typeset a command and its literal equivalent in an environment?
@egreg Ok, I was able to get the literal command into a node like this \tikz \node [fill=blue!15] {\l_macmad_argument_i_tl};\par. However, I was not able to do the same to the typeset/reread version \l_macmad_argument_tl for some reason. Thanks for pointing me in the right direction! I am sitting here with a paper copy of the xparse documentation in front of me. I will check out interface3
Apr
22
comment How can I typeset a command and its literal equivalent in an environment?
@egreg What is this \tl_set:Nn business? I lost control of the code because I don't understand it. As it turns out, I don't want the commands to be in the margin. Normally I would just get rid of the marginnote and use a minipage or something. Also, I find it confusing that the first example uses xparse, but the second one does not. Really great work! Thanks for the help.
Apr
22
comment How can I typeset a command and its literal equivalent in an environment?
@egreg My favorite is the recursive definition: This command prints the \TeX\ logo.
Apr
21
comment How can I typeset a command and its literal equivalent in an environment?
You also end up with issues in the event a command takes no arguments.
Apr
21
comment How does the stripcommand in the pgfmanual file work?
@MarkWibrow Ok thanks! I fixed my statement above.
Apr
20
comment How can I loop thru a list of inputs that come after \maketitle, yet use that list as part of the \maketitle command?
Could you please explain why the first argument of @auxout is empty {}? in \@auxout{}{\string\used@language{#1}}?
Apr
16
comment What is the most efficient way to make a LaTeX manual similar to the PGF/TikZ Manual?
@YiannisLazarides Unfortunately hyperref is one of those packages I cannot mess with on my build system, because I am using a shared preamble. Too many things rely on the hyperref settings the way they are. I will see about upgrading the packages, but I won't be able to do that for a couple weeks :(