Text FormattingSectioning in the article Class

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Sectioning in the article Class

Post by s.david »

Hello,

I am writting a paper using article class, and using the \section command results in a large title compared to the 10pt font I used. How can I make the \section command results in a 10pt title that is \textsc, capital roman numbered, and centered in the middle of a two-column enviroment. Here is a code sample:

Code: Select all

\documentclass[a4paper]{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\section{Section One}
Hello, how are you? I am fine thank you.

I need this to be like this one
\begin{center}
I. \textsc{Section One}
\end{center}
Hello, how are you? I am fine thank you.
\end{multicols}
\end{document}


Thanks in advance

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Sectioning in the article Class

Post by localghost »

Use the titlesec package and start with the following example.

Code: Select all

\documentclass[a4paper,english,twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[center,sc,small]{titlesec}
\usepackage{blindtext}

\begin{document}
  \blinddocument
\end{document}
Other possible settings are explained in the package manual.


Best regards
Thorsten
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Re: Sectioning in the article Class

Post by s.david »

Ok, I see. Thank you.

Regards
Post Reply