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

0
votes
1answer
31 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 ...
5
votes
0answers
422 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
571 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
66 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
68 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
350 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
145 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
278 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
76 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
0answers
64 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 ...
1
vote
0answers
17 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
30 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
321 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
83 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
56 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
974 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
111 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
230 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
90 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
392 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
65 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
95 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
60 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
185 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
113 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
21 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
33 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
29 views

glossaries-extra remove indentation of a long text in \glossentrydesc

I would like to remove the indentation of long text in the description of a glossary entry. Actually a really simple task but I can not find the solution. Somehow \glossentrydesc{##1} does the ...
0
votes
0answers
32 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
44 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
0answers
34 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
833 views

Indent a line in Tex

How would I indent the second line so that it looks like the following. *Note: Don\'t mind the change in font. I wrote that in Text Editor :) \documentclass{article} \title{This is my first document} ...
0
votes
0answers
57 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
53 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
43 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
31 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
115 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
67 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
339 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
75 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
402 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 ...
0
votes
0answers
290 views

paragraph indentation strange

I have a first line of a second paragraph (from \section title) that is not behave like other first line in other paragraph. I need it to be indented but it din't even if I put \hspace{} before it. ...
0
votes
0answers
95 views

R-codes in LaTeX using listings

I use the package listings to include R-codes in my project. Unfortunately, it produces (sometimes, but not always) a hanging indent in the pdf document. Is there a possibility to erase this ...
0
votes
0answers
580 views

Auto-Indent of the list environment in the Editor of TeXworks

Does above mode exist in Texworks? I Tried Format-->Auto-Indent Mode dropdown in the Toolbar but none of the options worked to indent my following nested list example: Sometimes, if I copy a list ...
0
votes
0answers
669 views

Changing tabular alignment in Friggeri CV

I'm actually dealing with the Friggeri CV. This template uses friggeri-cv.cls as class file. In this file you can find everything you need to customize the final CV. The CV is divided in parts: ...
0
votes
0answers
1k views

Conditional indent of paragraph

Is there a way to indent paragraphs if they follow "long lines" of text? Graphical example of what I want my text to look like Here, only the paragraph "Duis autem..." is indented, because it ...