Why does indent disappear in lists?Enumerate and itemize undefined + captions not workingNumbered, hanging paragraph without list environmentName of length for equation number indent if [leqno] is setIndicating the beginning of a paragraph with a ¶ just inside the marginControlling indentation document-wideI want to set first paragraph of text environment to no indentationSupressing indent on the following paragraphDefining a list with label unindented and item indentedIndent in itemize/enumerate with different width for body and for itemcross-referencing two long lists; general recommendations?
Poor management handling of recent sickness and how to approach my return?
What quests do you need to stop at before you make an enemy of a faction for each faction?
Statistical closeness implies computational indistinguishability
Is mountain bike good for long distances?
Round away from zero
Why did Tony's Arc Reactor do this?
Let A,B,C be sets. If A△B=A△C, does this imply that B=C?
"syntax error near unexpected token" after editing .bashrc
Male viewpoint in an erotic novel
Do disc brake rims ever need to be replaced?
Are fast interviews red flags?
Was Rosie the Riveter sourced from a Michelangelo painting?
Should I use "with" or "as" in place of X in "The derivative can be approximated X a finite-difference scheme"?
How to interpret or parse this confusing 'NOT' and 'AND' legal clause
Project Euler problem #112
Filling attribute tables with values from the same attribute table
How can electricity be positive when electrons are negative?
Why has Marx's "Das Kapital" been translated to "Capital" in English and not "The Capital"
Why is Sojdlg123aljg a common password?
If every star in the universe except the Sun were destroyed, would we die?
Fantasy Military Arms and Armor: the Dwarven Grand Armory
Should I tip on the Amtrak train?
Why did Boris Johnson call for new elections?
Why are UK MPs allowed to abstain (but it counts as a no)?
Why does indent disappear in lists?
Enumerate and itemize undefined + captions not workingNumbered, hanging paragraph without list environmentName of length for equation number indent if [leqno] is setIndicating the beginning of a paragraph with a ¶ just inside the marginControlling indentation document-wideI want to set first paragraph of text environment to no indentationSupressing indent on the following paragraphDefining a list with label unindented and item indentedIndent in itemize/enumerate with different width for body and for itemcross-referencing two long lists; general recommendations?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Consider this small document:
documentclassarticle
usepackageblindtext
begindocument
blindtext
blindtext
beginenumerate
item%
blindtext
blindtext
endenumerate
enddocument
This has two paragraphs outside a list environment, and two paragraphs inside a list environment. I've noticed in this situation that paragraphs outside lists have their first line indented, whereas paragraphs inside lists do not have any indent:
Why does this occur? Can I restore the indentation inside a list?
EDIT: I notice that in lists, by default paragraphs are separated by blank lines. Preferably a solution should also get rid of that. (For context, I'm writing up a solution to an assignment, and nearly every paragraph is inside an enumerate
or similar.)
lists indentation paragraphs
add a comment |
Consider this small document:
documentclassarticle
usepackageblindtext
begindocument
blindtext
blindtext
beginenumerate
item%
blindtext
blindtext
endenumerate
enddocument
This has two paragraphs outside a list environment, and two paragraphs inside a list environment. I've noticed in this situation that paragraphs outside lists have their first line indented, whereas paragraphs inside lists do not have any indent:
Why does this occur? Can I restore the indentation inside a list?
EDIT: I notice that in lists, by default paragraphs are separated by blank lines. Preferably a solution should also get rid of that. (For context, I'm writing up a solution to an assignment, and nearly every paragraph is inside an enumerate
or similar.)
lists indentation paragraphs
2
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23
add a comment |
Consider this small document:
documentclassarticle
usepackageblindtext
begindocument
blindtext
blindtext
beginenumerate
item%
blindtext
blindtext
endenumerate
enddocument
This has two paragraphs outside a list environment, and two paragraphs inside a list environment. I've noticed in this situation that paragraphs outside lists have their first line indented, whereas paragraphs inside lists do not have any indent:
Why does this occur? Can I restore the indentation inside a list?
EDIT: I notice that in lists, by default paragraphs are separated by blank lines. Preferably a solution should also get rid of that. (For context, I'm writing up a solution to an assignment, and nearly every paragraph is inside an enumerate
or similar.)
lists indentation paragraphs
Consider this small document:
documentclassarticle
usepackageblindtext
begindocument
blindtext
blindtext
beginenumerate
item%
blindtext
blindtext
endenumerate
enddocument
This has two paragraphs outside a list environment, and two paragraphs inside a list environment. I've noticed in this situation that paragraphs outside lists have their first line indented, whereas paragraphs inside lists do not have any indent:
Why does this occur? Can I restore the indentation inside a list?
EDIT: I notice that in lists, by default paragraphs are separated by blank lines. Preferably a solution should also get rid of that. (For context, I'm writing up a solution to an assignment, and nearly every paragraph is inside an enumerate
or similar.)
lists indentation paragraphs
lists indentation paragraphs
edited Mar 28 at 1:00
bradrn
asked Mar 28 at 0:31
bradrnbradrn
1181 silver badge6 bronze badges
1181 silver badge6 bronze badges
2
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23
add a comment |
2
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23
2
2
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23
add a comment |
2 Answers
2
active
oldest
votes
item
properties can be formatted with enumitem
. Then you can use listparindent
for enumerate
environment:
documentclassarticle
usepackageblindtext
usepackageenumitem
setlist[enumerate]parsep=0pt
begindocument
blindtext
blindtext
beginenumerate[listparindent=1.5em]
item
blindtext
blindtext
endenumerate
enddocument
EDIT: Thanks to @David, you can also set parsep
to 0
if you want to get rid of that space.
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIKenumerate
is kind of old andenumitem
gives you more advantage and options comparing to list environments such asitemize
andenumerate
. However my understanding isenumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.
– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like thisvspace-0.1cm
after the paragraph. But it's not the best solution of course.
– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space isparsep
(orparsep
in the enumitem interface) so you can set that to 0pt
– David Carlisle
Mar 28 at 1:26
1
@MajidAbdolshah In my 'real' code, I'm already usingenumitem
.
– bradrn
Mar 28 at 1:27
|
show 1 more comment
The reason for this behaviour is that inside enumerate
the length parindent
is set to zero. So you can not use a simple indent
as usual in normal text to get the space of parindent
set.
You can simulate the ususal behaviour in normal text with the following code (See <=====
for important code):
documentclassarticle
usepackageblindtext
usepackageenumitem % <===============================================
newlengthenumerateparindent % <=====================================
begindocument
setlengthenumerateparindentparindent % <=========================
blindtext
blindtext
beginenumerate
setlengthparindentenumerateparindent % <=========================
%showparindent
%valueparindent
item%
blindtext
blindtext
endenumerate
Version 2:
beginenumerate[listparindent=enumerateparindent] % <================
item%
blindtext
blindtext
endenumerate
enddocument
and the wished result:
Please see that setlengthparindentenumerateparindent
does only work in that enumerate
list you placed the command inside ...
If you are already using package enumitem
-- as mentioned in an comment -- you can use it to use the same indent defined in parindent
with version 2 in my mwe.
The you get the resulting version 2:
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481815%2fwhy-does-indent-disappear-in-lists%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
item
properties can be formatted with enumitem
. Then you can use listparindent
for enumerate
environment:
documentclassarticle
usepackageblindtext
usepackageenumitem
setlist[enumerate]parsep=0pt
begindocument
blindtext
blindtext
beginenumerate[listparindent=1.5em]
item
blindtext
blindtext
endenumerate
enddocument
EDIT: Thanks to @David, you can also set parsep
to 0
if you want to get rid of that space.
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIKenumerate
is kind of old andenumitem
gives you more advantage and options comparing to list environments such asitemize
andenumerate
. However my understanding isenumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.
– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like thisvspace-0.1cm
after the paragraph. But it's not the best solution of course.
– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space isparsep
(orparsep
in the enumitem interface) so you can set that to 0pt
– David Carlisle
Mar 28 at 1:26
1
@MajidAbdolshah In my 'real' code, I'm already usingenumitem
.
– bradrn
Mar 28 at 1:27
|
show 1 more comment
item
properties can be formatted with enumitem
. Then you can use listparindent
for enumerate
environment:
documentclassarticle
usepackageblindtext
usepackageenumitem
setlist[enumerate]parsep=0pt
begindocument
blindtext
blindtext
beginenumerate[listparindent=1.5em]
item
blindtext
blindtext
endenumerate
enddocument
EDIT: Thanks to @David, you can also set parsep
to 0
if you want to get rid of that space.
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIKenumerate
is kind of old andenumitem
gives you more advantage and options comparing to list environments such asitemize
andenumerate
. However my understanding isenumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.
– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like thisvspace-0.1cm
after the paragraph. But it's not the best solution of course.
– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space isparsep
(orparsep
in the enumitem interface) so you can set that to 0pt
– David Carlisle
Mar 28 at 1:26
1
@MajidAbdolshah In my 'real' code, I'm already usingenumitem
.
– bradrn
Mar 28 at 1:27
|
show 1 more comment
item
properties can be formatted with enumitem
. Then you can use listparindent
for enumerate
environment:
documentclassarticle
usepackageblindtext
usepackageenumitem
setlist[enumerate]parsep=0pt
begindocument
blindtext
blindtext
beginenumerate[listparindent=1.5em]
item
blindtext
blindtext
endenumerate
enddocument
EDIT: Thanks to @David, you can also set parsep
to 0
if you want to get rid of that space.
item
properties can be formatted with enumitem
. Then you can use listparindent
for enumerate
environment:
documentclassarticle
usepackageblindtext
usepackageenumitem
setlist[enumerate]parsep=0pt
begindocument
blindtext
blindtext
beginenumerate[listparindent=1.5em]
item
blindtext
blindtext
endenumerate
enddocument
EDIT: Thanks to @David, you can also set parsep
to 0
if you want to get rid of that space.
edited Mar 28 at 1:35
answered Mar 28 at 0:50
Majid AbdolshahMajid Abdolshah
7633 silver badges8 bronze badges
7633 silver badges8 bronze badges
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIKenumerate
is kind of old andenumitem
gives you more advantage and options comparing to list environments such asitemize
andenumerate
. However my understanding isenumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.
– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like thisvspace-0.1cm
after the paragraph. But it's not the best solution of course.
– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space isparsep
(orparsep
in the enumitem interface) so you can set that to 0pt
– David Carlisle
Mar 28 at 1:26
1
@MajidAbdolshah In my 'real' code, I'm already usingenumitem
.
– bradrn
Mar 28 at 1:27
|
show 1 more comment
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIKenumerate
is kind of old andenumitem
gives you more advantage and options comparing to list environments such asitemize
andenumerate
. However my understanding isenumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.
– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like thisvspace-0.1cm
after the paragraph. But it's not the best solution of course.
– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space isparsep
(orparsep
in the enumitem interface) so you can set that to 0pt
– David Carlisle
Mar 28 at 1:26
1
@MajidAbdolshah In my 'real' code, I'm already usingenumitem
.
– bradrn
Mar 28 at 1:27
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
Nice! Unfortunately, this doesn't entirely answer my question: I also asked why this behaviour happens. I also notice that this method still preserves that extra horizontal space between paragraphs in the list; do you have any idea how to get rid of that?
– bradrn
Mar 28 at 0:56
@bradrn AFAIK
enumerate
is kind of old and enumitem
gives you more advantage and options comparing to list environments such as itemize
and enumerate
. However my understanding is enumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.– Majid Abdolshah
Mar 28 at 1:16
@bradrn AFAIK
enumerate
is kind of old and enumitem
gives you more advantage and options comparing to list environments such as itemize
and enumerate
. However my understanding is enumerate
eliminates the paragraph indentation by default. Regarding that horizontal space, I'll have a look.– Majid Abdolshah
Mar 28 at 1:16
@bradrn You can always use something like this
vspace-0.1cm
after the paragraph. But it's not the best solution of course.– Majid Abdolshah
Mar 28 at 1:24
@bradrn You can always use something like this
vspace-0.1cm
after the paragraph. But it's not the best solution of course.– Majid Abdolshah
Mar 28 at 1:24
@bradrn the paragraph space is
parsep
(or parsep
in the enumitem interface) so you can set that to 0pt– David Carlisle
Mar 28 at 1:26
@bradrn the paragraph space is
parsep
(or parsep
in the enumitem interface) so you can set that to 0pt– David Carlisle
Mar 28 at 1:26
1
1
@MajidAbdolshah In my 'real' code, I'm already using
enumitem
.– bradrn
Mar 28 at 1:27
@MajidAbdolshah In my 'real' code, I'm already using
enumitem
.– bradrn
Mar 28 at 1:27
|
show 1 more comment
The reason for this behaviour is that inside enumerate
the length parindent
is set to zero. So you can not use a simple indent
as usual in normal text to get the space of parindent
set.
You can simulate the ususal behaviour in normal text with the following code (See <=====
for important code):
documentclassarticle
usepackageblindtext
usepackageenumitem % <===============================================
newlengthenumerateparindent % <=====================================
begindocument
setlengthenumerateparindentparindent % <=========================
blindtext
blindtext
beginenumerate
setlengthparindentenumerateparindent % <=========================
%showparindent
%valueparindent
item%
blindtext
blindtext
endenumerate
Version 2:
beginenumerate[listparindent=enumerateparindent] % <================
item%
blindtext
blindtext
endenumerate
enddocument
and the wished result:
Please see that setlengthparindentenumerateparindent
does only work in that enumerate
list you placed the command inside ...
If you are already using package enumitem
-- as mentioned in an comment -- you can use it to use the same indent defined in parindent
with version 2 in my mwe.
The you get the resulting version 2:
add a comment |
The reason for this behaviour is that inside enumerate
the length parindent
is set to zero. So you can not use a simple indent
as usual in normal text to get the space of parindent
set.
You can simulate the ususal behaviour in normal text with the following code (See <=====
for important code):
documentclassarticle
usepackageblindtext
usepackageenumitem % <===============================================
newlengthenumerateparindent % <=====================================
begindocument
setlengthenumerateparindentparindent % <=========================
blindtext
blindtext
beginenumerate
setlengthparindentenumerateparindent % <=========================
%showparindent
%valueparindent
item%
blindtext
blindtext
endenumerate
Version 2:
beginenumerate[listparindent=enumerateparindent] % <================
item%
blindtext
blindtext
endenumerate
enddocument
and the wished result:
Please see that setlengthparindentenumerateparindent
does only work in that enumerate
list you placed the command inside ...
If you are already using package enumitem
-- as mentioned in an comment -- you can use it to use the same indent defined in parindent
with version 2 in my mwe.
The you get the resulting version 2:
add a comment |
The reason for this behaviour is that inside enumerate
the length parindent
is set to zero. So you can not use a simple indent
as usual in normal text to get the space of parindent
set.
You can simulate the ususal behaviour in normal text with the following code (See <=====
for important code):
documentclassarticle
usepackageblindtext
usepackageenumitem % <===============================================
newlengthenumerateparindent % <=====================================
begindocument
setlengthenumerateparindentparindent % <=========================
blindtext
blindtext
beginenumerate
setlengthparindentenumerateparindent % <=========================
%showparindent
%valueparindent
item%
blindtext
blindtext
endenumerate
Version 2:
beginenumerate[listparindent=enumerateparindent] % <================
item%
blindtext
blindtext
endenumerate
enddocument
and the wished result:
Please see that setlengthparindentenumerateparindent
does only work in that enumerate
list you placed the command inside ...
If you are already using package enumitem
-- as mentioned in an comment -- you can use it to use the same indent defined in parindent
with version 2 in my mwe.
The you get the resulting version 2:
The reason for this behaviour is that inside enumerate
the length parindent
is set to zero. So you can not use a simple indent
as usual in normal text to get the space of parindent
set.
You can simulate the ususal behaviour in normal text with the following code (See <=====
for important code):
documentclassarticle
usepackageblindtext
usepackageenumitem % <===============================================
newlengthenumerateparindent % <=====================================
begindocument
setlengthenumerateparindentparindent % <=========================
blindtext
blindtext
beginenumerate
setlengthparindentenumerateparindent % <=========================
%showparindent
%valueparindent
item%
blindtext
blindtext
endenumerate
Version 2:
beginenumerate[listparindent=enumerateparindent] % <================
item%
blindtext
blindtext
endenumerate
enddocument
and the wished result:
Please see that setlengthparindentenumerateparindent
does only work in that enumerate
list you placed the command inside ...
If you are already using package enumitem
-- as mentioned in an comment -- you can use it to use the same indent defined in parindent
with version 2 in my mwe.
The you get the resulting version 2:
edited Mar 28 at 1:53
answered Mar 28 at 1:13
MenschMensch
48.9k10 gold badges55 silver badges180 bronze badges
48.9k10 gold badges55 silver badges180 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481815%2fwhy-does-indent-disappear-in-lists%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
"why" questions are hard to answer, the list paragraph shape is settable as are the outer paragraphs the standard latex classes chose choose that layout as presumably the original author preferred it that way. you can set listparindent` and other list parameters to achieve other shapes
– David Carlisle
Mar 28 at 1:23