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













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

















  • 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
    3 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
    3 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
    3 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 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












  • 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

















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

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

Кастелфранко ди Сопра Становништво Референце Спољашње везе Мени за навигацију43°37′18″ СГШ; 11°33′32″ ИГД / 43.62156° СГШ; 11.55885° ИГД / 43.62156; 11.5588543°37′18″ СГШ; 11°33′32″ ИГД / 43.62156° СГШ; 11.55885° ИГД / 43.62156; 11.558853179688„The GeoNames geographical database”„Istituto Nazionale di Statistica”проширитиууWorldCat156923403n850174324558639-1cb14643287r(подаци)