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

tikz drawing rectangle discretized with triangle lattices and its centroids

What was Varys trying to do at the beginning of S08E05?

Why is Drogon so much better in battle than Rhaegal and Viserion?

Will the volt, ampere, ohm or other electrical units change on May 20th, 2019?

Why were the bells ignored in S8E5?

Does addError() work outside of triggers?

What dog breeds survive the apocalypse for generations?

How to describe a building set which is like LEGO without using the "LEGO" word?

Which creature is depicted in this Xanathar's Guide illustration of a war mage?

Was the dragon prowess intentionally downplayed in S08E04?

How will the lack of ground stations affect navigation?

Do people who work at research institutes consider themselves "academics"?

Given 0s on Assignments with suspected and dismissed cheating?

How could it be that 80% of townspeople were farmers during the Edo period in Japan?

With today's technology, could iron be smelted at La Rinconada?

Slice a list based on an index and items behind it in python

When did game consoles begin including FPUs?

Why commonly or frequently used fonts sizes are even numbers like 10px, 12px, 16px, 24px, or 32px?

Does it matter what way the tires go if no directional arrow?

Windows 10 lock screen - display my own random images

Why doesn't Iron Man's action affect this person in Endgame?

Single word that parallels "Recent" when discussing the near future

Can I say: "When was your train leaving?" if the train leaves in the future?

How to continually let my readers know what time it is in my story, in an organic way?



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













1















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=*



enter image description here



and labelsep=!?



enter image description here



documentclassarticle
usepackageenumitem

newcommandlitem[1]itembfseries#1.space

begindocument

beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate

enddocument









share|improve this question






















  • 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















1















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=*



enter image description here



and labelsep=!?



enter image description here



documentclassarticle
usepackageenumitem

newcommandlitem[1]itembfseries#1.space

begindocument

beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate

enddocument









share|improve this question






















  • 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













1












1








1








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=*



enter image description here



and labelsep=!?



enter image description here



documentclassarticle
usepackageenumitem

newcommandlitem[1]itembfseries#1.space

begindocument

beginenumerate[label=(alph*),labelsep=!]
litemTerm one First term description.
litemTerm two Second term description.
endenumerate

enddocument









share|improve this question














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=*



enter image description here



and labelsep=!?



enter image description here



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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 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

















  • 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










1 Answer
1






active

oldest

votes


















5














As explained in the enumitem documentation, the horizontal spacing in lists is composed of the parameters leftmargin, itemindent, labelsep, labelwidth and labelindent as follows:



indentation in lists



That is to say:




  1. The values obey the relation



    leftmargin = labelindent + labelwidth + labelsep - itemindent


  2. The right edge of the item label will be indented by labelindent + labelwidth.


  3. The first line of the Text of the item will be indented by leftmargin + itemindent.

  4. 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 if label is set using arabic*,


  • viii if label is set using roman*,


  • m if label is set using alph* 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


MWE output






share|improve this answer




















  • 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
    2 hours ago











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
);



);













draft saved

draft discarded


















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









5














As explained in the enumitem documentation, the horizontal spacing in lists is composed of the parameters leftmargin, itemindent, labelsep, labelwidth and labelindent as follows:



indentation in lists



That is to say:




  1. The values obey the relation



    leftmargin = labelindent + labelwidth + labelsep - itemindent


  2. The right edge of the item label will be indented by labelindent + labelwidth.


  3. The first line of the Text of the item will be indented by leftmargin + itemindent.

  4. 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 if label is set using arabic*,


  • viii if label is set using roman*,


  • m if label is set using alph* 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


MWE output






share|improve this answer




















  • 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
    2 hours ago















5














As explained in the enumitem documentation, the horizontal spacing in lists is composed of the parameters leftmargin, itemindent, labelsep, labelwidth and labelindent as follows:



indentation in lists



That is to say:




  1. The values obey the relation



    leftmargin = labelindent + labelwidth + labelsep - itemindent


  2. The right edge of the item label will be indented by labelindent + labelwidth.


  3. The first line of the Text of the item will be indented by leftmargin + itemindent.

  4. 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 if label is set using arabic*,


  • viii if label is set using roman*,


  • m if label is set using alph* 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


MWE output






share|improve this answer




















  • 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
    2 hours ago













5












5








5







As explained in the enumitem documentation, the horizontal spacing in lists is composed of the parameters leftmargin, itemindent, labelsep, labelwidth and labelindent as follows:



indentation in lists



That is to say:




  1. The values obey the relation



    leftmargin = labelindent + labelwidth + labelsep - itemindent


  2. The right edge of the item label will be indented by labelindent + labelwidth.


  3. The first line of the Text of the item will be indented by leftmargin + itemindent.

  4. 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 if label is set using arabic*,


  • viii if label is set using roman*,


  • m if label is set using alph* 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


MWE output






share|improve this answer















As explained in the enumitem documentation, the horizontal spacing in lists is composed of the parameters leftmargin, itemindent, labelsep, labelwidth and labelindent as follows:



indentation in lists



That is to say:




  1. The values obey the relation



    leftmargin = labelindent + labelwidth + labelsep - itemindent


  2. The right edge of the item label will be indented by labelindent + labelwidth.


  3. The first line of the Text of the item will be indented by leftmargin + itemindent.

  4. 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 if label is set using arabic*,


  • viii if label is set using roman*,


  • m if label is set using alph* 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


MWE output







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 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
    2 hours ago












  • 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
    2 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
2 hours ago





This encyclopedic and informative answer is what I am looking for. Many thanks for your great explanation.

– Diaa
2 hours ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Log på Navigationsmenu

Creating second map without labels using QGIS?How to lock map labels for inset map in Print Composer?How to Force the Showing of Labels of a Vector File in QGISQGIS Valmiera, Labels only show for part of polygonsRemoving duplicate point labels in QGISLabeling every feature using QGIS?Show labels for point features outside map canvasAbbreviate Road Labels in QGIS only when requiredExporting map from composer in QGIS - text labels have moved in output?How to make sure labels in qgis turn up in layout map?Writing label expression with ArcMap and If then Statement?

Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse