Hi.
I am using article as document class to write a paper. But I need to put the sections at the center of the page. Is there any package/way to do that? Thank you!
Ricardo.
Page Layout ⇒ Centering sections
NEW: TikZ book now 40% off at Amazon.com for a short time.

Centering sections
This question is not very clear, since no minimal work example is provided..
I can think of two scenarios. First, you have the following stated in your preamble:
If you remove the 'twoside' option, every page will be the same and you text will be pretty much centered.
The other scenario is that you'd like to recreate a Word document:
I can think of two scenarios. First, you have the following stated in your preamble:
Code: Select all
\documentclass[twoside]{article}
The other scenario is that you'd like to recreate a Word document:
Code: Select all
Code, edit and compile here:
\begin{document}\centeringRandom text here..\end{document}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Follow howtoTeX on twitter
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Centering sections
Assumed that you mean section headings, you can do that very easy by the titlesec package. Details in the package manual.adarpodracir wrote:[…] But I need to put the sections at the center of the page. […]
Code: Select all
Code, edit and compile here:
\documentclass[11pt,a4paper,english]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage[bf,sf]{titlesec}\usepackage{blindtext}\titleformat{\section}{\normalfont\Large\bfseries\filcenter}{\thesection}{1em}{}\begin{document}\blinddocument\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 2
- Joined: Mon Feb 21, 2011 5:20 am
Re: Centering sections
Dear Frits. Sorry not to be clear. I don't know the latex's terminology yet. But thank you very much for your kind of help!
Dear localghost. Thank you very much. That was exactly what I was looking for!
Ricardo.
Dear localghost. Thank you very much. That was exactly what I was looking for!

Ricardo.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Centering sections
Then please mark the topic accordingly as you have already been directed and as written in the Board Rules (to be read before posting).adarpodracir wrote:[…] That was exactly what I was looking for! […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10