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
1
vote
1answer
97 views

Add an indent to appendix line in ToC for included appendix

I asked how to add an indent to a toc line for an appendix here. In my real structure I am including the appendices: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \...
2
votes
0answers
114 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 ...
6
votes
3answers
4k views

Hanging indents in bibliography

I can't imagine this isn't covered elsewhere, but for the life of my I can't find it. (Forgive me, I'm very new to LaTeX.) I'm running pandoc to generate PDFs based on a markdown document, but right ...
2
votes
2answers
493 views

xeCJK and paragraph indentation

I am using xelatex and want to use the xeCJK package, but without indenting the first paragraph of a section. I tried the setup directive below, which should do the trick. But it does not. The manual ...
1
vote
1answer
6k views

How to remove indentation of newlines in itemize?

I have an itemize block in my latex code (XeTex actually). I wish to reduce the indentation of a multi line item. Can you please help me with this? My code and how it looks are below. \begin{itemize}[...
0
votes
1answer
219 views

How can I set the indent of the second line in TOC, LOT, LOF, and Bibliography?

I use article document class. I would like to set the indent of the second line in TOC, LOF, LOT, and Bibliography. \documentclass{article} \usepackage{graphicx} \begin{document} { \let\...
33
votes
5answers
9k views

can someone please explain the enumitem horizontal spacing parameters?

I am still struggling with enumitem. I don't understand the horizontal spacing parameters at all. I have indeed read the documentation, and numerous answers to numerous questions, but despite all that ...
1
vote
1answer
38 views

Indented paragraph next to a box

I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code: \documentclass[journal,...
0
votes
2answers
64 views

How to align several lists using the enumerate environment?

I'd like to align the left margin of these lists. This is what I get: This is what I want: MWE: \documentclass{article} \usepackage{enumitem} \begin{document} \quad \newline This is a list ...
0
votes
2answers
54 views

Customize itemize environment

Say \documentclass[french,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{kpfonts} \usepackage{blindtext} \setlength{\parskip}{1.2ex} \...
2
votes
1answer
75 views

Indentation of footnotes depending on number of digits in footnote marks on the same page

I wanted to adjust the left indentation of footnotes depending on the number of digits of the footnote mark. Thus, footnotes with one digit are aligned a the length of single \parindent (which is set ...
1
vote
1answer
35 views

Item automatically indenting to the left rather than the right?

When trying to use itemize, I was hoping it would give me the natural indent to the right and indent everything that I write within it. Instead its doing the opposite and indenting to the left. This ...
5
votes
3answers
321 views

lettrines, explicit linebreaks and hanging indents

I need to combine lettrines, explicit linebreaks and hanging indents for whatever chunk of text ends up being longer than one typeset line. For the sake of semiautomatic text-production I'd very much ...
7
votes
2answers
993 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 ...
2
votes
1answer
156 views

Indent Whole paragraphs after subsections

Basically, I need to indent paragraphs after a subsection as shown here: Basically, I need to indent the all the content after a subsection. I already have the proper formatting for the heading of ...
0
votes
0answers
15 views

Custom equation command produces not wanted indentation [duplicate]

I wrote this custom environment to save time when typing: \newenvironment{equations} {\begin{equation}\begin{aligned}} {\end{aligned}\end{equation}} However, it produces a strange ...
18
votes
1answer
4k views

Leading spaces are not preserved when pasting text

In TeXstudio, if I paste lines of text that contain leading spaces, they are altered automatically by the editor producing an undesirable layout. MWE: Copy the following snippet and paste it in the ...
3
votes
1answer
174 views

How to layout left margin and bullets using parskip

There is a fairly typical layout style in technical manual in which headings are numbered and left justified. The text then is indented about 1cm so that it appears as if there is a larger left ...
1
vote
2answers
128 views

Grid width not textwidth when using fillwithgrid (exam package)

When inserting space for answers by \fillwithdottedlines the resulting lines have the same width as textwidth. When using \fillwithgrid the resulting grid is smaller on both sides: \documentclass[...
5
votes
3answers
215 views

Change the indent structure of a paragraph

Is there way to change the indent structure of a specific paragraph like shown in the picture? All the paragraphs begin with indent and no indent afterwards but the third paragraph begins with no ...
5
votes
1answer
455 views

LaTeX Exam package: Align choices with oneparchoices [duplicate]

I'm a fairly new LaTeX user, so please excuse me if this is a simple newbie question. I am using the exam package to create, well, an exam. I use both the \choices and \oneparchoices environments and ...
0
votes
0answers
39 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
1answer
80 views

Titlesec package removes indents from section headers

For my text document with the book class I start each new chapter with an abstract. The format of this abstract section is designed such that the abstract header is indented with respect to the ...
1
vote
1answer
51 views

Aligned at the same margins acronym and listofsymbols

First of all, I know, that it would be much easier to use the glossaries package. However, maybe there is still a solution to my question. Here is a short MWE: \documentclass[ngerman]{article} \...
0
votes
0answers
106 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, ...
2
votes
1answer
138 views

indentation issues in algorithm2e with acmart

I am using algorithm2e package without any problem usually with "article" or some other document classes. But with acmart (sigconf) or elsevier's elsarticle styles, I am having the following ...
14
votes
4answers
36k views

Indenting lines of code in algorithm

I am writting algorithm which has two stages. How can I indent code for stage one and for stage two? \begin{algorithm}[H] \caption*{my algorithm} \begin{algorithmic} \STATE \textbf{Stage one:} ...
0
votes
0answers
57 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 ...
1
vote
1answer
242 views

How do I get indentation after automatic line break?

Some lines are too long to fit in its column and gets split into two. But to make it clear that it still one line, like in a song, I'd to have an indentation after the automatic line break. \...
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 ...
0
votes
1answer
64 views

Indent of paragraph at enumerate package

I'm confused to make this paragraph below using enumerate. Actually I don't know whether I could use the package or not. And I want this for certain paragraph only, but I have no idea to do it. I did ...
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
1answer
27 views

Defining my indentation environment

I define my indentation environment as follows: \newenvironment{myindentpar}[1]% {\begin{list}{}% {\setlength{\leftmargin}{#1}}% \item[]% } {\end{list}} Here is a minimal ...
0
votes
1answer
91 views

Independent paragraph indent

How can I indent a whole paragraph but omit the first word or words from indentation? Example: Preferrable solution: Abstract: \begin{adjustleftspacing}{2cm} \lipsum\[1-2] \end{...
2
votes
2answers
45 views

Indenting part numbers to the left

When I produce a table of contents in my latex document which is of the report type, with just the plain \tableofcontents command, I see the part numbers and chapter numbers are in the same column. I ...
1
vote
1answer
52 views

Indent of book TOC entries

I have tried several of the examples of TOC formatting that I found in this forum, using the titlesec package and \titlecontents{chapter} but I cannot get my book TOC chapter entries to indent ...
1
vote
1answer
38 views

Is it possible to manually indent a line while having \setlength\parindent{0pt} in the preamble in latex? If so, how?

I'm aware of using \noindent instead and using linebreaks to make indents. However, I'd prefer to manually make my own indentations if possible.
0
votes
1answer
74 views

Long chapter title with graphics: indentation and no hyphenation

I was already helped to obtain the chapter title formatting that I wanted in Chapter with graphical formatting Now I have the problem of chapters with a long title, whereby I get with this code \...
4
votes
2answers
120 views

Indent of members of a set in biblatex

Using a @set container (at least something similar but for this question a @set should do it) I get the following: Since this is a bit hard to read I would like to have this instead: Everything I ...
0
votes
0answers
61 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 ...
1
vote
2answers
132 views

beamer theme Madrid with biblatex style=authoryear leads to bibliography position offset (first line indentation)

I stumbled upon this, take a look: \documentclass{beamer} \begin{filecontents}{references.bib} @article{myart, author={Author, A.}, title={My Title}, journal={A Journal}, volume={123}, ...
1
vote
1answer
42 views

Hang rest of paragraph after specific point (or token)

Say I have some point in a sentence that I want the rest of the paragraph to hang after; result like this: PART / Long title that won't fit on one line that we want hanged after the slash on ...
2
votes
1answer
35 views

Can't figure out how to indent with the packages

I'm trying to write my personal statement, and I used some new packages to format it. I can't figure out why it won't let me indent the paragraphs. I've tried \par, \hspace, etc, but I've had no luck. ...
6
votes
1answer
2k views

how to set the left margin for all formulas in the text?

My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it ...
5
votes
1answer
205 views

Hangindent and justfied multiline text in single cell of table

I have quite a lot of text that I want to format in a readable manner in a single cell of a table, so I want to use hangindents. But in addition to that I want to make the text justified, but this is ...
1
vote
1answer
50 views

Add indentation to subsection for RTL table of content on beamer

Based on this answer here "RTL table of content on beamer" I would like to add indentation to \subsection % !TeX TS-program = xelatex \documentclass{beamer} \useinnertheme[shadow=true]{rounded} \...
1
vote
2answers
794 views

Remove indentation in table of contents

I want remove the space in my table of contents of \section, \subsection and \subsubsection. This is my code: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{imakeidx} \makeindex[...
1
vote
1answer
65 views

Hangindent in Custom Environment created with tcolorbox's many Option

I wish I could be more specific, but being that I don't understand all of the underlying stuff that's happening, my question will have to be vague (hence the awkward title, I'll edit it to be more ...
1
vote
3answers
66 views

indent of a list to the left

so my previous question got answered pretty well however I have some issues. I want to move the following list to the left(minor indent): Let $G$ be a group, and let $G = \mathbb{Z}_5 = \{0,1,2,3,4\}$...
9
votes
2answers
429 views

Indentation issues with highlighting cell using tikzmarkin

I am trying to eliminate offset/indentation issues when using tikzmarkin to highlight regions of a table. \documentclass{beamer} \RequirePackage{booktabs,colortbl,caption,tabularx,chngcntr, tikz, ...