TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a rather big document, my thesis actually, and I would like to indent all of my paragraphs. Of course, I could use the command \indent in every single paragraph, but that's extremely cumbersome.

So, how can I tell LaTeX, with a single command, to indent not only the first paragraph of a section, but all of them.

I'm using Texmaker, by the way.

share|improve this question
4  
Just end a paragraph by leaving a blank line in the TeX file. If you use \\, it's the wrong way. – egreg Jan 30 at 18:31
4  
You need some way to mark a paragraph in the source as opposed to just a word space. In tex that is a blank line, it could not be much less markup?? – David Carlisle Jan 30 at 18:41
3  
Word marks a paragraph with a hidden mark that you don't see, but it's there. LaTeX just uses a blank line instead of a hidden mark. What's the difference? The real issue is that when you entered your source document you didn't mark the paragraphs correctly, and now you want LaTeX to solve that problem for you, but it can't. – Alan Munn Jan 30 at 18:45
1  
No as @egreg already told you, \\ does not end a paragraph. You need to replace all those with blank lines in the places you need new paragraphs. (Since \\ has legitimate uses other places, I would not recommend doing a global search and replace.) – Alan Munn Jan 30 at 22:14
2  
yeap, u guys seem to be rather right. THX for correcting me in my mistake. Bad on me. I’m adding the blank lines as I… write haha – Est Jan 30 at 22:31

You are trying to get LaTeX to solve a problem of your own making. The correct way to mark a new paragraph in LaTeX is to leave a blank line between it and the previous paragraph. Instead of doing this, you have probably used \\, which is incorrect, since it does not start a new paragraph, but merely forces the text onto the next line. See

If you correctly use blank lines to separate paragraphs, then every paragraph except those that appear immediately after a section heading will be indented automatically. If for some reason you need to indent those paragraphs also, you can load the indentfirst package, which will cause all paragraphs even those following a section heading to be indented.

Since there are various places in which the use of \\ is valid (inside tabulars, for example, but also other places) I would not recommend doing a global search and replace of all such instances in your file.

share|improve this answer

You never need to use \indent at the start of a paragraph (it does nothing there at all, it is just in the language for symmetry with \noindent.

The indentation can be controlled for all paragraphs by setting \parindent

enter image description here

Note how the second two paragraphs using \indent match the first two.

\documentclass{article}

\setlength\textwidth{5cm}
%\setlength\parindent{0pt}

\begin{document}

One two three four five six seven eight.
One two three four five six seven eight.
One two three four five six seven eight.

One two three four five six seven eight.
One two three four five six seven eight.
One two three four five six seven eight.


\indent One two three four five six seven eight.
One two three four five six seven eight.
One two three four five six seven eight.

\indent One two three four five six seven eight.
One two three four five six seven eight.
One two three four five six seven eight.

\end{document}

uncomment the line to set \parindent to zero and you get enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.