How do I make a list that goes “1.1, 1.2, …”?

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











up vote
1
down vote

favorite












I tried, setcounterenumi1.0, but it didn't work and just gave me an error. How can I achieve that?










share|improve this question



















  • 3




    Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
    – Teepeemm
    Sep 9 at 19:22










  • So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
    – Mohammed Shahid
    Sep 9 at 19:27










  • @MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
    – current_user
    Sep 9 at 20:09






  • 1




    @current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
    – Skillmon
    2 days ago










  • @Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
    – current_user
    2 days ago














up vote
1
down vote

favorite












I tried, setcounterenumi1.0, but it didn't work and just gave me an error. How can I achieve that?










share|improve this question



















  • 3




    Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
    – Teepeemm
    Sep 9 at 19:22










  • So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
    – Mohammed Shahid
    Sep 9 at 19:27










  • @MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
    – current_user
    Sep 9 at 20:09






  • 1




    @current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
    – Skillmon
    2 days ago










  • @Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
    – current_user
    2 days ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I tried, setcounterenumi1.0, but it didn't work and just gave me an error. How can I achieve that?










share|improve this question















I tried, setcounterenumi1.0, but it didn't work and just gave me an error. How can I achieve that?







lists enumerate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 9 at 18:45









current_user

2,5741428




2,5741428










asked Sep 9 at 18:40









Mohammed Shahid

518




518







  • 3




    Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
    – Teepeemm
    Sep 9 at 19:22










  • So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
    – Mohammed Shahid
    Sep 9 at 19:27










  • @MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
    – current_user
    Sep 9 at 20:09






  • 1




    @current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
    – Skillmon
    2 days ago










  • @Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
    – current_user
    2 days ago












  • 3




    Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
    – Teepeemm
    Sep 9 at 19:22










  • So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
    – Mohammed Shahid
    Sep 9 at 19:27










  • @MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
    – current_user
    Sep 9 at 20:09






  • 1




    @current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
    – Skillmon
    2 days ago










  • @Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
    – current_user
    2 days ago







3




3




Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
– Teepeemm
Sep 9 at 19:22




Where does the leading 1. come from? Is it part of a larger list? Or an outline? Are you going to want a 2. for some other reason? Could you give an example of why you want this? There are several valid reasons, but I think they would lead to slightly different answers.
– Teepeemm
Sep 9 at 19:22












So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
– Mohammed Shahid
Sep 9 at 19:27




So I am using latex to do homework problems. This is from chapter 4 of the book so the assigned problems were 4.1, 4.2, 4.3, 4.4, 4.10, 4.11, and some others. Some of the problems have additional parts (i.e, 4.1 a, 4.1 b, etc.) so I figured beginenumerate would be the way to go.
– Mohammed Shahid
Sep 9 at 19:27












@MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
– current_user
Sep 9 at 20:09




@MohammedShahid: Then you can use beginenumerate[thechapter.1] item foo item bar endenumerate
– current_user
Sep 9 at 20:09




1




1




@current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
– Skillmon
2 days ago




@current_user no he can't as he is doing homework and not writing that book. It is unlikely that thechapter would yield the correct result.
– Skillmon
2 days ago












@Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
– current_user
2 days ago




@Skillmon: Oh, sorry, my fault, I mean something like newcommandNAMEthesection and then the same usage which is shown in my answer …
– current_user
2 days ago










2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










With enumitem:



documentclassarticle

usepackageenumitem

begindocument
beginenumerate[label=1.arabic*]
item foo
item bar
endenumerate
enddocument


enter image description here






share|improve this answer




















  • When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
    – Mohammed Shahid
    Sep 9 at 18:56






  • 1




    @MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
    – Skillmon
    Sep 9 at 19:27










  • the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
    – Mohammed Shahid
    2 days ago











  • I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
    – Mohammed Shahid
    2 days ago






  • 1




    @MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
    – Skillmon
    2 days ago

















up vote
3
down vote













documentclassarticle
usepackageenumerate
newcommandone1
begindocument
beginenumerate[one.1]
item Hallo
item Hallo
endenumerate
enddocument


Here is the output:



Screenshot






share|improve this answer
















  • 1




    I would have to make this command: newcommandone1 for every number, right?
    – Mohammed Shahid
    Sep 9 at 18:50










  • @MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
    – current_user
    Sep 9 at 18:51











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



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450148%2fhow-do-i-make-a-list-that-goes-1-1-1-2%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










With enumitem:



documentclassarticle

usepackageenumitem

begindocument
beginenumerate[label=1.arabic*]
item foo
item bar
endenumerate
enddocument


enter image description here






share|improve this answer




















  • When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
    – Mohammed Shahid
    Sep 9 at 18:56






  • 1




    @MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
    – Skillmon
    Sep 9 at 19:27










  • the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
    – Mohammed Shahid
    2 days ago











  • I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
    – Mohammed Shahid
    2 days ago






  • 1




    @MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
    – Skillmon
    2 days ago














up vote
4
down vote



accepted










With enumitem:



documentclassarticle

usepackageenumitem

begindocument
beginenumerate[label=1.arabic*]
item foo
item bar
endenumerate
enddocument


enter image description here






