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
3 votes
1 answer
143 views

Automatically Indent the Last Line of a Statement a Prescribed Amount

Consider the code, \documentclass[12pt]{book} \begin{document} \thispagestyle{empty} \large \noindent\textbf{How to Automatically Indent the Second Line of This Statement a Prescribed Amount---Say ...
mlchristians's user avatar
  • 7,756
1 vote
1 answer
40 views

Indent all but first line of text in Bibliography section

I am writing a review in Latex and I'm writing the references directly into the Bibliography section in the main.tex file without using BibTex or bibitems or anything like that. I want to indent all ...
Violet's user avatar
  • 13
0 votes
0 answers
10 views

How to disable only the question indentation and keep the parts and subparts indentation

I've been using the Exam package for my answering my problem sets, that's going good. The exam package indents all the questions for some reason, because my document is only questions, it makes the ...
LaTeXJunkie's user avatar
3 votes
1 answer
61 views

Do the \parindent and \noindent cancel each other out?

I was reading through the \maketitle command provided by the default article.cls class and it has the following code: \newcommand\maketitle{\par \begingroup \renewcommand\thefootnote{\@...
Nathaniel Boynick's user avatar
4 votes
1 answer
101 views

Remove indent of paragraph after question in exam document class

I'd like to remove the indentation that appears before the question content. \documentclass[addpoints]{exam} \pointname{\ p} \qformat{\textbf{Question \thequestion .} \hfill \textsl{(\thepoints)}} \...
Michał Szymankiewicz's user avatar
1 vote
1 answer
43 views

Indentation in align* when using &=

\begin{align*} \text{Assume for all i = 0, 1, ..., k, }\mathbb{P}(A_i\mid B) < \mathbb{P}(A_i)\\ \text{Then, }\mathbb{P}(\Omega\mid B) &= \mathbb{P}(\bigcup_{i=1}^kA_i\mid B) \end{align*...
yoshino's user avatar
  • 11
0 votes
0 answers
48 views

Unwanted indentation in framed section headings in LaTex Exam

I'm writing a document using Latex's Exam class where I'd like to make framed section headings, in order to reproduce a pre-existent document. I was able to draw frames with titlesec package with the ...
Paulo Santiago's user avatar
3 votes
3 answers
120 views

Individually indent wrapped lines of lines broken with \\

I have long lines like this: Saint Gabriel, who didst foretell to Zachary the birth and ministry of John the Baptist, \\ Saint Gabriel, who didst announce to Blessed Mary the Incarnation of the Divine ...
Geremia's user avatar
  • 2,141
0 votes
0 answers
29 views

R Markdown thesisdown fix(?) indentation

Using thesisdown to write my Masterthesis I was wondering about the default indentations of the package: If you check the pictures below, all the pages (of the default 'knitted' thesisdown rmd-files) ...
5ilver4rrow's user avatar
0 votes
0 answers
32 views

Marginnote causing unwanted indent [duplicate]

I am writing an exam and am using the following code to insert the marks for the question on the right in the margin. \newcommand{\mrks}[1]{ \marginnote{\textbf{#1}}[0em] \ignorespaces } When ...
kwilliamson's user avatar
2 votes
1 answer
49 views

Dramatist package: Reduce left indent before verse / speaker's lines

I want to move the lines spoken by the characters to the left like indicated in the image. Minmal working example: \documentclass[12pt, a5paper, twoside, ngerman]{scrbook} \usepackage[autostyle=true, ...
qwesix's user avatar
  • 25
1 vote
0 answers
28 views

Why is tcolorbox preventing noindentafter from working properly?

I just discovered that the tcolorbox package prevents noindentafter from doing its job: \documentclass[12pt,a4paper]{report} \usepackage{noindentafter} \NoIndentAfterEnv{verbatim} \usepackage{...
sidyll's user avatar
  • 285
4 votes
1 answer
142 views

How can I set the length of the indentation in the novel document class?

I use the novel package to typeset a novel for print, and I am really pleased by the beautiful, clean output with grid typesetting. Thanks, @rallg, for creating this package! However, the standard ...
Eaglechild's user avatar
1 vote
1 answer
40 views

Unwanted indent in multicolumn xltabular, incompatible packages?

Update : the problem has been solved by adding \shorthandoff{:} before and \shorthandon{:} after the xltabular environment (thank you Jasper). The issue was caused because of the use uf the french ...
Marck's user avatar
  • 147
1 vote
1 answer
31 views

Force indenting at beginning of theorem environment

When I do my math homework, I use a theorem environment with custom theorem style via the amsthm package to enumerate my problems. I would like the first paragraph inside the theorem environment to be ...
August's user avatar
  • 23
0 votes
1 answer
34 views

How to no identing the first line with paracol + verse

How can I get the first verse of poems without indentation? As you can see in my MWE, I successfully changed the left margin for every verse, except the first one in the first column. I tried \hspace ...
nino_user183677's user avatar
3 votes
1 answer
302 views

Tell LaTeX not to indent the next paragraph after my command

When using LaTeX for note-taking, I like to separate topics with a horizontal line. However, I'd prefer it if the first paragraph after the line wasn't indented, similarly to the start of a new ...
N. Virgo's user avatar
  • 4,177
1 vote
1 answer
36 views

How to manually (further) indent an `if` statement in `algorithm`

For example, I would like to further indent an if-then-else block like is done in this question. \documentclass{article} \usepackage{algpseudocode} \usepackage{algorithm} \begin{document} \begin{...
rrrrr's user avatar
  • 491
1 vote
1 answer
27 views

Strange Indentation after inserting images [duplicate]

I'm working on my thesis (I have no previous knowledge about Latex), I noticed that after inserting images, something weird is going on with the indentation. I don't know how to upload the Latex code, ...
bl4nk's user avatar
  • 113
3 votes
2 answers
72 views

How can I get my margin notes to indent themselves into the text, shifting the text over?

I'm looking for my outer margin notes to be pushed into the text, and the text to flow around them, like the picture below: I'm using scrbook, and I still want to margin notes to have the same ...
ArneHeiko612's user avatar
1 vote
2 answers
86 views

Why is indentation for scrjura different for each paragraph?

I am trying to set up a contract with scrjura. Somehow the indentation seems to be different for the start of each paragraph. Why? \documentclass[fontsize=11pt,parskip=half] {scrartcl} \...
mrCarnivore's user avatar
  • 1,367
0 votes
0 answers
38 views

Beautifier for auto indentation of tex source files [duplicate]

Is there any software that can beautify tex files with proper indentation and spaces? Something like C beautifier for C programs. Thanks, Prashant
Prashant's user avatar
0 votes
0 answers
22 views

Contact info in a scientific paper

I'm writing a scientific paper and I came to the last part of it which is listing the info and contact info of the authors. I wrote the following code: \begin{enumerate} \item[{}] \textsc{ Yasser ...
Hussein Eid's user avatar
1 vote
0 answers
138 views

Accessing paragraph indent in ConTeXt: \parindent?

In ConTeXt, how do I access the value of the paragraph indent? With LaTeX, I can use \parindent and it seems to work also with ConTeXt, but from the ConTeXt Garden's entry on indentation I get the ...
Fredrik P's user avatar
  • 1,154
1 vote
1 answer
65 views

Unwanted indentation when using tcolorbox [duplicate]

When I create boxes with tcolorbox, I get an unwanted indentation in two places: once directly before the heading and secondly in place of the first paragraph (all the following paragraphs have no ...
ntasosof's user avatar
2 votes
1 answer
43 views

How to keep lists indented in proof environment?

I have the following proof environment: \begin{proof} \leavevmode \begin{enumerate} \item[Case 1:] $3\mid n$. Then $n=3k$ for some integer $k$. Thus $n^2 = 9k^2 = 3(3k^2)$, and so $3\mid n^2$. ...
Mailbox's user avatar
  • 239
0 votes
0 answers
32 views

How do I start a text from a certain distance from the right margin in the same line?

I'm trying to put together the title page for my thesis and the university has the instruction to have basically two columns of text at the bottom of the title page. Left column has to have a 4cm ...
GRacz's user avatar
  • 1
3 votes
1 answer
103 views

How to create a fixed indent?

I'm trying to convert my CV from word to tex. The attached image shows the general layout, which I can't figure out how to mimic with LaTeX. On the left margin is a year (e.g. 2023) and then that ...
Nick Wogan's user avatar
1 vote
2 answers
53 views

indentation problem in self defined environment

I have defined an environment called exercise as follows: \newcounter{exercise} \NewDocumentEnvironment{exercise}{o +b}% {% \IfNoValueTF{#1} {\stepcounter{exercise}} ...
Stephen's user avatar
  • 2,558
1 vote
0 answers
38 views

Negative indentation of chapter and section titles [duplicate]

I would like to align chapter, section, subsection etc. titles as I have done in the table of contents: \documentclass{scrreprt} \RedeclareSectionCommands[ tocindent=-2cm, tocnumwidth=2cm]{...
PLY's user avatar
  • 149
0 votes
1 answer
36 views

Titlesec package is indenting space for \chapter listing in Contents

I am using both the titletoc and titlesec packages to format my chapters. I am using a special font and the following command: \usepackage{titletoc} \usepackage{titlesec} \usepackage{anyfontsize} \...
Felipe Dilho's user avatar
2 votes
2 answers
41 views

customising second line indent

\documentclass[12pt, a4paper]{article} %\pagestyle{plain} %\usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry} %\usepackage[parfill]{parskip} %\setlength\parindent{0pt} % Removes ...
ankscorek's user avatar
2 votes
1 answer
56 views

How to indent enumerate in beamer

Hi i ask beacuse the previuos questions are 10 year old and non of comments are working for me, i want to change the indent as it actually look to much to the left in reference to the paragraph The ...
Francisca Aguayo's user avatar
0 votes
0 answers
30 views

Indent for individual section of references [duplicate]

do anyone know how to get indent on only on section in LaTeX. Like this in word: I only want it for my references at the end without having to make a bibliography. \begin{document} \section{...
millahjallar's user avatar
1 vote
0 answers
136 views

How do I "straighten" the latex out?

The picture seen below is essentially what happens to me when I compile 1 long line of latex inside a latex box in LyX- it "clusters" up on top of the original line instead of spreading out ...
Welt Rene's user avatar
0 votes
0 answers
36 views

How to get the Chapter names of Table of contents in Running Text (first letter capital and remaining in small letters) [duplicate]

I am customizing my table of contents style. The title of TOC should be CONTENTS (underlined and in the center). The headings of TOC have to be CHAPTER SUBJECT and PAGE NO like: I am unable to adjust ...
Sage Khan's user avatar
0 votes
2 answers
90 views

Enumitem identation issue

\documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage{enumitem} \setlist{topsep=1cm} \begin{document} \lipsum[66] \begin{itemize} \item[\textbf{(P1)}:] \end{itemize} \end{document}...
jfk's user avatar
  • 101
2 votes
1 answer
78 views

Confusion about \@afterheading, \@afterindentfalse and paragraphs inside other environments

I am a package author writing a package for my company. I am trying to provide theorem-like environments using amsthm for easy use. I need to find a way to realize the following behaviour: If content ...
marc's user avatar
  • 576
0 votes
1 answer
37 views

Different indentation sizes

I am writing something in the MLA style and I need to use quotations. My professor requires the indentation of the quotations to be 35 pt which I can do. But I want to make my paragraph indentations ...
Berkin Kirbiyik's user avatar
0 votes
0 answers
67 views

How can I give indent to a paragraph in latex?

Writing an essay in Latex, but can not set indentation for whole paragraph.
Shubham Mamgain's user avatar
0 votes
1 answer
29 views

How to remove/disable paragraph indentation inside a forest node?

I tried all the tricks I know about. \usepackage{parskip} and \setlength{\parindent}{0pt} and \noindent but none are working inside a forest node. Here is MWE \documentclass[crop,tikz]{standalone} \...
Nasser's user avatar
  • 20.1k
1 vote
1 answer
79 views

Paragraphs no longer indent after caption

[Rewritten the original post. For the later update see below.] It seems that my paragraphs stop indenting due to the use of \captionof{figure} in the code below. Any suggestions for a workaround or ...
user8463's user avatar
0 votes
0 answers
41 views

How can we change the indent of a particular paragraph?

https://www.overleaf.com/project/6404a10f7700cdef79536dd4 How can I indent a particular paragraph to right according to my choice to match with the next paragraphs? In my case, the indent ...
Maynak's user avatar
  • 1
1 vote
1 answer
38 views

Line-by-line indentation control with memoir class

I'm having trouble controlling the indentation of individual lines while maintaining hanging indentation at each level. It's a bit hard for me to describe so I think it'll be clearest with a picture: ...
David Duhon's user avatar
1 vote
1 answer
28 views

@for loop variable name printed instead of contents in tabbing environment

I'm trying to automatically generate some indented lines using the tabbing environment and a @for loop. For some reason, this results in the for loop printing the name of the iteration variable over ...
Svalorzen's user avatar
  • 286
2 votes
2 answers
55 views

Remove space before item in table of figures and other listofs

I am looking to remove the space before each item in listoffigures, listoftables, etc. Here is what I want to do : Here is my MWE : \documentclass[11pt, a4paper, dvipsnames, openany, twoside]{book} %...
Dorian's user avatar
  • 63
2 votes
0 answers
28 views

Typesetting Chiasmus or structured, indented text

I need to typeset a chiastic structure. Here is a simple example: The important parts are: Identification of the part of the structure, i.e., A or A' The text itself Consistent spacing between ...
jlconlin's user avatar
  • 10k
3 votes
3 answers
100 views

Numeration layout

How can I create a numeration with the following Layout: \TAB \TAB Description \TAB a) \TAB Description \TAB b) \TAB Description (see screenshot) Basically, I want to create a list and sublist ...
Samuel's user avatar
  • 43
2 votes
1 answer
61 views

How to indent a text block in Context, either Nested or with Multiple Levels?

Using Context, I want to be able to indent text blocks from the left, and which go all the way to the normal right margin. It looks like a context equivalent of using adjustwidth from the Latex ...
Sean Dalton's user avatar
2 votes
1 answer
162 views

hspace not working in tabular environment

I have the following code in LaTeX. \begin{tabular}{ >{\centering\arraybackslash} m{2cm} | >{\arraybackslash} m{10cm} } some text & text1 \newline text2 \newline ...
Uri Toti's user avatar
  • 155

1
2 3 4 5
40