How to get three nested enumerations in LaTeX?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












This is my current code. I've managed to get one next enumeration but I want a third nesting to replace me having to write 1.1.1, 1.1.2 etc.



 beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate


This gives me



1 Top Level
1.1 Second Level
i Third Level


My desired output is



1 Top Level
1.1 Second Level
1.1.1 Third Level


How do I achieve this?



Also, how do I remove the indentation on the third level so it is inline with the second level?










share|improve this question







New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
    – Andrew
    47 mins ago






  • 1




    Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
    – Mico
    47 mins ago











  • What should be inline with the second level? The label or the texts that follow the labels?
    – Bernard
    28 mins ago










  • @Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
    – Maria Robson
    1 min ago














up vote
1
down vote

favorite












This is my current code. I've managed to get one next enumeration but I want a third nesting to replace me having to write 1.1.1, 1.1.2 etc.



 beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate


This gives me



1 Top Level
1.1 Second Level
i Third Level


My desired output is



1 Top Level
1.1 Second Level
1.1.1 Third Level


How do I achieve this?



Also, how do I remove the indentation on the third level so it is inline with the second level?










share|improve this question







New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
    – Andrew
    47 mins ago






  • 1




    Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
    – Mico
    47 mins ago











  • What should be inline with the second level? The label or the texts that follow the labels?
    – Bernard
    28 mins ago










  • @Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
    – Maria Robson
    1 min ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











This is my current code. I've managed to get one next enumeration but I want a third nesting to replace me having to write 1.1.1, 1.1.2 etc.



 beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate


This gives me



1 Top Level
1.1 Second Level
i Third Level


My desired output is



1 Top Level
1.1 Second Level
1.1.1 Third Level


How do I achieve this?



Also, how do I remove the indentation on the third level so it is inline with the second level?










share|improve this question







New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











This is my current code. I've managed to get one next enumeration but I want a third nesting to replace me having to write 1.1.1, 1.1.2 etc.



 beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate


This gives me



1 Top Level
1.1 Second Level
i Third Level


My desired output is



1 Top Level
1.1 Second Level
1.1.1 Third Level


How do I achieve this?



Also, how do I remove the indentation on the third level so it is inline with the second level?







lists enumerate itemize enumitem sharelatex






share|improve this question







New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 58 mins ago









Maria Robson

82




82




New contributor




Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Maria Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
    – Andrew
    47 mins ago






  • 1




    Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
    – Mico
    47 mins ago











  • What should be inline with the second level? The label or the texts that follow the labels?
    – Bernard
    28 mins ago










  • @Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
    – Maria Robson
    1 min ago
















  • Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
    – Andrew
    47 mins ago






  • 1




    Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
    – Mico
    47 mins ago











  • What should be inline with the second level? The label or the texts that follow the labels?
    – Bernard
    28 mins ago










  • @Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
    – Maria Robson
    1 min ago















Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
– Andrew
47 mins ago




Welcome to TeX.SX! Ehen you post a question it's better to give a complete minimal working example. This should be as small as possible to demonstrate your problem and compile. This both clarifies your question and makes it easier to help you!
– Andrew
47 mins ago




1




1




Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
– Mico
47 mins ago





Welcome to TeX.SE. Please tell us if your document loads any packages that influence the appearance of numbers used in enumerations. For sure, the LaTeX default for second-level enumerated items is (a), (b), etc., not 1.1, 1.2, etc. Please also advise whether or not second-level enumerated items should be left-indented with respect to first-level enumerated items.
– Mico
47 mins ago













What should be inline with the second level? The label or the texts that follow the labels?
– Bernard
28 mins ago




What should be inline with the second level? The label or the texts that follow the labels?
– Bernard
28 mins ago












@Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
– Maria Robson
1 min ago




@Bernard the answer given is what I was looking for. However, if you know how to get both the labels in line with each other and the text in line with each other also that'd be great.
– Maria Robson
1 min ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You can use the enumitem package to produce:



enter image description here



Here's the code:



documentclassarticle
usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*
begindocument

beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


The important bits are the lines



usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*


These specify what you want the labels to look like. I highly recommend reading the package manual if you need to tweak further. It's very to easy to read.



Edit TO get the indentation in the OP you can use:



documentclassarticle
usepackageenumitem
setlist[enumerate]
leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left

setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*

begindocument

beginenumerate
item Top Level
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


to give:



enter image description here



EDIT II As Mico says in the comments, for the required indentation it is easier to use setlist[enumerate] wide=0pt .






share|improve this answer


















  • 2




    Why not use setlist[enumerate]label*=arabic*. instead?
    – leandriis
    44 mins ago






  • 2




    This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
    – Mico
    34 mins ago










  • @leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
    – Mico
    32 mins ago






  • 1




    @Mico Thanks. I think this might do it.
    – Andrew
    28 mins ago






  • 1




    Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
    – Mico
    25 mins 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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Maria Robson is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457314%2fhow-to-get-three-nested-enumerations-in-latex%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










You can use the enumitem package to produce:



enter image description here



Here's the code:



documentclassarticle
usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*
begindocument

beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


The important bits are the lines



usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*


These specify what you want the labels to look like. I highly recommend reading the package manual if you need to tweak further. It's very to easy to read.



Edit TO get the indentation in the OP you can use:



documentclassarticle
usepackageenumitem
setlist[enumerate]
leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left

setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*

begindocument

beginenumerate
item Top Level
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


to give:



enter image description here



EDIT II As Mico says in the comments, for the required indentation it is easier to use setlist[enumerate] wide=0pt .






share|improve this answer


















  • 2




    Why not use setlist[enumerate]label*=arabic*. instead?
    – leandriis
    44 mins ago






  • 2




    This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
    – Mico
    34 mins ago










  • @leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
    – Mico
    32 mins ago






  • 1




    @Mico Thanks. I think this might do it.
    – Andrew
    28 mins ago






  • 1




    Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
    – Mico
    25 mins ago














up vote
3
down vote



accepted










You can use the enumitem package to produce:



enter image description here



Here's the code:



documentclassarticle
usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*
begindocument

beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


The important bits are the lines



usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*


These specify what you want the labels to look like. I highly recommend reading the package manual if you need to tweak further. It's very to easy to read.



Edit TO get the indentation in the OP you can use:



documentclassarticle
usepackageenumitem
setlist[enumerate]
leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left

setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*

begindocument

beginenumerate
item Top Level
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


to give:



enter image description here



EDIT II As Mico says in the comments, for the required indentation it is easier to use setlist[enumerate] wide=0pt .






share|improve this answer


















  • 2




    Why not use setlist[enumerate]label*=arabic*. instead?
    – leandriis
    44 mins ago






  • 2




    This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
    – Mico
    34 mins ago










  • @leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
    – Mico
    32 mins ago






  • 1




    @Mico Thanks. I think this might do it.
    – Andrew
    28 mins ago






  • 1




    Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
    – Mico
    25 mins ago












up vote
3
down vote



accepted







up vote
3
down vote



accepted






You can use the enumitem package to produce:



enter image description here



Here's the code:



documentclassarticle
usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*
begindocument

beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


The important bits are the lines



usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*


These specify what you want the labels to look like. I highly recommend reading the package manual if you need to tweak further. It's very to easy to read.



Edit TO get the indentation in the OP you can use:



documentclassarticle
usepackageenumitem
setlist[enumerate]
leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left

setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*

begindocument

beginenumerate
item Top Level
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


to give:



enter image description here



EDIT II As Mico says in the comments, for the required indentation it is easier to use setlist[enumerate] wide=0pt .






share|improve this answer














You can use the enumitem package to produce:



enter image description here



Here's the code:



documentclassarticle
usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*
begindocument

beginenumerate
item Top Levek
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


The important bits are the lines



usepackageenumitem
setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*


These specify what you want the labels to look like. I highly recommend reading the package manual if you need to tweak further. It's very to easy to read.



Edit TO get the indentation in the OP you can use:



documentclassarticle
usepackageenumitem
setlist[enumerate]
leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left

setlist[enumerate,1]label=arabic*
setlist[enumerate,2]label=theenumi.arabic*
setlist[enumerate,3]label=theenumii.arabic*

begindocument

beginenumerate
item Top Level
beginenumerate
item Second Level
beginenumerate
item Third Level
endenumerate
endenumerate
endenumerate

enddocument


to give:



enter image description here



EDIT II As Mico says in the comments, for the required indentation it is easier to use setlist[enumerate] wide=0pt .







share|improve this answer














share|improve this answer



share|improve this answer








edited 20 mins ago

























answered 46 mins ago









Andrew

28.4k34075




28.4k34075







  • 2




    Why not use setlist[enumerate]label*=arabic*. instead?
    – leandriis
    44 mins ago






  • 2




    This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
    – Mico
    34 mins ago










  • @leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
    – Mico
    32 mins ago






  • 1




    @Mico Thanks. I think this might do it.
    – Andrew
    28 mins ago






  • 1




    Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
    – Mico
    25 mins ago












  • 2




    Why not use setlist[enumerate]label*=arabic*. instead?
    – leandriis
    44 mins ago






  • 2




    This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
    – Mico
    34 mins ago










  • @leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
    – Mico
    32 mins ago






  • 1




    @Mico Thanks. I think this might do it.
    – Andrew
    28 mins ago






  • 1




    Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
    – Mico
    25 mins ago







2




2




Why not use setlist[enumerate]label*=arabic*. instead?
– leandriis
44 mins ago




Why not use setlist[enumerate]label*=arabic*. instead?
– leandriis
44 mins ago




2




2




This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
– Mico
34 mins ago




This solution doesn't address the OP's objective to "remove the indentation on the third level so it is inline with the second level".
– Mico
34 mins ago












@leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
– Mico
32 mins ago




@leandriis - The OP has stated that he/she does not want a period (aka "full stop") at the end of the numeric labels.
– Mico
32 mins ago




1




1




@Mico Thanks. I think this might do it.
– Andrew
28 mins ago




@Mico Thanks. I think this might do it.
– Andrew
28 mins ago




1




1




Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
– Mico
25 mins ago




Simpler than leftmargin=0pt, labelindent*=0pt, labelwidth=0pt,align=left is wide=0pt.
– Mico
25 mins ago










Maria Robson is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Maria Robson is a new contributor. Be nice, and check out our Code of Conduct.












Maria Robson is a new contributor. Be nice, and check out our Code of Conduct.











Maria Robson is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457314%2fhow-to-get-three-nested-enumerations-in-latex%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

One-line joke