enumitem: Understanding the usage of asterisk and exclamation mark in setting the different lengthsHow to set the different fontsize according to different levels in an enumitem list in beamer?Using pgfkeys to switch between “enumerate” and “enumerate*” when using the enumitem package with the package option “inline”"No effect when use the command setlist with enumitem and outlines packagesSetting the enumi counter under custom enumeration with enumitemSetting the enumi counter under parametrized enumitemDifferent output of ref and cref in lists with enumitem+cleverefprintglossaries hangs in the presence of both enumitem and beamerarticleUsing enumitem, how can I remove the label and the indent from an individual item in a list?Different spacing for same enumerate in and out the tcolorbox
Using chord iii in a chord progression (major key)
the correct order of manual install WP and SSL on server
Which creature is depicted in this Xanathar's Guide illustration of a war mage?
What do the "optional" resistor and capacitor do in this circuit?
Will there be more tax deductions if I put the house completely under my name, versus doing a joint ownership?
What do you call the hair or body hair you trim off your body?
Does the Rogue's Reliable Talent feature work for thieves' tools, since the rogue is proficient in them?
Wireless headphones interfere with Wi-Fi signal on laptop
Why do galaxies collide?
Can anyone give me examples of the relative-determinative 'which'?
Developers demotivated due to working on same project for more than 2 years
Are there microwaves to heat baby food at Brussels airport?
How to continually let my readers know what time it is in my story, in an organic way?
Getting a similar picture (colours) on Manual Mode while using similar Auto Mode settings (T6 and 40D)
Can my American children re-enter the USA by International flight with a passport card? Being that their passport book has expired
What was Varys trying to do at the beginning of S08E05?
Is the seat-belt sign activation when a pilot goes to the lavatory standard procedure?
Meaning of "legitimate" in Carl Jung's quote "Neurosis is always a substitute for legitimate suffering."
How to describe a building set which is like LEGO without using the "LEGO" word?
How will the lack of ground stations affect navigation?
Promotion comes with unexpected 24/7/365 on-call
When did game consoles begin including FPUs?
How to check if comma list is empty?
Given 0s on Assignments with suspected and dismissed cheating?
enumitem: Understanding the usage of asterisk and exclamation mark in setting the different lengths
How to set the different fontsize according to different levels in an enumitem list in beamer?Using pgfkeys to switch between “enumerate” and “enumerate*” when using the enumitem package with the package option “inline”"No effect when use the command setlist with enumitem and outlines packagesSetting the enumi counter under custom enumeration with enumitemSetting the enumi counter under parametrized enumitemDifferent output of ref and cref in lists with enumitem+cleverefprintglossaries hangs in the presence of both enumitem and beamerarticleUsing enumitem, how can I remove the label and the indent from an individual item in a list?Different spacing for same enumerate in and out the tcolorbox
In enumitem manual, I can't find a clear explanation of the difference between the usage of exclamation mark and asterisk for leftmargin
, itemindent
, labelsep
, labelwidth
, and labelindent
.
For example, what is the difference between setting labelsep=*
and labelsep=!
?
documentclassarticle
usepackageenumitem
newcommandlitem[1]itembfseries#1.space
begindocument
beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate
enddocument
enumitem
add a comment |
In enumitem manual, I can't find a clear explanation of the difference between the usage of exclamation mark and asterisk for leftmargin
, itemindent
, labelsep
, labelwidth
, and labelindent
.
For example, what is the difference between setting labelsep=*
and labelsep=!
?
documentclassarticle
usepackageenumitem
newcommandlitem[1]itembfseries#1.space
begindocument
beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate
enddocument
enumitem
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
2
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago
add a comment |
In enumitem manual, I can't find a clear explanation of the difference between the usage of exclamation mark and asterisk for leftmargin
, itemindent
, labelsep
, labelwidth
, and labelindent
.
For example, what is the difference between setting labelsep=*
and labelsep=!
?
documentclassarticle
usepackageenumitem
newcommandlitem[1]itembfseries#1.space
begindocument
beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate
enddocument
enumitem
In enumitem manual, I can't find a clear explanation of the difference between the usage of exclamation mark and asterisk for leftmargin
, itemindent
, labelsep
, labelwidth
, and labelindent
.
For example, what is the difference between setting labelsep=*
and labelsep=!
?
documentclassarticle
usepackageenumitem
newcommandlitem[1]itembfseries#1.space
begindocument
beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate
enddocument
enumitem
enumitem
asked 5 hours ago
DiaaDiaa
2,91111857
2,91111857
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
2
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago
add a comment |
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
2
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
2
2
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago
add a comment |
1 Answer
1
active
oldest
votes
As explained in the enumitem
documentation, the horizontal spacing in lists is composed of the parameters leftmargin
, itemindent
, labelsep
, labelwidth
and labelindent
as follows:
That is to say:
The values obey the relation
leftmargin = labelindent + labelwidth + labelsep - itemindent
The right edge of the
item
label will be indented bylabelindent + labelwidth
.- The first line of the Text of the
item
will be indented byleftmargin + itemindent
. - Subsequent lines will be indented by
leftmargin
.
As you can see, there are five parameters but they are not all independent. Given any four of them you can calculate the fifth, which is where the !
and *
values to these options come in.
Why have this redundancy at all? Well, in standard LaTeX, the parameter labelindent
does not exist; it is introduced by enumitem
. The author of the package felt that it might be useful to be able to directly set the indentation of the list label instead of having to calculate the other values manually in order to achieve the desired indentation.
By default, the new parameter labelindent
is always calculated from the others. If you want to directly set labelindent
, you will have to tell enumitem
which parameter it should calculate instead. That is what the !
value is for.
*
does exactly the same thing, but it also first sets labelwidth
. This is useful because the right edge of the label is indented by 'labelindent + labelwidth', so the left edge of the label will only be indented by exactly labelindent
, if the width of the label is actually labelwidth
. enumitem
tries to guess the width of the widest possible label by measuring the width of the label with value
0 iflabel
is set usingarabic*
,
viii iflabel
is set usingroman*
,
m iflabel
is set usingalph*
and- similarly for the uppercase versions.
So, if you set label=(alpha*)
, enumitem
will measure the width of (m) and set labelwidth
to this value. You can change this behavior using the widest
option.
Note that this means that labelwidth=!
and labelwidth=*
do exactly the same thing.
Okay, so let's have a look at an example. enumitem
acknowledges that the behavior of these values may be confusing and provides DrawEnumitemLabel
to visualize the current values, which I will use below. It
[...] draws 4 rules from top to bottom, leftmargin (thin), labelindent (thick if positive, thin if negative), labelwidth (thick) and labelsep (thick if positive, thin if negative). If 0, a rule is not shown.
documentclassarticle
usepackageenumitem
parindent=0pt
newcommand*printvalue[1]textttstring #1 : the #1
begindocument
% set some defaults:
setlist
label=(alph*),
leftmargin=50pt,
itemindent=10pt,
labelsep=5pt,
labelwidth=25pt,
labelindent=10pt,
By default, my definition of verb|labelindent| is just ignored and it is calculated from the other values:
beginenumerate
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
I can change that using the verb|!| value.
For example, I can instead calculate verb|labelsep| from the other values:
beginenumerate[labelindent=10pt, labelsep=!]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
The verb|*| value does exactly the same, only it also set the value of verb|labelwidth| first.
It tries to guess the widest possible label (textsl0 for verb|arabic*|, textslviii for verb|roman*|, textslm for verb|alph*|):
beginenumerate[labelindent=10pt, labelsep=*]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
enddocument
1
+1 Great answer!
– Alan Munn
3 hours ago
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
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/3.0/"u003ecc by-sa 3.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%2f490872%2fenumitem-understanding-the-usage-of-asterisk-and-exclamation-mark-in-setting-th%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As explained in the enumitem
documentation, the horizontal spacing in lists is composed of the parameters leftmargin
, itemindent
, labelsep
, labelwidth
and labelindent
as follows:
That is to say:
The values obey the relation
leftmargin = labelindent + labelwidth + labelsep - itemindent
The right edge of the
item
label will be indented bylabelindent + labelwidth
.- The first line of the Text of the
item
will be indented byleftmargin + itemindent
. - Subsequent lines will be indented by
leftmargin
.
As you can see, there are five parameters but they are not all independent. Given any four of them you can calculate the fifth, which is where the !
and *
values to these options come in.
Why have this redundancy at all? Well, in standard LaTeX, the parameter labelindent
does not exist; it is introduced by enumitem
. The author of the package felt that it might be useful to be able to directly set the indentation of the list label instead of having to calculate the other values manually in order to achieve the desired indentation.
By default, the new parameter labelindent
is always calculated from the others. If you want to directly set labelindent
, you will have to tell enumitem
which parameter it should calculate instead. That is what the !
value is for.
*
does exactly the same thing, but it also first sets labelwidth
. This is useful because the right edge of the label is indented by 'labelindent + labelwidth', so the left edge of the label will only be indented by exactly labelindent
, if the width of the label is actually labelwidth
. enumitem
tries to guess the width of the widest possible label by measuring the width of the label with value
0 iflabel
is set usingarabic*
,
viii iflabel
is set usingroman*
,
m iflabel
is set usingalph*
and- similarly for the uppercase versions.
So, if you set label=(alpha*)
, enumitem
will measure the width of (m) and set labelwidth
to this value. You can change this behavior using the widest
option.
Note that this means that labelwidth=!
and labelwidth=*
do exactly the same thing.
Okay, so let's have a look at an example. enumitem
acknowledges that the behavior of these values may be confusing and provides DrawEnumitemLabel
to visualize the current values, which I will use below. It
[...] draws 4 rules from top to bottom, leftmargin (thin), labelindent (thick if positive, thin if negative), labelwidth (thick) and labelsep (thick if positive, thin if negative). If 0, a rule is not shown.
documentclassarticle
usepackageenumitem
parindent=0pt
newcommand*printvalue[1]textttstring #1 : the #1
begindocument
% set some defaults:
setlist
label=(alph*),
leftmargin=50pt,
itemindent=10pt,
labelsep=5pt,
labelwidth=25pt,
labelindent=10pt,
By default, my definition of verb|labelindent| is just ignored and it is calculated from the other values:
beginenumerate
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
I can change that using the verb|!| value.
For example, I can instead calculate verb|labelsep| from the other values:
beginenumerate[labelindent=10pt, labelsep=!]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
The verb|*| value does exactly the same, only it also set the value of verb|labelwidth| first.
It tries to guess the widest possible label (textsl0 for verb|arabic*|, textslviii for verb|roman*|, textslm for verb|alph*|):
beginenumerate[labelindent=10pt, labelsep=*]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
enddocument
1
+1 Great answer!
– Alan Munn
3 hours ago
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
add a comment |
As explained in the enumitem
documentation, the horizontal spacing in lists is composed of the parameters leftmargin
, itemindent
, labelsep
, labelwidth
and labelindent
as follows:
That is to say:
The values obey the relation
leftmargin = labelindent + labelwidth + labelsep - itemindent
The right edge of the
item
label will be indented bylabelindent + labelwidth
.- The first line of the Text of the
item
will be indented byleftmargin + itemindent
. - Subsequent lines will be indented by
leftmargin
.
As you can see, there are five parameters but they are not all independent. Given any four of them you can calculate the fifth, which is where the !
and *
values to these options come in.
Why have this redundancy at all? Well, in standard LaTeX, the parameter labelindent
does not exist; it is introduced by enumitem
. The author of the package felt that it might be useful to be able to directly set the indentation of the list label instead of having to calculate the other values manually in order to achieve the desired indentation.
By default, the new parameter labelindent
is always calculated from the others. If you want to directly set labelindent
, you will have to tell enumitem
which parameter it should calculate instead. That is what the !
value is for.
*
does exactly the same thing, but it also first sets labelwidth
. This is useful because the right edge of the label is indented by 'labelindent + labelwidth', so the left edge of the label will only be indented by exactly labelindent
, if the width of the label is actually labelwidth
. enumitem
tries to guess the width of the widest possible label by measuring the width of the label with value
0 iflabel
is set usingarabic*
,
viii iflabel
is set usingroman*
,
m iflabel
is set usingalph*
and- similarly for the uppercase versions.
So, if you set label=(alpha*)
, enumitem
will measure the width of (m) and set labelwidth
to this value. You can change this behavior using the widest
option.
Note that this means that labelwidth=!
and labelwidth=*
do exactly the same thing.
Okay, so let's have a look at an example. enumitem
acknowledges that the behavior of these values may be confusing and provides DrawEnumitemLabel
to visualize the current values, which I will use below. It
[...] draws 4 rules from top to bottom, leftmargin (thin), labelindent (thick if positive, thin if negative), labelwidth (thick) and labelsep (thick if positive, thin if negative). If 0, a rule is not shown.
documentclassarticle
usepackageenumitem
parindent=0pt
newcommand*printvalue[1]textttstring #1 : the #1
begindocument
% set some defaults:
setlist
label=(alph*),
leftmargin=50pt,
itemindent=10pt,
labelsep=5pt,
labelwidth=25pt,
labelindent=10pt,
By default, my definition of verb|labelindent| is just ignored and it is calculated from the other values:
beginenumerate
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
I can change that using the verb|!| value.
For example, I can instead calculate verb|labelsep| from the other values:
beginenumerate[labelindent=10pt, labelsep=!]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
The verb|*| value does exactly the same, only it also set the value of verb|labelwidth| first.
It tries to guess the widest possible label (textsl0 for verb|arabic*|, textslviii for verb|roman*|, textslm for verb|alph*|):
beginenumerate[labelindent=10pt, labelsep=*]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
enddocument
1
+1 Great answer!
– Alan Munn
3 hours ago
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
add a comment |
As explained in the enumitem
documentation, the horizontal spacing in lists is composed of the parameters leftmargin
, itemindent
, labelsep
, labelwidth
and labelindent
as follows:
That is to say:
The values obey the relation
leftmargin = labelindent + labelwidth + labelsep - itemindent
The right edge of the
item
label will be indented bylabelindent + labelwidth
.- The first line of the Text of the
item
will be indented byleftmargin + itemindent
. - Subsequent lines will be indented by
leftmargin
.
As you can see, there are five parameters but they are not all independent. Given any four of them you can calculate the fifth, which is where the !
and *
values to these options come in.
Why have this redundancy at all? Well, in standard LaTeX, the parameter labelindent
does not exist; it is introduced by enumitem
. The author of the package felt that it might be useful to be able to directly set the indentation of the list label instead of having to calculate the other values manually in order to achieve the desired indentation.
By default, the new parameter labelindent
is always calculated from the others. If you want to directly set labelindent
, you will have to tell enumitem
which parameter it should calculate instead. That is what the !
value is for.
*
does exactly the same thing, but it also first sets labelwidth
. This is useful because the right edge of the label is indented by 'labelindent + labelwidth', so the left edge of the label will only be indented by exactly labelindent
, if the width of the label is actually labelwidth
. enumitem
tries to guess the width of the widest possible label by measuring the width of the label with value
0 iflabel
is set usingarabic*
,
viii iflabel
is set usingroman*
,
m iflabel
is set usingalph*
and- similarly for the uppercase versions.
So, if you set label=(alpha*)
, enumitem
will measure the width of (m) and set labelwidth
to this value. You can change this behavior using the widest
option.
Note that this means that labelwidth=!
and labelwidth=*
do exactly the same thing.
Okay, so let's have a look at an example. enumitem
acknowledges that the behavior of these values may be confusing and provides DrawEnumitemLabel
to visualize the current values, which I will use below. It
[...] draws 4 rules from top to bottom, leftmargin (thin), labelindent (thick if positive, thin if negative), labelwidth (thick) and labelsep (thick if positive, thin if negative). If 0, a rule is not shown.
documentclassarticle
usepackageenumitem
parindent=0pt
newcommand*printvalue[1]textttstring #1 : the #1
begindocument
% set some defaults:
setlist
label=(alph*),
leftmargin=50pt,
itemindent=10pt,
labelsep=5pt,
labelwidth=25pt,
labelindent=10pt,
By default, my definition of verb|labelindent| is just ignored and it is calculated from the other values:
beginenumerate
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
I can change that using the verb|!| value.
For example, I can instead calculate verb|labelsep| from the other values:
beginenumerate[labelindent=10pt, labelsep=!]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
The verb|*| value does exactly the same, only it also set the value of verb|labelwidth| first.
It tries to guess the widest possible label (textsl0 for verb|arabic*|, textslviii for verb|roman*|, textslm for verb|alph*|):
beginenumerate[labelindent=10pt, labelsep=*]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
enddocument
As explained in the enumitem
documentation, the horizontal spacing in lists is composed of the parameters leftmargin
, itemindent
, labelsep
, labelwidth
and labelindent
as follows:
That is to say:
The values obey the relation
leftmargin = labelindent + labelwidth + labelsep - itemindent
The right edge of the
item
label will be indented bylabelindent + labelwidth
.- The first line of the Text of the
item
will be indented byleftmargin + itemindent
. - Subsequent lines will be indented by
leftmargin
.
As you can see, there are five parameters but they are not all independent. Given any four of them you can calculate the fifth, which is where the !
and *
values to these options come in.
Why have this redundancy at all? Well, in standard LaTeX, the parameter labelindent
does not exist; it is introduced by enumitem
. The author of the package felt that it might be useful to be able to directly set the indentation of the list label instead of having to calculate the other values manually in order to achieve the desired indentation.
By default, the new parameter labelindent
is always calculated from the others. If you want to directly set labelindent
, you will have to tell enumitem
which parameter it should calculate instead. That is what the !
value is for.
*
does exactly the same thing, but it also first sets labelwidth
. This is useful because the right edge of the label is indented by 'labelindent + labelwidth', so the left edge of the label will only be indented by exactly labelindent
, if the width of the label is actually labelwidth
. enumitem
tries to guess the width of the widest possible label by measuring the width of the label with value
0 iflabel
is set usingarabic*
,
viii iflabel
is set usingroman*
,
m iflabel
is set usingalph*
and- similarly for the uppercase versions.
So, if you set label=(alpha*)
, enumitem
will measure the width of (m) and set labelwidth
to this value. You can change this behavior using the widest
option.
Note that this means that labelwidth=!
and labelwidth=*
do exactly the same thing.
Okay, so let's have a look at an example. enumitem
acknowledges that the behavior of these values may be confusing and provides DrawEnumitemLabel
to visualize the current values, which I will use below. It
[...] draws 4 rules from top to bottom, leftmargin (thin), labelindent (thick if positive, thin if negative), labelwidth (thick) and labelsep (thick if positive, thin if negative). If 0, a rule is not shown.
documentclassarticle
usepackageenumitem
parindent=0pt
newcommand*printvalue[1]textttstring #1 : the #1
begindocument
% set some defaults:
setlist
label=(alph*),
leftmargin=50pt,
itemindent=10pt,
labelsep=5pt,
labelwidth=25pt,
labelindent=10pt,
By default, my definition of verb|labelindent| is just ignored and it is calculated from the other values:
beginenumerate
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
I can change that using the verb|!| value.
For example, I can instead calculate verb|labelsep| from the other values:
beginenumerate[labelindent=10pt, labelsep=!]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
The verb|*| value does exactly the same, only it also set the value of verb|labelwidth| first.
It tries to guess the widest possible label (textsl0 for verb|arabic*|, textslviii for verb|roman*|, textslm for verb|alph*|):
beginenumerate[labelindent=10pt, labelsep=*]
DrawEnumitemLabel
item printvalueleftmargin
item printvalueitemindent
item printvaluelabelsep
item printvaluelabelwidth
item printvaluelabelindent
endenumerate
enddocument
edited 3 hours ago
answered 3 hours ago


schtandardschtandard
2,6571121
2,6571121
1
+1 Great answer!
– Alan Munn
3 hours ago
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
add a comment |
1
+1 Great answer!
– Alan Munn
3 hours ago
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
1
1
+1 Great answer!
– Alan Munn
3 hours ago
+1 Great answer!
– Alan Munn
3 hours ago
1
1
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.
– Diaa
3 hours ago
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%2f490872%2fenumitem-understanding-the-usage-of-asterisk-and-exclamation-mark-in-setting-th%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
Could you explain what was left unclear by the explanation on page 7 of the manual? I found it rather comprehensive.
– schtandard
4 hours ago
2
@schtandard If it's very clear to you, post an answer that doesn't quote the text of the documentation, but instead explains it in another way (perhaps with some examples.) This would be a really useful answer, I suspect.
– Alan Munn
4 hours ago