Tagged Questions
4
votes
2answers
151 views
Graphical vertical rule in tikz
I would like to make design (class), where I would like to have special type of paragraph that will have { character on left and will have height exactly same as height of whole paragraph. Also, I ...
4
votes
1answer
98 views
Class Design: Environment vs. Macro
I have seen What are the consideration when choosing either newcommand or newenvironment? but I think this is a little more specific. If it's a duplicate, then so be it. If the second part of the ...
4
votes
1answer
90 views
Create command to inline an image in a question?
How to create a command to can insert the image in a line of text question? Since I have a lot of question types made True/False, Short Answer types, Multiple choice, etc. I want the command to be ...
13
votes
3answers
390 views
Macro for Declaring Variables in Class Files
I'm designing a new LaTeX class, and trying to write a convenient helper command for declaring new 'variables' for use in the class.
Specifically, say I want to use a variable called \foo. I'd like ...
20
votes
2answers
775 views
\newcommand vs \DeclareRobustCommand
I sort of understand the difference between the two. But that's not what I'm interested in—I just want to know, which one should I use? In general, when I'm creating commands in a package or class, ...
19
votes
1answer
363 views
Macro naming best practice?
Is there a preferred or generally accepted idiom for naming user defined macros? I notice that in the change from Tufte 3.5.0 to 3.5.2, for example, the names of the debugging macros have change, for ...
9
votes
3answers
187 views
Backward compatibility for command names
I have made a class file. It defines commands for use in document files.
I want to change some of the command names, but I also want old document
files to work without changing them.
Here's an ...
6
votes
3answers
307 views
What is the difference between \myname and \my@name while writing a .cls file?
What is the difference between \myname and \my@name while writing a .cls file? Are they equivalent?
Please let me know if it is necessary to post a minimal example.
Edit:
Let me ask my question more ...