Reputation
3,152
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
15 44
Impact
~583k people reached

1d
comment Which macro actually typesets images in graphicx?
@AlexG Both answers are helpful! David Carlisle answered my question-in his usual minimalist fashion. Steven was nice enough to go above and beyond the question and provide a solution to one of my goals (maybe because it was fun to do? :D). Some people on this site are explanation-oriented, while some are goal-oriented. I'd like to recognize that this community has a good mix of both types of experts. So give them both +1 :)
1d
accepted Which macro actually typesets images in graphicx?
1d
revised Which macro actually typesets images in graphicx?
added 1657 characters in body
1d
asked Which macro actually typesets images in graphicx?
2d
comment Print frames rather than boxes with demo/draft version of graphics/graphicx
@egreg Nevermind. I think the problem is my macro expands to underscores! I am foolish for not recognizing that some images have underscores in the filenames! Lesson here that I should have learned a long time ago: file system naming conventions do not overlap with LaTeX character category code conventions!
2d
comment Print frames rather than boxes with demo/draft version of graphics/graphicx
@egreg Any way to wrap this in a macro so that I can call it when I want it? I changed #1 to ##1 when it is wrapped, but I run into trouble because my includegraphics path is a macro itself. So paths look like \maclibrary Images/pic.jpg (##1). It works, but not if I want to write the file path to the page e.g. \parbox{\@ifundefined{Gin@@ewidth}{150pt}{\Gin@@ewidth}}{##1}
2d
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
@StevenB.Segletes Sorry to steal your answered check mark away, but after closer investigation, I realized that egreg answered the question with his regexpatch option. The conditional, which I already described in my question, has the limitation that the \debugmodetrue switch cannot come after the conditional. The regexpatch option allows me to use ##1, yet refer to the appended macro's #1, not the #1 of \debugmode scope. This was not the case with your answer. Maybe I misunderstood it.
2d
accepted How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
2d
revised How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
edited title; edited title
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
Good point. Added remark.
May
2
revised How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
added 22 characters in body
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
@cfr you never know. always easier to say in hindsight. I always load fontspec to indicate my compiler, because that is essential information for others to reproduce the original conditions. I don't expect it in the answer, of course. It does matter that you can reproduce conditions in an environment different than the original to a scientist ;) again, easier to say in hindsight, so I include it. There is an occassion I remember with pgf patterns where this made a huge difference.
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
@cfr It is there only to indicate the compiler is xelatex.
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
Yes I know about hyperref and bookmark, but I do see it is a usability problem with latex. It is hard enough getting the dang document to compile, and then on top of that you have to deal with package order!
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
I used \usepackage[log-declarations=false]{xparse}, but \RequirePackage{xpatch} in my package loads it without that parameter I suppose. There is some \PassOptionToPackage trick maybe for this.
May
2
revised How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
added 129 characters in body
May
2
comment How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
@cfr Tried that. Doesnt work. I should have mentioned that. This is because ##1 gets passed to the original (appended macro). You end up with \textbf{#1}##1. I think this is the case.
May
2
asked How can I use \apptocmd within a macro, passing the appended's macro's parameter back to itself?
Apr
29
awarded  Popular Question
Apr
20
comment TikZ: text along path as node
@PeterGrill I am just going to add that I use pos=.5 instead of midway for more precise alignment by percentage, because I often refer to this page and forget how to do that.