LaTeX LaTeX Indentation within Section and Subsection

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Latex Section
Click For Summary
In this discussion, a user new to LaTeX seeks assistance with creating a template, specifically struggling with line indentation within sections and subsections while using the \documentclass{article}. The response suggests using the \parindent command to control indentation. Additionally, it provides a solution by redefining the \section and \subsection commands with \@startsection, allowing for customization of spacing and formatting. This approach enables users to adjust indentation and appearance as needed for their document structure.
Saladsamurai
Messages
3,009
Reaction score
7
I am very new to LaTeX (outside of PF). I am trying to write up a basic Template to use as a reference.

Most issues I have been able to find documentation for. However, I am haveing trouble finding this one.

I am using \documentclass{article} and cannot seem to get my lines to indent within a \section or \subsection

Any thoughts?
 
Physics news on Phys.org
Hi there,

Have you tried with the \parindent command?

Cheers
 
you can define those:

\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
-.2ex}{2.3ex plus .2ex}{\bf }}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
-.2ex}{1.5ex plus .2ex}{\it }}

And adjust accordingly.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 5 ·
Replies
5
Views
33K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K