I'm using titlesec package and a document class ABNT Class which follows a Brazilian standard for document development. So far I've managed to follow the Brazilian Computer Association guidelines for making a scientific article (which is my real objective, for further reuse), however using both the abnt class and the titlesec package breaks document indentation, as each paragraph had a fixed indentation which titlesec could not manage, adding [noindentafter]{titlesec} produces no results, so I've decided to force document's whole indentation by using setspace and using the following code
\setlength{\parindent}{1.25cm}
To prevent first paragraph's indentation (which is required by this scientific article model), I've to use \noindent after \section{}, \subsection{} and \subsubsection which is really annoying, is there any way to automatically embed \noindent to the end of the section function call? this would be as simple as \section{*}\noindent
Edit: I'm providing a MWS for further checking
\documentclass[12pt,a4paper]{abnt}
\usepackage{setspace,titlesec,setspace}
\usepackage[utf8]{inputenc}
\titleformat{\section}{\fontsize{13.5pt}{12pt}\selectfont\bfseries}{\thesection}{0.75cm}{}[]
\renewcommand{\thesection}{\arabic{section}.}
\setlength{\parindent}{1.25cm}
\titlespacing*{\section} {0pt}{0pt}{0pt}
\begin{document}
\section{Lorem Ipsum}
This first paragraph is indented, consectetuer adipiscing elit. Etiam lobortis facilisis sem.
Nullam nec mi et neque pharetra sollicitudin.
This paragraph is also indented, ultricies vel, semper in, velit. Ut porttitor. Praesent in
sapien.
\section{Pellentesque Placerat}\noindent
This first paragraph is using noindented, praesent in
sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
This paragraph is indented, ultricies vel, semper in, velit. Ut porttitor. Praesent in
sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis fringilla tristique neque.
Sed interdum libero ut metus.
\end{document}
\titlespacing*{\section}{left margin space}{vertical space before}{vertical space after}? According to the manual this kills the indentation after the sectioning unit. – guillem Jun 29 '12 at 05:55\titlespacing*{\section} {0pt}{0pt}{0pt}but like I said before, the whole document indentation was broken, and using this has no result as well (the expected result), if there is any way to embed\noindentthis serves me well. I think that\titlespacingworks on title and not exactly after it, I need a text which is non indented in the first paragraph, moreover the subsequent paragraphs doesn't follow this ruleat first glance I thought of
– richard_ba Jun 29 '12 at 06:11\titleformat{\section}{}{}{}{}[insertingindentationhere]however it does not produce the result I need\noindentafter sections. Please add a minimal working example (MWE) that illustrates your problem. – Joseph Wright Jun 29 '12 at 06:17abntpackage requires the babel package with brazilian/portuguese option?. I recall having similar indentation problems using the babel package with the spanish option. – guillem Jun 29 '12 at 06:46\noindentwhich would mess up vertical spacing, and interfere with the prevention of a page break after the heading. Thus we need a minimal example to see why this is not happening in your case. – David Carlisle Jun 29 '12 at 09:07\@startsectionthen it is best not to use0ptlengths, Standard latex sectioning uses the sign of the length as a switch to suppress or allow indentation but 0 of course doesn't really have a sign so it depends on the details of the exact test used. Better to use small positive (or negative) values. – David Carlisle Jun 29 '12 at 09:17