Text FormattingSome unusual indentation and spacing

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
fleetadmiral73
Posts: 3
Joined: Wed May 26, 2010 3:48 am

Some unusual indentation and spacing

Post by fleetadmiral73 »

I don't understand some of the indentation. For example, in section 2.1 (Cephalic). Function and Stimulus are at different indentations. Is this by design?

Also, there are no spaces between the aforementioned lines. I thought I took care of that by hitting return twice in the .tex file.
Attachments
Digestive p2.tex
(2.19 KiB) Downloaded 191 times
Digestive p2.dvi
(5.52 KiB) Downloaded 208 times
Last edited by fleetadmiral73 on Wed May 26, 2010 2:44 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Some unusual indentation and spacing

Post by gmedina »

Hi,

standard LaTeX suppresses indentation for the first paragraph after a sectional heading, as the following MWE illustrates:

Code: Select all

\documentclass{article}

\begin{document}
\section{Test section}

First paragraph.

Second paragraph.
\end{document}
If you want to indent those first paragraphs too, you could load the indentfirst package:

Code: Select all

\documentclass{article}
\usepackage{indentfirst}

\begin{document}
\section{Test section}

First paragraph.

Second paragraph.
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
fleetadmiral73
Posts: 3
Joined: Wed May 26, 2010 3:48 am

Re: Some unusual indentation and spacing

Post by fleetadmiral73 »

Thank you for the thoughtful response. Suppressing indentation is particularly helpful for me, since I rarely write consecutive paragraphs for my notes.

I'll read up some more on line spacing and see if I can sort that out. It may be I just need to read more about standard formatting.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Some unusual indentation and spacing

Post by gmedina »

fleetadmiral73 wrote:Thank you for the thoughtful response...
You're welcome.
fleetadmiral73 wrote:...I'll read up some more on line spacing and see if I can sort that out...
Sorry, I overlooked that in your initial post. Standard LaTeX doesn't add extra vertical space to separate consecutive paragraphs. The start of a new paragraph (with the exception mentioned before) is signaled by indentation.

If you want to add vertical spacing between paragraphs, you have three options:

1) The "manual" option: at the end of every paragraph add one of the commands \smallskip, \medskip, or \bigskip. In this case indentation is superfluous so you could consider suppressing it by adding

Code: Select all

\setlength\parindent{0pt}
to the preamble of your document.

2) Load the parskip package.

3) Use a document class (for example the ones from the KOMA-Script bundle) that implements commands to automatically obtain additional spacing between paragraphs.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply