{indentation} is about the first-line indentation of normal {paragraphs} as well as about the indentation of, e.g., {lists}, {quoting} environments, {captions}, and the various elements (sectioning numbers, titles, ...) in a {table-of-contents}.

learn more… | top users | synonyms

77
votes
5answers
6k views

Is there an easy way to have my whole document with a space between paragraphs rather than indentation?

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few ...
30
votes
1answer
5k views

How to modify the indentation before sectioning titles in the table of contents?

I'm preparing a document using the book class. In the table of contents, the indentation before the subsection title is too long. How to reduce it?
33
votes
3answers
4k views

LaTeX code sniffer and/or beautifier?

I'm looking for a LaTeX code sniffer and/or code beautifier, because I'm creating a CI server for my LaTeX books and I wanted a few things. :D
34
votes
6answers
15k views

How can I change the margins for only part of the text?

Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of ...
19
votes
5answers
1k views

How can I indent the paragraphs which follow a heading?

I am trying to write a text where the first line of each paragraph has an indent(tab). But for some reason, in a chapter or a section or subsection, except the first paragraph, the rest of the ...
10
votes
1answer
1k views

How to switch between two margin sizes?

This question led to a new package: fullwidth This is a followup to a similar question. The idea is to switch between two different margin sizes. The answer provided by @godbyk work very well. ...
13
votes
5answers
1k views

Roman numerals become “too wide” in table of contents

Following minimal document: \documentclass{report} \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} ...
30
votes
6answers
18k views

Indenting a whole paragraph

How do I indent a whole paragraph at the same distance from my left margin, with the simplest command or environment?
16
votes
3answers
3k views

Description-like environment with fixed labels width

Which is the right way to do something like 'description' list but with customizable and fixed-width labels? I.e. something like this: Label: Text text text text text text text ...
13
votes
4answers
1k views

I want to indent the next line by an exactly specified position

I am typesetting an entire math lecture script, where readability often requires me to indent just a line or two for a certain amount, which is ALWAYS different. I would like to have some way of ...
26
votes
3answers
16k views

What is the \rule equivalent for \hrule?

I've tried to put a rule long as the text in this way: \rule{\textwidth}{0.4mm} but I obtain a rule slightly smaller that the text width. How to obtain the same effect as \hrule?
15
votes
5answers
15k views

Change hanging indent in description list

I'm trying to get a description's list hanging indent to lie flush with the first line of text. I have a description list such as the following: \begin{description} \item[Label the first] Lorem ...
16
votes
4answers
2k views

How to automatically skip leading white spaces in listings

This question led to a new package: lstautogobble (lstaddons bundle) For my programming lecture slides I heavily use the listings package with \lstnewenvironment to typeset source code. It's a ...
41
votes
3answers
30k views

No indent in the first paragraph in a section?

I am just curious that the following format looks good to you or not? The preamble I used is just \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} ...
32
votes
4answers
8k views

How can I get rid of indentation after an equation?

I'm a total newbie to LaTeX and I get very annoyed about this. Every time I write an equation, the text following the equation has some indentation but I don't want it to be there! Look at the ...
15
votes
3answers
2k views

How to set superscript footnote mark in the text body but normalsized in the foot?

I want the footnote mark to be superscripted in the text body (e.g. Footnote mark²), but normalsize in the foot, to be shown like: ________________ 2. Some footnote text Also, it would be nice if ...
28
votes
5answers
2k views

Using indentation to automatically begin and end itemize environments

This is a question one might answer with "Why the hell would you want to do it?!", sort of an experiment. What I am looking for is a way to write lists with many levels of nestings (notes for school) ...
9
votes
2answers
14k views

Changing default width of blocks in beamer

I use a custom Beamer theme for my presentations. In my presentations I'd like to use blocks (\begin{block}…\end{block}). These blocks are rendered slightly too wide to fit into my theme. Is there a ...
15
votes
3answers
7k views

Include a line break in algorithmic while maintaining indentation

