We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
1answer
57 views

enumerate is not indenting correctly

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{enumerate} \begin{document} \begin{enumerate}[i] \item $|\langle v, w \rangle| \leq \norm{v} \norm{w}$ \item \norm{v + w} \leq \...
1
vote
0answers
69 views

How to make sure the lines don't start with some space? [duplicate]

I am formatting a document in LaTeX. I have the following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \...
7
votes
1answer
1k views

Is there a default / official / standard Vim indentation file for TeX, or just best practices for TeX source indentation?

If you see here, the author mentions an "official version" of an indentation script from Johannes Zellner. The link is broken and while there are traces of Zellner all over the interwebs, I can't find ...
1
vote
1answer
407 views

Indenting multi-line sentences

For example, in the actual .tex file, I'd like sentences like this: Due to this, some reasonable conclusion. Next sentence. To be formatted like this: Due to this, some reasonable conclusion. ...
2
votes
1answer
40 views

Misalignement and interword spacing with mono font

I'm making a document with XeLaTeX and I would like to use a mono TTF font (Liberation Mono) and a special (reversed) indentation for my paragraphs. I don't understand some things about words spacing ...
0
votes
1answer
55 views

exam: How to add a vertical skip to the question head and remove its body indentation?

For the following MWE, \documentclass[addpoints]{exam} \begin{document} \setlength{\parindent}{0pt} \qformat{\textbf{\underline{Question (\thequestion) [\totalpoints\ Marks]}}\hfill} \...
2
votes
1answer
111 views

Indent unnumbered chapter in TOC with multitoc (in presence of tocstyle)

I'm having a problem mixing multitoc with tocstyle. What I want is my unnumbered chapters in the TOC to be indented (in this case \addchap{Introduction}). I figured out that \usepackage[...
1
vote
1answer
44 views

Custom enumerate margin

I would like to use the enumerate environment in such a way that all the text in the listed items is fully aligned to the left, in such a way that labels are aligned to the left, and aligned to the ...
0
votes
1answer
418 views

How to center and indent a particular paragraph in LaTex?

I just want to centre and indent a particular paragraph. Everything else shall stay the same? How can I do this in LaTex?
6
votes
1answer
782 views

Beamer: Indenting code inside a frame

I use TexMaker. With the preamble that I have been using, I am able to get the indentation right for programs when used in a article, report, etc. But when I use the same structure within a frame in ...
0
votes
1answer
92 views

How would you typeset the following

\documentclass[12pt]{article} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{enumerate} \newenvironment*{exercise}{} \newcommand{\R}{\mathbb{R}} \begin{document} \begin{exercise}{1.10.} ...
1
vote
1answer
295 views

How to remove minted indentation level with correct latex indentation?

When writing with minted code snippets I dislike to remove indentation in latex source, so correct results are generated. Is there a way to substract latex indentation-level from minted indentation? I ...
1
vote
0answers
32 views

flushleft by using gb4e.sty [duplicate]

My tags are follows: \documentclass{book} \usepackage{showframe} \usepackage{gb4e,qtree,skull} \begin{document} \begin{exe} \ex\emph{Superiority-obeying and Superiority-violating multiple \emph{...
7
votes
2answers
2k views

How to indent subsection in AMS TOC

I used AMS LaTeX template with gsm-l package to write my teacher's book. The table of content that produced has the following form: in which 1, 2, 3.... are sections and 3.1, 3.2, 4.1, 4.2,.... are ...
0
votes
0answers
36 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 ...
2
votes
2answers
480 views

Indent paragraph both on the left and right without any external packages

I am following the AAAI 19 Template from https://aaai.org/Conferences/AAAI-19/aaai19call/ where a text abstract is supposed to be formatted in a way that it is indented 10pt to the left and 10pt to ...
0
votes
1answer
76 views

Is there a way to have a constant space between the (sub)section number and the heading in the ToC

I have a document which unfortunately has a section 10.13 and a subsection 10.13.1 and I'm sure there will be many other such examples. Unfortunately, this makes for an extremely ugly table of ...
6
votes
1answer
169 views

\textit causing problems when used with enumerate

I use enumerate for making a list. The first sentence of an item should be italic. Unfortunately the first capital letter (item b) and c)) looks wrong. It looks as if it is indented. Has anyone a ...
0
votes
2answers
130 views

