When using renewcommand, sometimes I wish to first check what the original source code for a particular command, such as chapter was before I change it, so that I can be certain that I do not make unintended changes. When I have a lot of packages loaded, sometimes looking through the source code of a package to find the answer is not so simple. Is there a way to print out the source code used to define a particular command?
|
|
|||
|
||||
|
|
|
Yes, using For example, compiling
outputs
to the console. Note that the alignment of the output is not the same as when it is typed in code. As such, it is sometimes easier seeing the exact structure (if properly indented) when viewing the source directly. Here is the source entry from
Also note that using
From the TeX Book (p 10):
|
|||||||
|
|
You can use To check the definition for
If you want to see the available options for |
|||
|
|
\showand\meaning. See how do i use show and equivalent of show to display the latex code in the document – Peter Grill Dec 3 '11 at 4:11