2

I'm writing an article in LaTeX and in most cases, I do not want to have space at the beginning of the paragraph. Thus, I used the \setlength\parindent{0pt} command in the preamble.

However, there are some paragraphs, where I would like to have normal indentation. Is there a command that I could use in those cases?

(I'm looking for "reverse default mode". Normally, each paragraph (except the ones directly after \(subsub)section) has indentation and there is the \noindent command, which cancels the indentation. I would like to write an article without indentation and have a command (something similar to \noindent) that I could use in those rare cases where I need indentation.)

1
  • \noindent is not used to suppress indentation after a section heading. Feb 8, 2022 at 17:07

1 Answer 1

2

You can use a macro \doindent which creates an indentation as you wish:

\parindent=0pt  % all paragraphs are without indentation
\def\doindent{\hskip 2em\relax} % \doindent does indentation 2em 

You must log in to answer this question.

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