We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [indentation]

{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}.

Filter by
Sorted by
Tagged with
13
votes
1answer
2k 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 ...
24
votes
2answers
20k views

\llap (or \rlap) at the beginning of an indented paragraph

If I use a \llap{text} command at the beginning of an indented paragraph, the text is not indented and is put on the line above the paragraph. \documentclass{article} \begin{document} \parindent=2cm ...
12
votes
6answers
6k 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 ...
9
votes
2answers
6k views

How to wrap lines correctly inside algorithmic

I am having problems displaying algorithms. The wrapping is really ugly and I can't, for the life of me, find a fix that doesn't involve manually tweaking the hell out of everything, to the point that ...
27
votes
1answer
1k 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 ...
20
votes
2answers
5k views

\captionof messes with paragraph indent

\documentclass{mwrep} \usepackage[font=small,compatibility=false]{caption} \usepackage[chapter]{minted} \usepackage{lipsum} \begin{document} \chapter{Test} \lipsum[2-3] \captionof{listing}{Caption of ...
12
votes
1answer
3k views

autogobble for lstinputlistings

In the manual for listings it says that gobble has no effect for lstinputlistings. Since the manual is about four years old now and after reading How to automatically skip leading white spaces in ...
7
votes
2answers
949 views

Make the lines of a description item line up

I am trying to line up the lines of a single description item. When I introduce a line-break or when the line becomes to long, the new line isn't lined up with the first one. I'm aware of the fact ...
6
votes
3answers
9k 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 ...
6
votes
3answers
12k views

how to start a new line after inserting a figure without indentation at the beginning of this new line?

\section{last paragraph} Here are some words in the last paragraph. Now a figure is inserted below. \begin{figure}[H] \centering \includegraphics[width=5cm]{...jpg} \caption[Example .]{.,,} \label{...}...
6
votes
3answers
2k views

Insert a paragraph into a list that uses the whole text width

I want to insert a paragraph or possibly even a box with a background color into a list that uses the whole \textwidth. Something like this: 1st item a subitem 1 b subitem 2 2nd item a ...
4
votes
1answer
319 views

Turn off paragraph indention for a single line

Is it possible to turn off the paragraph indention for a single line? I have the following use case: I open a new section which describes the task of an exercise. Since I use the font size \large for ...
31
votes
1answer
36k views

How to remove indentation for all paragraphs?

I am finding this very inefficient, every time I type up something MiKTeX just indents for me and I have to enclose everything in \noindent{...}. Is there a quick way of going past this?
16
votes
1answer
3k views

Remove indent of paragraph and add line skip with tufte-latex

I'm using tufte-latex and I want paragraphs to have no indent, but a line skip instead. Normally you can achive this with: \usepackage[parfill]{parskip} Using tufte-latex this does not work however. ...
13
votes
2answers
524 views

Fix indent for section title

I like to recreate the layout of an official template, in order to get rid of Word. Because the template is from the government, I must recreate it 1:1. In the end, the document should look like ...
8
votes
2answers
4k views

No indentation after theorem environment with amsthm

I use the amsthm package and dont want lines which start right after the theorem environment to be indented. I consulted the manual of the package and it said to define a new theorem style. I expected ...
13
votes
2answers
6k 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 ...
9
votes
1answer
7k views

\hphantom in \tabulary produces extra vertical space instead of horizontal

Inserting an \hphantom to indent a table row works in tabular, but in tabulary it produces extra vertical space instead. Since these are left-aligned L columns I would expect the space at the left ...
3
votes
1answer
922 views

How can I indent the second line of a linguistic gloss with gb4e.sty?

In accordance with the documentation, I've been happily plodding along making interlinear glosses. So far so good! But things get ugly when I make a longer gloss. Looking at example (5) on page (6) ...
14
votes
1answer
1k 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? ...
11
votes
2answers
21k views

How to adjust the width of abstract?

I would like to change my abstract's text width. For now I have something like this: \begin{abstract} \lipsum \end{abstract} I have tried wrapping my text with \begin{minipage}{0.85\textwidth} ......
4
votes
2answers
3k views

Minipage reset indent. How can i set again to standard? [duplicate]

I have the following code. \documentclass[a4paper, titlepage, 11pt]{article} \begin{document} \section{Introduzione all'astrofisica} \begin{minipage}{12cm} In astrofisica, differentemente ...
5
votes
1answer
270 views

how to tag an equation within an itemize - using amsart

I'm doing the following thing \documentclass[leqno]{amsart} \begin{document} Example. \begin{itemize} \item Such and so \item the following holds \begin{align} x - 2 \end{align} ...
5
votes
2answers
862 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 ...
3
votes
1answer
133 views

Determine natural width of align*: varwidth uses \linewidth even though display is correct

In an earlier question, align* in varwidth seems to ignore fleqn option, it appeared as if align* was not being properly handled by the varwidth environment. A "fix" was provided which results in the ...
99
votes
4answers
172k views

Have new line between paragraphs, no indentation [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? I am sure that this must be a dup, but I can't find the right keywords ...
47
votes
1answer
174k views

Indentation within an Itemized List [duplicate]

I am using res.cls to write my resume. I have changed the indentation of my itemized list using: \setlength{\itemindent}{-.5in} This works great for the first line, but if the item goes onto the ...
26
votes
3answers
62k views

Indent an entire paragraph / section?

I am writing a document with some odd spacing. I am copying another document, and therefore the layout must be almost exact. I have sections divided by letters below, and some paragraphs in each ...
36
votes
2answers
58k views

How to disable automatic indent?

I know there are some similar questions here, but I haven't found the perfect answer for my problem. I don't like that TeX indents he first line of each paragraph and I'm too lazy to write \noindent ...
27
votes
2answers
38k views

\raggedright removes paragraph indentation

This code \documentclass[]{article} \usepackage{lipsum} \begin{document} \raggedright \lipsum[1-3] \end{document} produces three paragraphs with a ragged right edge and no paragraph ...
9
votes
2answers
4k 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 ...
17
votes
2answers
31k views

Changing top, bottom, left & right margins on the fly

I’m trying to find a way of being able to modify all of the margins of a page whenever I want to and as many times as I want to on a single page in order to be able to put text very easily where I ...
12
votes
2answers
2k views

Set indentation of choice in exam documentclass

I want to create an multiple choices question with this indenting format 1. ######## A. ### B. ### C. ### 2. ######## ######## A. ### B. ### C. ### The choices have same ...
20
votes
3answers
23k views

Remove paragraph indent from abstract in article class

I'm just getting started with LaTeX to write scientific papers. I don't want to have paragraph indentation, so I've used the parskip package to deal with that. However, that doesn't seem to deal with ...
16
votes
2answers
11k views

Minipage that allows page breaks?

Is there a minipage-like environment that allows pagebreaks? Everything I can find is about avoiding page breaks (which minipage does well) but I want to indent a whole section, which is convenient to ...
11
votes
3answers
14k views

Indenting in enumerate (TeX/LaTeX)

I'm making a numbered list with the enumerate environment. Through the enumitem package I've changed the label to [label=Caso \arabic*)]. I have set itemindent to 10.5pt to align the label start with ...
9
votes
2answers
3k 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 ...
18
votes
1answer
16k views

Left-aligning all text in itemized list (beamer)

I'm trying to make an itemized list in beamer (using the beamerposter package). By default, the text of first-level bullet points is left-aligned at the same point as non-list text, and the bullet ...
12
votes
2answers
872 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 description environment in which the first line of each item (where the ...
9
votes
1answer
11k views

Indent math blocks?

I want all math blocks \begin{math} in my document to be intended automatically, like it's the case with \begin{itemize}. Can anyone please give me a hint on how to do this? Thanks :-)
4
votes
1answer
207 views

Indent with parallel text Hebrew/Yiddish–Latin/German

I'm having trouble with making a parallel version of a bilingual play. Each dramatis personae should have a own indent. Based on the dramatis package I use: \newcommand\einzugjid{\hangindent=5mm\...
14
votes
4answers
6k views

Is there a general command to disable indentation of paragraphs after figures and tables?

I am typesetting a manual, that uses normal indentation for paragraphs. The pages have a lot of figures and tables and I would like to have the paragraph after tables and figures to have no ...
12
votes
1answer
5k views

Margins of mdframed without any effect

This code \documentclass[]{scrbook} \usepackage{mdframed} % \usepackage{boxedminipage} \begin{document} \noindent \begin{boxedminipage}{1.0\textwidth} Box of 100 \% width \end{boxedminipage} \...
10
votes
1answer
10k views

Hanging references using \fullcite

I need APA style hanging references using \fullcite. For example I need \fullcite because I want the reference cited where I want in the document, unlike at the end of the document using \cite. How ...
8
votes
2answers
3k views

Leftmargin problem at the bibliography

I have some trouble with the bibliography alignment. It's similar to References to align with the rest of the text, but that solution doesn't work for me. Here is MWE: \documentclass{article} \let\...
7
votes
1answer
1k views

Move biblatex label into margin

I'm trying to move everything nonessential into the margins. But I couldn't find how BibLaTeX generates the entries' labels (like [1] generated by \cite and in front of the item in the list, don't ...
6
votes
3answers
3k views

\phantom inside tabularx

I tried to improve the alignment in the following table using a \hphantom: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{p{2.8cm} X} 1/00\,--\,2/00 ...
3
votes
2answers
15k views

Customizing indentation in section and subsection headings

I would like to be able to \renewcommand\section and get LaTeX to format the section and subsection headings so that their numbers are left-justified, and the headings are exactly above the paragraph ...
1
vote
2answers
395 views

Graphics against page border

Using \begin{tikzpicture} \draw (0, 0) node[inner sep=0] {\includegraphics[width=\paperwidth]{kleurlabel}}; \draw (5.9,0) node (example-tabular) { \begin{tabular}{rr} \LARGE\color{white}\bfseries ...
11
votes
2answers
769 views

Biblatex, Use of prefixnumber changes indentation of all subbibliographies

I have a problem with my three subbibliographies. I am using two styles numeric and alphabetic. In one of the subbibliographies I would like to use a prefixnumber. Unfortunately this affects also the ...