Featured Book

LaTeX Beginners Guide

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 9 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Remove indentation of first paragraph Topic is solved

indentationAdd tags Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)

Remove indentation of first paragraph

Postby Hermano on Thu May 16th, 2013

Hi all,

When I compile my text, it seems that the first paragraph of my \section has an indentation (such as the other paragraphs). However, as I didn't specified the indentation, I thought Latex will not put an indentation at each first paragraph after a \section? How can I remove this indentation of each paragraph.
I know that this can be done with \noindent, but as my thesis is very long I don't want to repeat this for every new \section.
Last edited by cgnieder on Thu May 16th, 2013, edited 1 time in total.
Reason: added inline code markup
Hermano
 
Posts: 14
Joined: Wed Apr 6th, 2011

Re: Remove indentation of first paragraph

Postby cgnieder on Thu May 16th, 2013

This is non-standard behaviour. We need to see a minimal working example in order to be able to track the source and provide a solution.

Regards
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen
System: TeXlive 2013, OpenSUSE 12.3
User avatar
cgnieder
Site Moderator
 
Posts: 1670
Joined: Sat Apr 16th, 2011
Location: Germany

Re: Remove indentation of first paragraph

Postby Stefan_K on Thu May 16th, 2013

Check that the indentfirst package is not loaded. Otherwise post at least your header, or as Clemens said, a MWE, which is usually the best.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6268
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: Remove indentation of first paragraph

Postby Hermano on Thu May 16th, 2013

Dear cgnieder,

I have uploaded the files. The main file is thesis.tex. The adsphd.cls file is used for formatting my layout. If you compile thesis.tex, you will see that in the Introductory chapter under the first section is an indent.

I also thought that this is a non-standard behaviour, therefore this question.
Attachments
Ch1_introduction.tex
(2.92 KiB) Downloaded 46 times
adsphd.cls
(58.89 KiB) Downloaded 42 times
thesis.tex
Main file
(5.36 KiB) Downloaded 58 times
Hermano
 
Posts: 14
Joined: Wed Apr 6th, 2011

Re: Remove indentation of first paragraph  Topic is solved

Postby cgnieder on Fri May 17th, 2013

Hmm, that was not really a minimal example... Anyway: the reason are these lines in your preamble:

Code: Select all  •  Open in writeLaTeX
%set title spacing
\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt
}


Quoting titlesec's manual (titlesec, section 3.2, page 4):

The starred version kills the indentation of the paragraph following the title, except in drop, wrap and runin where this possibility does not make sense.


So you need to use
Code: Select all  •  Open in writeLaTeX
%set title spacing
\titlespacing*\section{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\titlespacing*\subsection{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt
}


Regards
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen
System: TeXlive 2013, OpenSUSE 12.3
User avatar
cgnieder
Site Moderator
 
Posts: 1670
Joined: Sat Apr 16th, 2011
Location: Germany

Re: Remove indentation of first paragraph

Postby Hermano on Fri May 17th, 2013

Thanks cgnieder for your answer!! This solved my problem ;-)
Hermano
 
Posts: 14
Joined: Wed Apr 6th, 2011


Topic Tags

indentation

Return to Text Formatting

Who is online

Users browsing this forum: No registered users and 9 guests