LaTeX Indentation within Section and Subsection

  • Context: LaTeX 
  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Latex Section
Click For Summary
SUMMARY

The discussion focuses on indenting lines within sections and subsections in LaTeX using the \documentclass{article}. A user encountered difficulties achieving indentation and received guidance on utilizing the \parindent command. The solution involves redefining the \section and \subsection commands with specific parameters using the \@startsection command to control indentation effectively.

PREREQUISITES
  • Familiarity with LaTeX document classes, specifically \documentclass{article}
  • Understanding of LaTeX sectioning commands, including \section and \subsection
  • Knowledge of LaTeX command definitions and the \@startsection command
  • Basic understanding of LaTeX indentation settings, particularly \parindent
NEXT STEPS
  • Explore LaTeX command redefinitions for custom formatting
  • Learn about the \parskip command for managing paragraph spacing in LaTeX
  • Investigate advanced section formatting techniques in LaTeX
  • Review LaTeX documentation on the article class for additional customization options
USEFUL FOR

LaTeX users, technical writers, and anyone looking to customize document formatting in LaTeX, particularly in academic or professional settings.

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
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 5 ·
Replies
5
Views
34K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K