-1

The document has always the first paragraph coming with no margin (no recoil). I wanted an uniform look for all paragraphs in the document. Any tips?

enter image description here

3
  • there was a question posted before by you reference the LegrandOrangeBook -- in case you found the answer met your requirement please accept the answer by clicking on the green check mark -- upvoting is also your privilege -- tex.stackexchange.com/questions/695187/…
    – js bibra
    Commented Sep 8, 2023 at 6:35
  • also see -- tex.stackexchange.com/a/39228/197451 -- and why no indent in the first para of a section -- tex.stackexchange.com/questions/39227/…
    – js bibra
    Commented Sep 8, 2023 at 7:08
  • Hi. The other answer had this little long conversation about having the indent or not, so it was not very straight forward. Only then I noticed that Werner hit the nail with the answer, and it was a little hard to find in that page. Sorry for the confusion, I really should have gone into further examination to this answer. Yes, indeed, this questions is deemed a duplicate for sure. I went to delete it but I got a warning here, so I am leaving as it is.
    – Jason
    Commented Sep 9, 2023 at 2:41

1 Answer 1

1

You need to experiment

Go to overleaf and open the LeGrandOrangeBook project -- on the left find the file named main.tex

Go to Line 131

\section{Section Title}\index{Sectioning!Sections}

Compiling this gives the section with no indent in the first paragraph as shown below

enter image description here

Now add the following lines in the file main.tex

\section{Section Title}\index{Sectioning!Sections}
     \hangindent2em
      \hangafter=-1

Recompiling will give indent in the first paragraph also

enter image description here

You may like to copy the additional lines in the sub-sections also to indent the first paragraph

Important

Do experiment by changing the numeric values to see different outputs -- it will add to your understanding

For example change the -1 to 1 will indent all lines in the first para, except the first line, changing the value to 2 etc will give another output

EDIT

To have a generic entry which will add indent in all the section(sub-)

add the following package in the file main.tex

  \usepackage{indentfirst}

reference -- https://tex.stackexchange.com/a/39228/197451

1
  • Thanks js bibra. It worked.
    – Jason
    Commented Sep 9, 2023 at 2:43

Not the answer you're looking for? Browse other questions tagged .