Text FormattingSection heading before numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jodles
Posts: 8
Joined: Fri Dec 31, 2010 3:07 pm

Section heading before numbering

Post by jodles »

Hi!

Is there any way to get the heading text of a section before the number?

Usually it is "1 Your text", but I want to have each section heading like "Problem 1", "Problem 2", and so on.

Thanks!:)
Last edited by jodles on Wed Jan 12, 2011 11:10 pm, edited 1 time in total.

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

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Section heading before numbering

Post by torbjorn t. »

Take a look at the titlesec package. A relevant example can be found on the bottom of page 23 in the manual.
jodles
Posts: 8
Joined: Fri Dec 31, 2010 3:07 pm

Re: Section heading before numbering

Post by jodles »

Takk, Torbjørn! :mrgreen:
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Section heading before numbering

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply