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
14
votes
2answers
15k views

How to remove indentation in footnote?

On the first page, I put "corresponding author" in a footnote. However, there is unwanted indentation before * (see the picture below). I tried \noindent but didn't work. MWE is at below. Thank ...
14
votes
1answer
59k views

Writing an algorithm in LaTeX

I am trying to write an algorithm in LaTeX. I used a for loop inside the algorithm (see attached image), but the problem is that the statements that are below the for loop are not tapped. Why? I used ...
8
votes
2answers
3k views

Heading number in margin using titlesec and/or komascript

Using titlesec and/or komascript how do I format all headings so the number is left aligned in the margin, the title to the right, with a horizontal rule underneath it all (from margin to text width ...
14
votes
1answer
13k views

How can I get proper paragraph handling in itemize environments?

I'm using the itemize environment to answer a list of questions, because the output is compact and neat. However, when I need more than one paragraph in one item, the second one is not indented, as it ...
7
votes
2answers
11k views

How to indent second line of an item in list environment?

I have a bullet point list that I think would look a lot better if I could indent the second line of some of the points. This really shouldn't be hard, but I can't seem to manage. I've tried \hspace ...
4
votes
2answers
3k views

How can I modify the settings of the margin item in a list?

In the article class I have this section of code \if@twocolumn \setlength\leftmargini {2em} \else \setlength\leftmargini {2.5em} \fi \leftmargin \leftmargini \setlength\leftmarginii {2.2em} \...
4
votes
1answer
4k views

Width of \chapter section with titlesec

I use the titlesec package for styling the sectioning commands. But I have a problem with the chapter width or right margin: The width of the text should only reach to the blue line, "Organisation" ...
19
votes
1answer
8k views

Change Indentation Size in algorithmicx package

I'm using and enjoying the algorithmicx package, but would like to adjust the size of its indentations. In the algorithms package, I could do this with \algsetup{indent=1em}, but that doesn't seem to ...
16
votes
6answers
14k views

How do I indent ALL lines of a paragraph so that it looks like a blockquote?

I understand that there is a \quote (correct me if I'm wrong) macro to do this; but I'm using this for something else (not prose). I also want it to obey the right margin. My minimal working example ...
14
votes
1answer
6k views

Indent/leftmargin of itemize environment without using enumitem

I would like to have a smaller left margin or indent for the itemize environment. Currently, I tried so far \leftmargin and \itemindent but I did not affect the following lines of an entry. Does ...
13
votes
1answer
799 views

No indent in the first paragraph in a section in Plain TeX

I have checked No indent in the first paragraph in a section? but I think my question warrants a new thread, because my question is about Plain TeX. I am using Plain TeX. I would like to write a \...
13
votes
1answer
600 views

Suppressing indentation of the next paragraph

I'm trying to define an environment/command, with the following property: The immediate paragraph after the environment must not be indented. The following shows my attempt at defining such ...
12
votes
2answers
762 views

hanging package chokes on apostrophes

I'm writing a file in LaTeX2e with TeXshop in which I'd like some paragraphs where all lines of a paragraph after the first line are intended (as with dictionary entries). I found out about the ...
11
votes
3answers
1k views

whitespace/brace/indentation conventions for LaTeX programming

This question is not about formatting the text/markup of a document. I'm really focused on the programming aspect of LaTeX. I'm working on a fairly large set of document classes and packages, and I'...
11
votes
5answers
3k views

How to define a parshape command with LaTeX?

I want to typeset a book with some \parshape command, for example: \documentclass{article} \usepackage{lipsum} \begin{document} \parshape=4 0.2\textwidth 0.8\textwidth 0.2\textwidth 0.8\textwidth 0....
10
votes
2answers
10k views

How to align source code produced by listings package with main paragraph text

I'm using the latex listings package for the first time to format some HTML. I'm noticing that by default, the html code is being pushed further left than the main paragraph text of my document. Is ...
8
votes
3answers
6k views

Extra space between footnote numbers and content for high count

I’m using the following commands to customize footnotes: \usepackage[bottom,norule,hang]{footmisc} \setlength{\footnotemargin}{2mm} \setlength{\footnotesep}{4mm} \addtolength{\footskip}{2mm} The ...
6
votes
1answer
2k views

Smaller parskip than half for KOMA-Script?

I am using the documentclass scrbook. To mark paragraphs I need both vertical spacing and indentation. I know that KOMA-Script supports the option parskip or halfparskip, however, this disables the ...
6
votes
1answer
354 views

After “Theorem”, “Definition” the actual content should start at the same indent

Since "Thm 1.2", "Def 1.33", etc. all have about the same width, I'd like to try a layout with a fixed indentation. The actual content after the label and number should begin at the same indendation ...
6
votes
1answer
4k views

Automatic utility for tex source indentation [duplicate]

Is there any indentation tool for (la)tex? I currently use TexShop under Mac OSX, so I can either use a TexShop plugin or a command line tool.
6
votes
1answer
3k views

About autoindent and postbreak in the package listings [closed]

I am using the package listings to show my Matlab code. The code was pre-typed in a file and everything will be loaded from the file and a .tex file will be generated automatically to show the code ...
3
votes
1answer
3k views

Changing indentation in friggeri CV template

I am pretty new to latex and currently in the need of writing an CV, so after some googling I found the friggeri CV template (https://github.com/afriggeri/cv), which looked very promising. ...
17
votes
1answer
7k views

Should I place \noindent after enumerations, itemization, and descriptions?

I wonder if I should put the \noindent command immediately after enumerations, itemization, and especially after descriptions. For instance: \begin{itemize} \item One morning, when Gregor Samsa ...
16
votes
3answers
3k views

Text following subequations is slightly indented if a label is used

The following minimal code causes a small indentation at the beginning of the line of text, smaller than the usual indentation at the start of a paragraph. It disappears if the label in subequations ...
13
votes
2answers
3k views

Proper indentation in acronym package

I am using the acronym package in the thesis. This is the first time I am using this so don't know much. But I did something like this. \begin{acronym} \acro{2G}{2nd Generation} \acro{3GPP}{3rd ...
10
votes
4answers
4k views

Changing distance between chapter number and chapter title in the table of contents

I'm typesetting a document with more than 100 chapters in it (don't ask, I didn't write it!). The table of contents comes out ugly, because it seems the distance between the chapter number and the ...
10
votes
1answer
7k views

How do I do hanging indents in Context?

How do I do hanging indents in Context? I've been looking at the few examples that I've found, for example at http://wiki.contextgarden.net/MLA_style, but couldn't get anything to work as I want it. ...
10
votes
3answers
1k views

Creating a new environment for multiple choice questions

I am trying to create a new environment for multiple choice test questions. I want to make sure that every question has a number and has a constant indentation: 1. Lorem ipsum dolor sit amet. ...
8
votes
2answers
7k views

How can I shift an {itemize} list to the right?

I am making an {itemize} list whose labels are so wide that they stick into the left margin: \begin{itemize} \item[(MPT1)]... \item[(MPT2)]... \item[(MPT3)]... \end{itemize} How can I shift ...
8
votes
1answer
11k views

Combining leftskip, rightskip and raggedright

For some text (\blindtext below), I would like to add 20pt to the left and right page margin, and I would like the text to be raggedright (no hyphenation). The first try below does not add 20pt to ...
8
votes
2answers
3k views

Push a block of lines to the right margin

The following code does what I need: \hbox to \textwidth{\hfill \vbox{ \hbox{some text} \hbox{some other text} } %vbox } %hbox The important things here are: Lines are not ...
8
votes
1answer
845 views

Endnotes numbered by regular arabic numbers (instead of superscripts) and without indentation

The Latex document below (from my earlier question Chapter name appearing in the endnotes) produces endnotes which are numbered by arabic numbers in the superscript, and there is indentation for each ...
7
votes
1answer
6k views

Footnote indent [duplicate]

Possible Duplicate: Layout of multiple lines footnotes This seems like a relatively simple request—though I can't seem to find the answer anywhere. I'm using the biblatex-chicago package and am ...
7
votes
1answer
3k views

using biblatex -formatting References section

I am studying biblatex and I'm using just a basic file... \documentclass[12pt,a4paper]{article} %\usepackage[style=authortitle]{biblatex} %\usepackage[style=authoryear]{biblatex} %\usepackage[style=...
7
votes
3answers
6k views

Forced indentation in algorithmicx

I have an algorithm dealing with some very large parameter names, messing up the readability. What I've done so far is break the lines of the problematic statement (lines 4-5) manually into two ...
7
votes
3answers
1k views

Long paragraphs follow source indents in TeXShop

How do I make long paragraphs follow the source indents in TeXShop? This what I usually get: How do I make succeeding lines follow the indent of the first line? This is so that it would be easier to ...
7
votes
1answer
3k views

Can listings automatically indent code? [duplicate]

\documentclass[11pt,a4paper] {article} %\usepackage{fontspec} \usepackage{listings} \usepackage{xcolor} %\setmainfont[BoldFont=黑体]{宋体} %\XeTeXlinebreaklocale "zh" %\XeTeXlinebreakskip = 0pt plus 1pt ...
6
votes
5answers
23k views

Verbatim environment with correct tab handling and special characters

I'm looking for an environment similar to Verbatim which will allow me to say something like the following code (which uses indentation instead of spaces): \documentclass{article} \usepackage{...
6
votes
2answers
5k views

Indentation for proofs

I'm using amsbook document class and amsthm package. I want the proofs to stand out from the rest of the text by slightly indenting them, i.e. leaving some margins from left and right. How do I do ...
6
votes
2answers
2k views

How to give any figure a caption based on its horizontal size?

I have figures in both portrait and landscape and of various sizes. I'm trying to find a leeway to give any figure a caption based on its horizontal size. In my thesis.cls file, I've already set a ...
5
votes
1answer
1k views

Paragraph indentation incorrect with picinpar package

I am using the picinpar package and don't know why the paragraph indentation is not working. The problem words are highlighted: Notes: I am not stuck to using the picinpar package, but want to ...
5
votes
1answer
1k views

Indent only first line in multi-line subsection header

I'm requested that my subsection titles look like this: However, so far I didn't manage to achieve that. titlesec documentation didn't help much. The best I could get is something like this: with \...
4
votes
1answer
4k views

Disable automatic indenting on description items

Here's the default functionality for description items: With this code \begin{description} \item Lorem ipsum... \end{description} Is there any way to make this flush all along the left side ...
4
votes
2answers
919 views

Auctex block indent

Is there a way to block indent whole paragraphs in emacs + auctex? I'm thinking in that functionality in such editors as WinEdt. I've search in different fora, and in the available documentation, ...
2
votes
3answers
365 views

How to disable paragraphs inside my environment with \let\par\relax?

I would like to disable the automatic paragraph inside my thesis abstract which is called resumo. On the question How to disable new paragraph at empty line? they said I could use \let\par\relax to ...
2
votes
2answers
2k views

Enumeration in margins and hang indentation

A solution was given to Enumeration across many sections. However, (A) it seems enumeration prevents hang indent from activating. (B) Can I get the numbers to go into the left margin and leave hang ...
2
votes
1answer
1k views

Indent subsections in Beamer's TOC

Following Beamer: increase radius of circle in TOC and include subsection bullet I set the 'subsection in toc' of Beamer by: \setbeamertemplate{subsection in toc} {\leavevmode\leftskip=2em$\bullet$\...
16
votes
1answer
411 views

Unexpected interaction between microtype and \parindent

The microtype package (or more likely the pdfTeX microtypographic extensions) have a strange interaction with \parindent that bit me. \documentclass{article} \usepackage{microtype} \begin{document} 0:...
11
votes
4answers
384 views

How to do certain indentations

I tried searching for an answer, but franly I'm so new to LaTeX that I don't even know what I'm searching for, so I'll explain what I'm trying to find below. I would like to have this as one of my ...
10
votes
3answers
2k views

Leftalign labels with enumitem

I'm using the enumitem package to define a legal list: \usepackage{enumitem} \newlist{legal}{enumerate}{10} \setlist[legal]{label*=\arabic*.} The output for a list looks like this: 1. foo 1.1 bar ...