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

83 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
520 views

Copyable tabs in minted

I'm preparing tutorial for students with code fragments that they will copy to a text editor. Is there a way to make syntax-highlighted code copyable to text editor so that indentation is preserved, ...
4
votes
2answers
95 views

Indentation of line numbers while using equations within algorithm2e

I have written some algorithms using the package algorithm2e. Some of my algorithms also include aligned formulas. My problem is that line numbers below lines ending with equations have a larger ...
3
votes
0answers
83 views

Make algpseudocode continued line have the same indention as existing line

I'm writing up a pseudo-algorithm using the algpseudocode package. Most of my code lines fit without line wrapping, but a single line of code cannot fit in a single line of the table. When the code ...
3
votes
0answers
76 views

Listing auto indentation of custom language

Using listing a custom language is defined and auto indentation is defined. The MWE does not do the indentation \documentclass{book} \usepackage[formats]{listings} \usepackage{xcolor} % Define ...
3
votes
0answers
503 views

First line exceeding margin

I am writing my thesis, and I have a problem with indentation. The first line of the following paragraph exceeds the margin, and I don't understand why. This is the code: \documentclass[12pt]{report} ...
3
votes
0answers
391 views

How to remove tabcolsep in the first column of all tabulars in one place?

I want to vertically align the first column of all my tables the text. I can change the \tabcolsep using @{} but I how can I declare this in a single place as a default value? Edit: I added an MWE ...
3
votes
0answers
159 views

Indentation of Lists in Environments

Based on the answer of Markus Scharrer, I am using the custom lstnewenvironment to get code and Section with my environment. Since I use an environment in an environment (I know it may not be the best ...
2
votes
0answers
39 views

spurious indent combining standalone, french, itemize and verbatim

I have an indentation problem that I finally solved adding \usepackage{enumitem} but I can't understand the reasons why the problem happened in the first place and got solved using enumitem. I nailed ...
2
votes
0answers
184 views

Fullwidth solutionorgrid with exam-class

The exam-class provides a convenient environment for typesetting either a specified kind of space for students to solve the question or the solution to that question, based on given class options. My ...
2
votes
0answers
475 views

Indentation in listing with Python

I am inserting snippets of python code into a latex document using the listing package. When writing code comments in the code snippet the indentation level is not maintained. Minimal working example:...
2
votes
0answers
488 views

How to tell AUCTeX to not indent an environment?

I'm using the comment package for the comment environment. This environment cannot be indented, just like the verbatim environment. How can I configure AUCTeX to not indent this environment? Thanks in ...
2
votes
0answers
1k views

Text wrapping and indenting in Sublime Text

I'm currently testing sublime text + latextools for my typing needs (I've been using emacs+auctex for quite a while). So far I think I can get used to it. But the one thing I can't get straight is how ...
2
votes
0answers
85 views

ConTeXt: Disable Hyphenation, Enable Indentation, and Enable Sorting for Bibliography Entries (Items in List of Publications)

Enable Indentation I've tried: \setuplist [pubs][ before={\indentation}, ] and also: \setuppublications[ indentnext={yes}, indenting={yes}, ] Unfortunately, no effect. I would like both the ...
1
vote
1answer
42 views

How can I align the first line of a description list with the rest in LyX?

I'm new to LyX. How can I achieve the list style reflected in the second picture?
1
vote
1answer
39 views

LyX - multiline math environement left indentation

How to make all of my lines left indented?
1
vote
0answers
64 views

How to show the vertical indent guides of a code in minted?

I'm using minted for a competitive programming reference, I'm using a tool that given a template lets you create a .tex file with all of your codes highlighted with minted. So I know that a lot of ...
1
vote
0answers
30 views

Why are my paragraphs not indenting? (LaTeX)

Simply put, none of my paragraphs are indenting and I can't find what package is causing the issue. What only thought is to have a set of fresh eye see what my problem is. %%%%%%%%%%%%%%%%%%%%%%%%%%% ...
1
vote
1answer
108 views

