GeneralHow can I show the current section's title?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mgccl
Posts: 3
Joined: Tue Jun 17, 2008 7:27 pm

How can I show the current section's title?

Post by Mgccl »

I have found that

Code: Select all

\thesection
can show the number of the current section, but how can I get the title of the current section?

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
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

How can I show the current section's title?

Post by Stefan Kottwitz »

Hi Mgccl,

welcome to this board!

You can reference a section by its name with the nameref package or with titleref.

Stefan
LaTeX.org admin
Post Reply