Text Formatting ⇒ Modifying the section format
Modifying the section format
I am writting a paper, I need the following format of the sections
1. TITLE
Thanks
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
Modifying the section format
Try titlesec package. With this package you can make any section format. Also this package can change the format of TOC.
Hope this will useful for you.
Modifying the section format
Not exactly. The titletoc package (a companion to titlesec) allows modifications to the format of the ToC entries.velisarus wrote:...With this package you can make any section format. Also this package can change the format of TOC...
Modifying the section format
I tried the titlesec package and I have obtained the capitalized letters for the section by using
Code: Select all
\titleformat*{\section} {\scshape}
TITLE
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Modifying the section format
Code: Select all
\usepackage[bf,sc]{titlesec}
Code: Select all
\titleformat*{\section}{\bfseries\scshape}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Modifying the section format
I used the both commands
Code: Select all
\usepackage[bf,sc]{titlesec}
\titleformat*{\section}{\bfseries\scshape}
1. Introduction
but I should get
1. INTRODUCTION
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Modifying the section format
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[bf]{titlesec}
\usepackage{blindtext}
\titleformat*{\section}{\Large\scshape}
\begin{document}
\blinddocument
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Modifying the section format
This works well but I still have a problem. I need to have all the letters with the same Lengths. Foe example for the section Introdutcion I should have
INTRODUCTION when I use the provided commands I have the first letter "I" higher than the others.
Many thanks.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Modifying the section format
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[bf]{titlesec}
\usepackage{blindtext}
\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{\uppercase}
\begin{document}
\section{One}
\blindtext
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10