LaTeX forum ⇒ Text FormattingRemove indentation of first paragraph Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Hermano
Posts: 14
Joined: Wed Apr 06, 2011 9:10 pm

Remove indentation of first paragraph

Postby Hermano » Thu May 16, 2013 12:52 pm

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 16, 2013 1:29 pm, edited 1 time in total.
Reason: added inline code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
cgnieder
Site Moderator
Posts: 1948
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Thu May 16, 2013 1:30 pm

This is non-standard behaviour. We need to see a Infominimal 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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Thu May 16, 2013 1:59 pm

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
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

Hermano
Posts: 14
Joined: Wed Apr 06, 2011 9:10 pm

Postby Hermano » Thu May 16, 2013 2:06 pm

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 124 times
adsphd.cls
(58.89 KiB) Downloaded 104 times
thesis.tex
Main file
(5.36 KiB) Downloaded 128 times

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
cgnieder
Site Moderator
Posts: 1948
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Fri May 17, 2013 11:53 am

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

  1. %set title spacing
  2. \titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
  3. \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
  1. %set title spacing
  2. \titlespacing*\section{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
  3. \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

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

Hermano
Posts: 14
Joined: Wed Apr 06, 2011 9:10 pm

Postby Hermano » Fri May 17, 2013 11:59 am

Thanks cgnieder for your answer!! This solved my problem ;-)

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 8 guests