GeneralTracing commands

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
damianjb
Posts: 11
Joined: Tue Feb 04, 2014 1:42 pm

Tracing commands

Post by damianjb »

Hi.

Let´s say I have my tex file running with no problems and I want to change the format of a particular thing.
Are there any logical steps to follow in order to find out which are the commands handling that particular thing format? Then, I would look for information about those commands in the packages manual and change them to fit my needs.

Thanks.
Damián.
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Tracing commands

Post by Johannes_B »

Hi,

usually all commands you are using are explained in its package/class documentation. There you can find out how to change it to your personal needs.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
damianjb
Posts: 11
Joined: Tue Feb 04, 2014 1:42 pm

Re: Tracing commands

Post by damianjb »

Hi johannes.

Maybe I´m using a package that reformat something I was not aware of. I was looking for a way to trace which commands are handling, for example, the format of the chapter title (could be anything else).

Thanks.
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Tracing commands

Post by Johannes_B »

Sometimes a single \show can be enough. Package trace is more verbose:

Code: Select all

\documentclass{article}
\usepackage{trace}
\begin{document}
\traceon
\tableofcontents
\traceoff
\show\tableofcontents
\end{document}

You can read much more about tracing over at TeX.SX
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
damianjb
Posts: 11
Joined: Tue Feb 04, 2014 1:42 pm

Re: Tracing commands

Post by damianjb »

\show was exactly what I was looking for.
Thanks.
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.
Post Reply