The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
437 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, ...
3
votes
0answers
737 views

How to keep indentations in Python code copied from LaTeX PDF?

I tried to include Python 3.6 code in a LaTeX PDF document which should be easily be copied to save to a file or to try the Python code. Although, \begin{verbatim} for row in range(1,9): for col ...
3
votes
0answers
68 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
71 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
378 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
148 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
88 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
303 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 ...
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
77 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
57 views

How to indent the text within a theorem?

I would like the text of a long theorem to be indented, so that the text of the second line starts exactly below the text of the first line (and not below the word "Theorem") like this: Theorem 1: ...
1
vote
1answer
26 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
32 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
21 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
48 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
20 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
32 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
345 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:...
1
vote
0answers
90 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
62 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
1k 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
119 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
245 views

Indentation for floatfoot command

I am using a variety of footnote commands for my thesis: \bibnote to add numerical footnotes to text. The note should appear both on the same page (as a footnote) and in the bibliography (as an ...
1
vote
0answers
95 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
408 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 ...
1
vote
0answers
70 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
99 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
61 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
201 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
127 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
94 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
0answers
22 views

minipage placed where I choose and with the options of any page

I need to be able to construct a minipage inside a page (A4 paper) with the measures that I want, the position I want and the geometry I want (top, bottom, left, right; indention…), like any page. I ...
0
votes
0answers
17 views

Noindent on new type of footnotes

Thanks to some advice I wrote the following command to avoid manually editing a footnote's number. \newcounter{fncntr} \newcommand{\fnmark}[1]{\refstepcounter{fncntr}\label{#1}\footnotemark[\...
0
votes
0answers
18 views

Indentation of unordered lists

When I'm forming an unordered list, if one of the list items involves a long line of text, the corresponding bullet is not indendented in line with the other items. Here's my example: \begin{itemize}...
0
votes
0answers
34 views

Aligning paragraph around centered word

I would like to align/indent a paragraph such that a specific word or phrase is in the horizontal center of the page, but I have no idea where to start to accomplish it (perhaps by calculating a ...
0
votes
0answers
30 views

Indent itemize/enumerate lists with the jfm document class

When using the article documentclass, itemize lists over 2 or more lines automatically indent. However, when using the jfm (journal of fluid mechanics) documentclass, they do not. I have the same ...
0
votes
0answers
37 views

How to add indentation at the start of new paragraph?

I am a wirting thesis, and I have to add indentation at the start of each new paragraph? my code for paragraph: \renewcommand{\baselinestretch}{1.5} % set linespacing = 1.5; equivalent to word ...
0
votes
0answers
33 views

Add indent to first paragraph in report section

Consider this script: \documentclass{report} \makeatletter \renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi ...
0
votes
0answers
52 views

Hanging footnotes with flexible indent

I'm trying to modify the code of Andrew's answer here, which implements a solution to get a hanging footnotes where the indent of the text increases with the footnotemarker. What I am trying to ...
0
votes
1answer
36 views

New section following subsection of previous section not indenting correctly

Good day, I am trying to end the subsection Proof on line ~65 and have the following section reset its indentation to be inline with the previous section, not the subsection Proof on line ~65. I will ...
0
votes
0answers
35 views

TeXstudio wrong indentation after certain environments

I have the impression that Texstudio struggles to indent text following the end of a list (in code, works fine when built of course). Here's what I get with auto-indentation: \documentclass{article} \...
0
votes
0answers
94 views

How to add indented TOC entry using \addcontentsline?

I am trying to manually add several subsections to my table of contents. How do I do this? When I use \addcontentsline the entries appear as sections (with no indent), not subsections. Specifically, ...
0
votes
0answers
54 views

Why is \tex_par:D behaving differently from \par?

As illustrated in the MWE, using \tex_par:D rather than \par within a list environment leads to unexpected side-effects. Is this intended behavior? If so, it's likely to break a lot of code. I ran ...
0
votes
0answers
50 views

New page appears indented (moved to the right)

When I begin a new page it seems like page x is normal but the next page x+1 is completely indented, the next page x+2 normal and the next x+3 indented, I don't find the way to solve this My code is ...
0
votes
0answers
35 views

Need a way to nest line breaks in tabularx environment for Calendar

I am trying to make an academic calendar package. I know there's a veritable horde of them out there and I've looked through many of them but can't seem to find one I like. Since I am (usually) pretty ...
0
votes
0answers
141 views

Cannot use minitoc package with offset

I am currently writing a report in LaTex. I am encountering a puzzling issue... I have looked on stackexchange and cannot find a way to solve my problem. Main source I found: minitoc suppress title ...
0
votes
0answers
74 views

Using `\list` to indent subsections

I want to indent all of the subsections my document. After some trial, error and reading I got the impression, that \list is the way to do this (see MWE below). (Eventually, I want to absorb this into ...
0
votes
0answers
398 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 ...
0
votes
0answers
97 views

Section title shifting in mdframed with \hangindent used

I have a code like this: \documentclass{article} \parindent = 0pt \usepackage{mdframed} \mdfsetup{everyline=true,splittopskip=15pt,innerleftmargin=2em,linewidth=1.3pt} \begin{document} \section{...
0
votes
0answers
419 views

Indentation not working for some paragraphs

Some paragraphs in my document do not indent, what ever I try. I have solved some of them using the \parindent and \usepackage{indentfirst} but these specific ones do not seem to work. In those ...