share|improve this answer




















  • When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
    – Mohammed Shahid
    Sep 9 at 18:56






  • 1




    @MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
    – Skillmon
    Sep 9 at 19:27










  • the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
    – Mohammed Shahid
    2 days ago











  • I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
    – Mohammed Shahid
    2 days ago






  • 1




    @MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
    – Skillmon
    2 days ago












up vote
4
down vote



accepted







up vote
4
down vote



accepted






With enumitem:



documentclassarticle

usepackageenumitem

begindocument
beginenumerate[label=1.arabic*]
item foo
item bar
endenumerate
enddocument


enter image description here






share|improve this answer












With enumitem:



documentclassarticle

usepackageenumitem

begindocument
beginenumerate[label=1.arabic*]
item foo
item bar
endenumerate
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 9 at 18:45









Skillmon

17.5k11535




17.5k11535











  • When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
    – Mohammed Shahid
    Sep 9 at 18:56






  • 1




    @MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
    – Skillmon
    Sep 9 at 19:27










  • the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
    – Mohammed Shahid
    2 days ago











  • I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
    – Mohammed Shahid
    2 days ago






  • 1




    @MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
    – Skillmon
    2 days ago
















  • When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
    – Mohammed Shahid
    Sep 9 at 18:56






  • 1




    @MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
    – Skillmon
    Sep 9 at 19:27










  • the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
    – Mohammed Shahid
    2 days ago











  • I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
    – Mohammed Shahid
    2 days ago






  • 1




    @MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
    – Skillmon
    2 days ago















When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
– Mohammed Shahid
Sep 9 at 18:56




When I do: beginenumerate[label=1. arabic*] The asterisks appears with the arabic and appears red. Which leads to me getting a dozen errors.
– Mohammed Shahid
Sep 9 at 18:56




1




1




@MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
– Skillmon
Sep 9 at 19:27




@MohammedShahid then post an MWE which shows which document class you're using and produces the error you're facing with my code, the MWE in my answer does work. And please answer the questions asked in Teepeemm's comment below your question (that might enhance our ability to answer your question a lot).
– Skillmon
Sep 9 at 19:27












the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
– Mohammed Shahid
2 days ago





the only thing I have after begindocument is the code you put. And it is giving me a lot of errors. Could one of the commands I have in the preamble before then mess with this? I did use the enumitem package.The error messages are as follows: ! Missing number, treated as zero.<to be read again>c@ beginenumerate[label=1.arabic]. The second one is: ! Missing number, treated as zero.<to be read again>c@ item f The third is: ! Undefined control sequence.enit@endenumerate ->enit@afterendlist ifx enit@series relax else if... endenumerate
– Mohammed Shahid
2 days ago













I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
– Mohammed Shahid
2 days ago




I figured it out. I removed usepackageenumerate and then it worked. Do these packages not work with each other?
– Mohammed Shahid
2 days ago




1




1




@MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
– Skillmon
2 days ago




@MohammedShahid sure, you can use beginenumerate[label=1.arabic*,start=2]
– Skillmon
2 days ago










up vote
3
down vote













documentclassarticle
usepackageenumerate
newcommandone1
begindocument
beginenumerate[one.1]
item Hallo
item Hallo
endenumerate
enddocument


Here is the output:



Screenshot






share|improve this answer
















  • 1




    I would have to make this command: newcommandone1 for every number, right?
    – Mohammed Shahid
    Sep 9 at 18:50










  • @MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
    – current_user
    Sep 9 at 18:51















up vote
3
down vote













documentclassarticle
usepackageenumerate
newcommandone1
begindocument
beginenumerate[one.1]
item Hallo
item Hallo
endenumerate
enddocument


Here is the output:



Screenshot






share|improve this answer
















  • 1




    I would have to make this command: newcommandone1 for every number, right?
    – Mohammed Shahid
    Sep 9 at 18:50










  • @MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
    – current_user
    Sep 9 at 18:51













up vote
3
down vote










up vote
3
down vote









documentclassarticle
usepackageenumerate
newcommandone1
begindocument
beginenumerate[one.1]
item Hallo
item Hallo
endenumerate
enddocument


Here is the output:



Screenshot






share|improve this answer












documentclassarticle
usepackageenumerate
newcommandone1
begindocument
beginenumerate[one.1]
item Hallo
item Hallo
endenumerate
enddocument


Here is the output:



Screenshot







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 9 at 18:43









current_user

2,5741428




2,5741428







  • 1




    I would have to make this command: newcommandone1 for every number, right?
    – Mohammed Shahid
    Sep 9 at 18:50










  • @MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
    – current_user
    Sep 9 at 18:51













  • 1




    I would have to make this command: newcommandone1 for every number, right?
    – Mohammed Shahid
    Sep 9 at 18:50










  • @MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
    – current_user
    Sep 9 at 18:51








1




1




I would have to make this command: newcommandone1 for every number, right?
– Mohammed Shahid
Sep 9 at 18:50




I would have to make this command: newcommandone1 for every number, right?
– Mohammed Shahid
Sep 9 at 18:50












@MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
– current_user
Sep 9 at 18:51





@MohammedShahid: Yeah, you're right … But Skillmon's answer is better than mine, so use his.
– current_user
Sep 9 at 18:51


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450148%2fhow-do-i-make-a-list-that-goes-1-1-1-2%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

Confectionery