I have this code: \DeclareCaptionFormat{algor}{% \hrulefill\par\offinterlineskip\vskip1pt% \textbf{#1#2}#3\offinterlineskip\hrulefill} ...
24
votes
1answer
728 views

Non rectangular page geometry

I am interested in using non-rectangular page geometries for my flipbook idea (in fancyhdr with image and flowing text). The page geometry that I'm after is that the text has a little rectangle ...
8
votes
4answers
2k views

Write text with some fixed amount of space from the margin

How would I write the following in LaTeX: _Abstract_ XXXX This is the XXXX abstract. _Keywords_ XXXX keyword1, keyword1 In the above the letter X stands for space.
5
votes
1answer
1k views

How can I align section titles and list environments in the left margin?

I was wondering if you could help me with some alignment issues. I've search both here and Google but haven't really found a decent solution. This is what I have (LaTeX default): 1 First section ...
9
votes
1answer
4k views

Increasing paragraph indentation in KOMA script

The default parindent in KOMA scrartcl is too small for me. I remember reading somewhere that just changing \parindent directly is not wise, since it also affects other things (like itemize etc). And ...
8
votes
2answers
2k views

Numbered section hidden from the ToC

I'm writing a set of course notes that has an appendix containing many activities. I do not wish the activities to be shown in the Table of Contents, but I do wish them to be numbered. Here is the ...
9
votes
3answers
3k views

How to make listings code indentation remain unchanged when copied from PDF?

So I am using listings package for code examples. But there is a problem. When I copy the code examples from the final PDF document, they are usually not the same - the indentation is gone, there are ...
11
votes
6answers
3k views

How to switch between two different marginparwidth size?

I like this book layout stewartcalculus, so I want to mimic some of its layout. In this topic I want to start from the page number 5. The following is the screenshot: (hopely don't break the copyright ...
14
votes
1answer
738 views

How to change \hsize in the middle of a paragraph at pagebreak, especially for two-column?

The original question is: How to get two columns with different width in LaTeX? I know this older question: How can I create a two-column layout with different widths (and texts) for the two columns? ...
5
votes
3answers
3k views

Indentation and line wraps in TeXShop

As pointed out in this question, in TeXShop there is no way to make source paragraphs (i.e. long lines with no hard wraps) follow source indents automatically, that is, while typing. The solution ...
11
votes
2answers
5k views

Indent second line of a bibliography

I am writing a bibliography : \begin{thebibliography}{9} \bibitem{Lorem}\textsc{Lorem ipsum dolor sit} \texttt{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae purus mi. Fusce quam ...
29
votes
2answers
20k views

How to disable automatic indentation on new paragraphs?

I'm using a template that I can't/shouldn't modify. This template forces that every time a new paragraph begins, there is an indentation added. In some rare cases this is just looking really ugly and ...
14
votes
1answer
271 views

Can the listings package automatically indent source code?

The listings package automatically highlights keywords in source code and makes it look nice. Is it possible to automatically indent the program? For example, in listings, if the following code is ...
10
votes
2answers
2k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
14
votes
4answers
5k views

Layout of multiple lines footnotes

I have a question about footnotes with LaTeX: I would like the multi-lines footnotes to look like: 1 This is the first line of the very, very long footnote and this is the second line of the ...
10
votes
2answers
651 views

Can't get my head around enumitem's spacing parameters

Maybe it's my terrible lack of sleep but I can't get my head around enumitem's horizontal spacing parameters. What I want is a decription enviroonment in which the first line of each item (where the ...
7
votes
1answer
4k views

Figure with caption within an itemize list not indenting correctly

I'm trying to put an image with a caption on it within an itemize environment (within another itemize environment). When I had the image with no caption, simply using \includegraphics, it indented to ...
15
votes
1answer
405 views

More condensed version of \parshape

\parshape can handle arbitrary paragraph shapes. One extreme is contained within How to layout irregular paragraph shape, where it can handle setting paragraphs like this: However, a simplified ...
11
votes
2answers
1k views

No indentation for non-item within itemize

When using itemize list, I would like to include text which is not part of the bullet points. Is it possible not to indent it the way items are indented? \begin{itemize} \item One Subsequently, we ...
8
votes
4answers
336 views

Calculating the the exact width of the text and a lettrine

This is one question which technically could be broken into two minor questions. I am using a lettrine and some verse text, but the calculation to determine how much to indent the text does not ...
8
votes
1answer
870 views

The abstract environment changes the \linewidth for the whole document

In the article class, it seems that using the abstract environment has an effect to the rest of the document. More precisely, it seems that it redefines the \linewidth, which equals \textwidth without ...
6
votes
2answers
325 views

Spacing for \listtheorems in ntheorem

Q: How do I get my theorem number and name to not overlap each other in my list of theorems? This is basically the same question as "Spacing control for listtheorems". But the solutions mentioned ...
4
votes
2answers
121 views

Indent content of verbatim / lstlisting environment relative to containing environment

I want the content of \verbatim to be indented relative to the actual indent of \verbatim, not the exact number of spaces. For example, I like to indent at sections to make the LaTeX source more ...
4
votes
1answer
3k views

Adjusting spaces for the ToC [duplicate]

Possible Duplicate: TOC Text - numbers alignment How to modify the indentation before sectioning titles in the table of contents? I have a LaTeX document with many subsections (more than ...
46
votes
6answers
1k views

Starting a line where the previous line finishes

I have been using LaTeX for standard things like letters and scientific reports. I recently came to visit my grandmother who writes some poetry and told her I could make a nice pdf from her ...
23
votes
5answers
7k views

How can I change the indentation in quote and quotation environments and commands?

I need to change the indentation that the quote and quotation environments and commands employ. I assume that there is some length I need to set, but I've googled around, and cannot find what I am ...
19
votes
2answers
212 views

What's a quick way to align text?

I am often writing quick statements in which I would like the following lines to continue underneath the end of the first. Is there a quick way to do this (requires arrays?) this is the first ...
22
votes
2answers
555 views

Opposite of \parindent

I want to do the opposite of normal paragraph indentation, meaning: Have no indent on the first line of each paragraph, but Indent each subsequent line in the paragraph. Currently I'm using the ...
18
votes
4answers
2k views

How to prevent paragraph breaks after theorem environments?

By default, the list environments (such as itemize) have the nice property that if you add a blank line after it, it starts a new paragraph, and if you don't, the paragraph continues. So The ...
15
votes
3answers
14k views

Specifying a no-indent for a list

I have the following: This is just normal text... \begin{enumerate} \item First Item ?\\\\ This is the text of the first item \item Second Item ?\\\\ This is the text of the second item ...
10
votes
2answers
2k views

vim LateX-Suite indentation and line breaking

I'm now setting up Vim for use with LaTeX. This is about setting up the indentation. In the picture below, there are many things that need tweaking. Everything between \vskip .5cm and \vskip 1in is ...
6
votes
2answers
2k views

Indent all but first lines of paragraph.

Inside of a table column with a width determined by a p{5in} tag, I want all but the first line of text to be indented. Is there any way to achieve this? Doing it by hand would make later edits ...