Toc: subsection title of first line is not aligned with its second line

My subsection title continues in the 2nd line with an indent in the beginning. I want it to be aligned with the first line of the subsection title. Any suggestions? Solution should not contain \...
1
vote
2answers
352 views

indentation for nested lists and short labels with enumitem

I am trying to have a nested list with a label, using the enumitem package with the "shortlabels" option. But when I add the label "Note" to the list items, the indentation is aligned with the number ...
1
vote
0answers
76 views

Command using lettrine affects all paragraphs [closed]

I'm completely new to LaTeX. I found a template and it creates a command using the lettrine package: %An initial of the very first character of the content \usepackage{lettrine} \newcommand{\initial}[...
2
votes
1answer
176 views

\lstlistoflistings remove indent in \documentclass{article}

In my \documentclass[12pt,a4paper,oneside]{article} I want to remove the indent of \lstlistoflistings. There is a possibility like in the following to remove the indent for LOF and LOT. Is there ...
3
votes
4answers
140 views

Remove indent of first item without producing empty line

I would like to add keywords to my article. I used \renewcommand{\abstractname}{Keywords} to create the environment in style of the abstract. If I now add keywords using \itemize, the first item will ...
3
votes
2answers
255 views

Add more indent of section and subsection in table of contents

I want to add more indent of section and subsection in table of contents, align with the name of the chapter, into this This is my code \documentclass[a5paper,11pt]{book} \usepackage{newtxtext,...
1
vote
2answers
449 views

How to make special indents for a block of text

This is what I need: Headline First item in list continuation of description of first item if first line gets full second item on list continuation of description of item 2 ...
39
votes
5answers
41k views

Include a line break in algorithmic while maintaining indentation

I have this code: \DeclareCaptionFormat{algor}{% \hrulefill\par\offinterlineskip\vskip1pt% \textbf{#1#2}#3\offinterlineskip\hrulefill} \DeclareCaptionStyle{algori}{singlelinecheck=off,format=...
1
vote
1answer
309 views

Indentation & Glossary

I am working on a book and I want to include a glossary at the end of it. I face a couple of issues: It seems that the glossary has a left margin (see the distance compared to the "Glossary" title). ...
2
votes
1answer
89 views

Change indent of section* in cls file

I am using a custom latex class (https://github.com/quantum-journal/quantum-journal/blob/master/quantumarticle.cls). Using this class, the titles of unnumbered sections are indented slightly. However, ...
5
votes
2answers
365 views

How to remove the indentation after the optimization problem

\documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{optidef} \begin{document} \title{Title} \author{ \IEEEauthorblockN{Author} } \maketitle \section{Test} The ...
1
vote
1answer
388 views

Section and text left indentation

My MWE: \documentclass[a4paper,12pt]{article} \usepackage{showframe} \usepackage{lipsum} \usepackage{geometry} \geometry{paper=a4paper} \geometry{bindingoffset=1.5cm,hmargin={1.5cm,1....
1
vote
1answer
88 views

Indenting paragraphs within a custom theorem environment

Issue: In my custom theorem environment I would like the beginning line of a new paragraph within the theorem environment to immediately follow the line above it and also be indented: MWE: \...
0
votes
1answer
76 views

Set subsection (Level 3) indentation to 0.5 inches from left margin

I am using the following class to type my thesis: https://interval.louisiana.edu/thesis-class/ULL-thesis-class-explanation.html What edits should I make to the class to fix the indentation problem? In ...
1
vote
1answer
69 views

Indent texts within an enumerated list

What I want to is to get is the sentence Next follows Items 3 to 6, to be indented not with the enumerated list itself but with the normal indentation. Appreciate any suggestions. \documentclass{...
2
votes
2answers
428 views

Change amount of hanging indentation in reference list

I want hanging indentation, by half an inch, in the References section. That is, apart from the first line, subsequent lines for each entry should start at 0.5 inch from the left. My MWE consists of ...
1
vote
0answers
34 views

Indenting and justifying a paragraph [duplicate]

I would like to force the justification (after a \raggedright command) of a paragraph while also having it indented. I tried the following commands but this doesn't seem to work (only the first line ...
1
vote
1answer
221 views

KOMA Script tocstyle tocline, no indent on second line of large entry

How do I un-indent the second line of a large entry in the table of contents with tocstyle tocline on the KOMA Script class scrartcl? I found the same question here: ToC: How to no-indent the second ...
5
votes
1answer
140 views

How can I force `intertext` command to retain the default indentation in `align` enrironment?

intertext command seems to remove the indentation. Is there a way to get the normal indentation while in math mode? \documentclass[11pt, a4paper]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb, ...
2
votes
2answers
108 views

Indentation in package exercisebank

In using the package exercisebank, is it possible for "Exercise" header, "intro" material and "problem" numbers to start at the same column of the text? For example, the package prints Exersise 1 ...
0
votes
2answers
60 views

Indenting individual elements in ToC

Sorry if this seems blatant and obvious, but I'm only beginning my adventure with LaTeX and I've run into a problem to which I cannot find a solution even among the existing questions. I need first ...
2
votes
2answers
116 views

Graphic tree-like symbols in text

Just dont know how to properly form the question... perhaps it's easiest to show it in a picture.. I have a simple table: \begin{table}[] \centering \begin{tabular}{ll} 1 & Test1 \\ 2 & \...
0
votes
1answer
59 views

Indentation in ntheorem with inserted picture

My question is additional to Wrapping about of a tikzpicture placed between two theorem-environments. As one can see from CTAN:Text flow, the method of wrapping figure inside theorem-like (lists,...) ...
0
votes
1answer
258 views

Curve rubric entry with hanging indentation

I was trying to get a hanging indentation, so an indentation from second line. There are multiple answers for how to achieve this in general texts or lists. But I could not transfer them to the curve ...
55
votes
2answers
35k views

Changing left margin in itemize environment of beamer class

I can't figure out how to line up the symbols of an itemize environment in beamer with the left part of the main text. In other words, I would like to supress the left margin in beamer itemize lists. ...
1
vote
1answer
76 views

Text disappearing off page?

I am trying to put some items into a numbered list, and I know that to do this, I need to use the enumerate environment. However, when I do this with the following code, the text within the list ...
5
votes
1answer
5k views

Indentation inside a new environment

I want to have my text lines in a new environment indented from the left, as happens within \begin{minipage}{...} \end{minipage} The reason not to use a minipage inside the environment definition is ...
36
votes
5answers
46k views

How to limit the figure caption width?

Figure captions seem to wrap at the page width. How could I make them wrap at the figure width instead? Currently, they can easily be mistaken for normal text. \begin{figure}[!htb] \begin{center ...
0
votes
2answers
79 views

Avoiding indent after \maketitle in twocolumn article

How can I automatically avoid the indent in the first paragraph of a twocolumn article.cls document with a title? Note that the document I am writing has a custom \@maketitle. For example: \...
2
votes
3answers
76 views

How to add indent in non-numbered section of the table of content?

I'm using \setcounter{secnumdepth}{0} to show sections without any number. It works as expected, but I'd like to have some indentation to align the begin of the text. \documentclass{article} \...
1
vote
1answer
502 views

Indentation in algorithmic package when having multiple lines

I'm using algorithmic package and I've got this code: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithmic}[1] \Function {BalanceCascade}{} \...
3
votes
1answer
101 views

Bibliography from second line on aligned left with no indent

I would like to have my bibliography printed from the second line on aligned left so the text is in the the normal margin restriction, like here: The solution here provides only a very complicated ...