Remove indent from specially defined footnote command

Following the top answer to this question, I've created an unnumbered footnote for use in a document like so: \newcommand\blfootnote[1]{% \begingroup \renewcommand\thefootnote{}\footnote{#1}% ...
1
vote
0answers
65 views

Add indentation for printing

I'm about to print my thesis (A4 size) and the publisher has requested me to extend the size of each side of page in 3 mm, so the paper cutter can do its thing properly. I can't change the size of ...
1
vote
0answers
26 views

How to delete indentation, but keep text in-line with that above it?

Currently, I am formatting a document, and the section looks like so with the following code \hrule \vspace{4mm} \textbf{Publications} \vspace{4mm} Author, ``The World is Going to End in a Month ...
1
vote
0answers
72 views

Can I make indent over many line on overleaf in \newtheorem?

I like to make it so that when I used \begin{pf} everything in the area is indented in a bit and when \end{pf} the text after is indented back out again, and if there are others inside it is indented ...
1
vote
0answers
21 views

How can I ensure paragraph text in a figure has no side effects?

I want to include a centred image with a caption and a paragraph above it (on the same page). To achieve this, I've got roughly the following setup: \documentclass{article} \usepackage{graphicx} \...
1
vote
0answers
54 views

No indentation in local ToC

I do not want indentation on the local ToC. I am using the titletoc package, also I use titlesec and titleref packages. \documentclass[twocolumn]{book} \usepackage[english]{babel} \usepackage{...
1
vote
0answers
685 views

Unwanted caption indentation with longtable, when using width in captionsetup

I get an indented caption if I use width=0.9\linewidth in the captionsetup. Then the longtable caption centres or indents and there is no way to get it to align flush left to the table. However, width ...
1
vote
0answers
139 views

Indentation and fonts conflict in theorem environment with amsbook

I'm using amsbook package but don't like the indentation at the beginning of theorems and proofs environments. I've tried to the the solution proposed here, and it works with respect to indents, ...
1
vote
0answers
92 views

Numbering correctly indented Verbatim code blocks

I have been looking through the tex.stackechange community answers and questions and I've not managed to find an answer to my problem. I want to be able to write blocks of code in a verbatim-like ...
1
vote
0answers
2k views

\parskip, and \parindent

This is a bit of a strange one, but I want to be able to base the values of parskip and \parindent on the other (so I can change one and it will change both). I have a way of making them both the same:...
1
vote
0answers
131 views

How to customize econ.bst in order to remove hanging indentation from bibliography entries?

I am trying to customize the econ.bst (http://shirotakeda.org/en/tex/econ-bst.html) file for bibligraphy entries of Economics Bulletin. I have succeeded to make all wanted change, except to align the ...
1
vote
0answers
112 views

wrapfigure.sty failing to produce wrapping in indented paragraph

I wanted to have text wrapping around a figure, so I wrote the following (this uses pst-jtree.sty which is just a collection of macros over pstricks, very useful for linguists of my ilk, largely ...
1
vote
0answers
80 views

hanging indent in RTL

I have a RTL Arabic doc. Because I want most of these to have a hanging indent, I don't want to wrap each paragraph in a special environment. Instead I want to be able to turn on and turn off ...
1
vote
0answers
101 views

How to write logs in LaTeX without default indent

The output I want is like the following photo: We can see the middle log lines have different font type and indent compared with other plain text. I have searched a while. The font type seems like ...
1
vote
0answers
64 views

Enforce automatic breaking of long lines and and indent broken lines

I have many tex documents like that below which I want to translate with pdflatex. The files are the output of a vim-plugin which generates formatted output from vim's internal syntax highlighting. ...
1
vote
0answers
265 views

Decrease indentation of header text (fancyhdr) to 0.15 cm (same as \titleformat)

I'm using fancyhdr for the header. I want to decrease the indentation of the text in it (header - italic text): Now is like in the image but I would like to have the same indentation in both (...
1
vote
0answers
133 views

List and justified text

I'd like to indent every line of a paragraph but the first one. I found a solution here (Indent all but first lines of paragraph.) and I use the approach with the adjusted list. The only problem is, ...
1
vote
0answers
98 views

Undesired \parindent in front of first label — depending on previous text

Here Manfred Sauter asked for appropriate spacing in front of the first label in a list. However, if there is no text in front of the first label, the first label will not be indented at all. How can ...
0
votes
1answer
11 views

Change indentation within List of Figures (with tocloft package used)

As suggested with https://tex.stackexchange.com/a/576577/231568 I use tocloft to adjust the format of the list of figures. But as can be seen in the following picture (or also in the attachted picture ...
0
votes
0answers
42 views

Remove indent on \paragraph{…} block

How do I remove the indent from the beginning of a \paragraph{} block? \noindent does not work for me.
0
votes
0answers
20 views

Remove indentation when using \begin{enumerate}

I want to remove indentation when using the enumerate function. Like illustrated with iii.owners and not like I. society I use \usepackage{enumitem} \begin{enumerate}[label=\textit{\roman*.}] \item ...
0
votes
0answers
23 views

Class exam + marginnote: How to explain this indent problem?

I use the class exam and I want to use the marginnote package to put notes in the margin of some questions. When I use the last optional argument to change the vertical offset, it adds some indent at ...
0
votes
0answers
30 views

How to eliminate the indent in reference

I'm using IEEE as my referencing style. Here is the document class of my article \documentclass[conference]{IEEEtran} Then I applied \bibliographystyle{IEEEtran} \bibliography{IEEEabrv,ref} But I ...
0
votes
1answer
43 views

Wrong indentation after the fourth reference

Even if I change #4 or #5 to something else, it still the same, #5 indentation is always wrong. It's an IEEE template.
0
votes
0answers
34 views

Indent the word 'Proof' without using xpatch?

I can't figure out how to work around this problem. I need to indent the word 'Proof' in the proof environment of amsthm without using the xpatch (xpatch is described in here Indent the word “Proof” ...
0
votes
0answers
31 views

How to keep indent of nested bullet list across pages?

I have a nested bullet list which begins at the end of one page and ends in the next one. However, when going across pages, the indentation of the list is not kept and the bullet is justified to the ...
0
votes
0answers
10 views

Quotes within numbered text: position of line numbers

I am wondering if, for an indented passage (a quote) it would be possible to shift reledmac's line numbering from the margin into the gap left by the indentation? The following MWE \documentclass{...
0
votes
0answers
218 views

How to indent a numbered list of references in R markdown as in latex?

I post this same question in stackoverflow (https://stackoverflow.com/questions/61060820/how-to-indent-a-numbered-list-of-references-in-r-markdown) and I was suggested to ask here. So, my problem is: ...
0
votes
0answers
24 views

Bold Section Lines and Indent in Local Table of Contents

I am using the package etoc and \localtableofcontents to print a table of contents for each chapter in my report file. It seems that latex by default always makes the top level bold in the main \...
0
votes
0answers
38 views

Indent Latex algorithm numbering

I am using algorithm and algorithmic package to right the algorithm. But at some point, indentation in the numbering of the algorithm got mixed up please see the code and image. \begin{algorithm}[H] \...
0
votes
1answer
39 views

Creating “Languages” sub-section of “Skills” sections in CV

I am creating my CV and I want my "Language" sub-section looks like the following example (i.e. the kind and proficiency are separated into two "columns" and align to the left). I ...
0
votes
1answer
33 views

Setting paragraph indention

How can I set include an indent for each new paragraph? I tried multiple things but I can't seem to fix it. This is my current main file: \documentclass[a4paper,man,floatsintext,natbib]{apa6} \...
0
votes
0answers
32 views

item indentation in resume

I have created a resume format and it looks okay for the most part, but I want to introduce indentation in some parts of it, but somehow couldn't figure out a way to do it. I tried \hspace, \...