0

I wonder how I would be able to achieve this effect like the authors of this report have done with a big section number above the section title and where both the title and number are centered and with a large font size. There should also be some spacing from the section title to the following text. I would like to only have this effect on \section and leave the subsections as normal.

enter image description here

7
  • 1
    Welcome to TeX SX! It is actually a chapter, I suppose?
    – Bernard
    May 9, 2020 at 14:20
  • This is part of a technical report so my first guess was that it was a section but I don't know anything chapters in latex. I'm only interested in getting this look and still having my table of contents intact and if using chapters is the way achieve that I'm all ears May 9, 2020 at 14:24
  • I asked only for consistency. Do you use the report class?
    – Bernard
    May 9, 2020 at 14:26
  • Excuse my ignorance I'm not that knowledgeable about the latex settings. We have \begin{document} so that means that we use the document class (?) May 9, 2020 at 14:30
  • No, begin{document} marks the beginning of the actual document's body and the end of the premable. The document class is in the \documentclass that should be in the first line of the document.
    – leandriis
    May 9, 2020 at 14:36

1 Answer 1

1

The tool of choice to customise chapter, section, &c. layout is titlesec. This should produce a layout not so far from what you want:

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
...............
\usepackage{graphicx}
\usepackage{titlesec}
\titleformat{\section}[display]{\Large\bfseries\filcenter}{\scalebox{2}{\thesection}}{3ex}{}
...............

\begin{document}

\section{Teori}

Deppa kapitel presenterar den teori varpå projektet bygger.
2
  • That does achieve the positioning but is how would I get an even bigger digit like in the picture where it's almost twice the size of the title? And how would I increase the spacing from the section title to the text? May 9, 2020 at 15:04
  • I've posted a slightly modified code with \scalebox.The value od the scaling can be adjusted to your needs.
    – Bernard
    May 9, 2020 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .