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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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