Enumerated list with repeated numbers with an asterisk
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I'm trying to obtain:
1. text text text
2. text text text
2*. text text text
3. text text text
4. text text text
4*. text text text
I've seen something similar done with:
newcommandmyitemrefstepcounterenumiitem[theenumiup*.]
Here
. However, it is not what I'm trying to accomplish.
EDIT. My God, you people are awesome!!! If I could only get as many responses in the Cross Validated stack I would finish my thesis in a week;)
lists enumerate itemize document-classes
New contributor
add a comment |Â
up vote
2
down vote
favorite
I'm trying to obtain:
1. text text text
2. text text text
2*. text text text
3. text text text
4. text text text
4*. text text text
I've seen something similar done with:
newcommandmyitemrefstepcounterenumiitem[theenumiup*.]
Here
. However, it is not what I'm trying to accomplish.
EDIT. My God, you people are awesome!!! If I could only get as many responses in the Cross Validated stack I would finish my thesis in a week;)
lists enumerate itemize document-classes
New contributor
Welcome to TeX.SX! Do you plan to uselabel
andref
for such modified items?
â egreg
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I'm trying to obtain:
1. text text text
2. text text text
2*. text text text
3. text text text
4. text text text
4*. text text text
I've seen something similar done with:
newcommandmyitemrefstepcounterenumiitem[theenumiup*.]
Here
. However, it is not what I'm trying to accomplish.
EDIT. My God, you people are awesome!!! If I could only get as many responses in the Cross Validated stack I would finish my thesis in a week;)
lists enumerate itemize document-classes
New contributor
I'm trying to obtain:
1. text text text
2. text text text
2*. text text text
3. text text text
4. text text text
4*. text text text
I've seen something similar done with:
newcommandmyitemrefstepcounterenumiitem[theenumiup*.]
Here
. However, it is not what I'm trying to accomplish.
EDIT. My God, you people are awesome!!! If I could only get as many responses in the Cross Validated stack I would finish my thesis in a week;)
lists enumerate itemize document-classes
lists enumerate itemize document-classes
New contributor
New contributor
edited 3 hours ago
New contributor
asked 4 hours ago
DexzMen
133
133
New contributor
New contributor
Welcome to TeX.SX! Do you plan to uselabel
andref
for such modified items?
â egreg
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago
add a comment |Â
Welcome to TeX.SX! Do you plan to uselabel
andref
for such modified items?
â egreg
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago
Welcome to TeX.SX! Do you plan to use
label
and ref
for such modified items?â egreg
3 hours ago
Welcome to TeX.SX! Do you plan to use
label
and ref
for such modified items?â egreg
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
It is better to let the very right of labels aligned together. Define newcommandmyitemitem[$vphantomx^*$theenumi]
and use setlist[enumerate,1]leftmargin=*, label=arabic*.
in the preamble.
documentclassreport
usepackageenumitem
newcommandmyitemitem[$vphantomx^*$theenumi]
setlist[enumerate,1]leftmargin=*, label=arabic*.
begindocument
beginenumerate
item Item 1
item Item 2
myitem Item 2 (with asterisk)
item Item 3
item Item 4
item Item 5
endenumerate
enddocument
add a comment |Â
up vote
2
down vote
A âÂÂsimpleâ modification for a first level list with the default 1.
appearance of labels:
documentclassarticle
newcommandrepitem%
addtocounterenumi-1%
letsavedtheenumitheenumi
renewcommandtheenumiarabicenumiitemasterisk%
itemlettheenumisavedtheenumi
protecteddefitemasteriskrlap*
begindocument
beginenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endenumerate
enddocument
With enumitem
:
documentclassarticle
usepackageenumitem
newlistfancyenumerateenumerate1
setlist[fancyenumerate]label=arabic*perhapsasterisk.
protecteddefperhapsasterisk
protecteddefitemasteriskrlap*
newcommandrepitem%
addtocounterfancyenumeratei-1%
letperhapsasteriskitemasterisk
itemdefperhapsasterisk%
begindocument
beginfancyenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endfancyenumerate
enddocument
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
add a comment |Â
up vote
0
down vote
A small (referable) implementation doing what you're asking for:
documentclassarticle
usepackagexparse
makeatletter
NewDocumentCommand myitem o
%
IfValueTF #1
%
item[#1]%
%
addtocounterenumi-1%
lettheenumiBAKtheenumi
deftheenumitheenumiBAKmyitem@asterisk%
item
lettheenumitheenumiBAK
%
newcommandmyitem@asterisk
protecteddefmyitem@asterisktextsuperscript*
makeatletter
begindocument
beginenumerate
item Hihi
myitem Haha
item Huhu
endenumerate
enddocument
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.enumitem
?
â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
It is better to let the very right of labels aligned together. Define newcommandmyitemitem[$vphantomx^*$theenumi]
and use setlist[enumerate,1]leftmargin=*, label=arabic*.
in the preamble.
documentclassreport
usepackageenumitem
newcommandmyitemitem[$vphantomx^*$theenumi]
setlist[enumerate,1]leftmargin=*, label=arabic*.
begindocument
beginenumerate
item Item 1
item Item 2
myitem Item 2 (with asterisk)
item Item 3
item Item 4
item Item 5
endenumerate
enddocument
add a comment |Â
up vote
2
down vote
accepted
It is better to let the very right of labels aligned together. Define newcommandmyitemitem[$vphantomx^*$theenumi]
and use setlist[enumerate,1]leftmargin=*, label=arabic*.
in the preamble.
documentclassreport
usepackageenumitem
newcommandmyitemitem[$vphantomx^*$theenumi]
setlist[enumerate,1]leftmargin=*, label=arabic*.
begindocument
beginenumerate
item Item 1
item Item 2
myitem Item 2 (with asterisk)
item Item 3
item Item 4
item Item 5
endenumerate
enddocument
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
It is better to let the very right of labels aligned together. Define newcommandmyitemitem[$vphantomx^*$theenumi]
and use setlist[enumerate,1]leftmargin=*, label=arabic*.
in the preamble.
documentclassreport
usepackageenumitem
newcommandmyitemitem[$vphantomx^*$theenumi]
setlist[enumerate,1]leftmargin=*, label=arabic*.
begindocument
beginenumerate
item Item 1
item Item 2
myitem Item 2 (with asterisk)
item Item 3
item Item 4
item Item 5
endenumerate
enddocument
It is better to let the very right of labels aligned together. Define newcommandmyitemitem[$vphantomx^*$theenumi]
and use setlist[enumerate,1]leftmargin=*, label=arabic*.
in the preamble.
documentclassreport
usepackageenumitem
newcommandmyitemitem[$vphantomx^*$theenumi]
setlist[enumerate,1]leftmargin=*, label=arabic*.
begindocument
beginenumerate
item Item 1
item Item 2
myitem Item 2 (with asterisk)
item Item 3
item Item 4
item Item 5
endenumerate
enddocument
answered 3 hours ago
Al-Motasem Aldaoudeyeh
1,238211
1,238211
add a comment |Â
add a comment |Â
up vote
2
down vote
A âÂÂsimpleâ modification for a first level list with the default 1.
appearance of labels:
documentclassarticle
newcommandrepitem%
addtocounterenumi-1%
letsavedtheenumitheenumi
renewcommandtheenumiarabicenumiitemasterisk%
itemlettheenumisavedtheenumi
protecteddefitemasteriskrlap*
begindocument
beginenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endenumerate
enddocument
With enumitem
:
documentclassarticle
usepackageenumitem
newlistfancyenumerateenumerate1
setlist[fancyenumerate]label=arabic*perhapsasterisk.
protecteddefperhapsasterisk
protecteddefitemasteriskrlap*
newcommandrepitem%
addtocounterfancyenumeratei-1%
letperhapsasteriskitemasterisk
itemdefperhapsasterisk%
begindocument
beginfancyenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endfancyenumerate
enddocument
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
add a comment |Â
up vote
2
down vote
A âÂÂsimpleâ modification for a first level list with the default 1.
appearance of labels:
documentclassarticle
newcommandrepitem%
addtocounterenumi-1%
letsavedtheenumitheenumi
renewcommandtheenumiarabicenumiitemasterisk%
itemlettheenumisavedtheenumi
protecteddefitemasteriskrlap*
begindocument
beginenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endenumerate
enddocument
With enumitem
:
documentclassarticle
usepackageenumitem
newlistfancyenumerateenumerate1
setlist[fancyenumerate]label=arabic*perhapsasterisk.
protecteddefperhapsasterisk
protecteddefitemasteriskrlap*
newcommandrepitem%
addtocounterfancyenumeratei-1%
letperhapsasteriskitemasterisk
itemdefperhapsasterisk%
begindocument
beginfancyenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endfancyenumerate
enddocument
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
A âÂÂsimpleâ modification for a first level list with the default 1.
appearance of labels:
documentclassarticle
newcommandrepitem%
addtocounterenumi-1%
letsavedtheenumitheenumi
renewcommandtheenumiarabicenumiitemasterisk%
itemlettheenumisavedtheenumi
protecteddefitemasteriskrlap*
begindocument
beginenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endenumerate
enddocument
With enumitem
:
documentclassarticle
usepackageenumitem
newlistfancyenumerateenumerate1
setlist[fancyenumerate]label=arabic*perhapsasterisk.
protecteddefperhapsasterisk
protecteddefitemasteriskrlap*
newcommandrepitem%
addtocounterfancyenumeratei-1%
letperhapsasteriskitemasterisk
itemdefperhapsasterisk%
begindocument
beginfancyenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endfancyenumerate
enddocument
A âÂÂsimpleâ modification for a first level list with the default 1.
appearance of labels:
documentclassarticle
newcommandrepitem%
addtocounterenumi-1%
letsavedtheenumitheenumi
renewcommandtheenumiarabicenumiitemasterisk%
itemlettheenumisavedtheenumi
protecteddefitemasteriskrlap*
begindocument
beginenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endenumerate
enddocument
With enumitem
:
documentclassarticle
usepackageenumitem
newlistfancyenumerateenumerate1
setlist[fancyenumerate]label=arabic*perhapsasterisk.
protecteddefperhapsasterisk
protecteddefitemasteriskrlap*
newcommandrepitem%
addtocounterfancyenumeratei-1%
letperhapsasteriskitemasterisk
itemdefperhapsasterisk%
begindocument
beginfancyenumerate
item One
item Two
repitem Two*
item Three
item Four
repitem Four*
endfancyenumerate
enddocument
edited 3 hours ago
answered 3 hours ago
egreg
682k8318183064
682k8318183064
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
add a comment |Â
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
The number is repeated by I'm note getting the asterisk. Maybe because I use the enumitem package. I don't know
â DexzMen
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
@DexzMen Don't hide important details.
â egreg
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
I'm sorry. Just trying to finish my thesis. I'm a total noob;)
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
BTW. I came with the idea of enumitem just after Skillmon answer.
â DexzMen
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
@DexzMen I added a solution for enumitem
â egreg
3 hours ago
add a comment |Â
up vote
0
down vote
A small (referable) implementation doing what you're asking for:
documentclassarticle
usepackagexparse
makeatletter
NewDocumentCommand myitem o
%
IfValueTF #1
%
item[#1]%
%
addtocounterenumi-1%
lettheenumiBAKtheenumi
deftheenumitheenumiBAKmyitem@asterisk%
item
lettheenumitheenumiBAK
%
newcommandmyitem@asterisk
protecteddefmyitem@asterisktextsuperscript*
makeatletter
begindocument
beginenumerate
item Hihi
myitem Haha
item Huhu
endenumerate
enddocument
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.enumitem
?
â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
add a comment |Â
up vote
0
down vote
A small (referable) implementation doing what you're asking for:
documentclassarticle
usepackagexparse
makeatletter
NewDocumentCommand myitem o
%
IfValueTF #1
%
item[#1]%
%
addtocounterenumi-1%
lettheenumiBAKtheenumi
deftheenumitheenumiBAKmyitem@asterisk%
item
lettheenumitheenumiBAK
%
newcommandmyitem@asterisk
protecteddefmyitem@asterisktextsuperscript*
makeatletter
begindocument
beginenumerate
item Hihi
myitem Haha
item Huhu
endenumerate
enddocument
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.enumitem
?
â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A small (referable) implementation doing what you're asking for:
documentclassarticle
usepackagexparse
makeatletter
NewDocumentCommand myitem o
%
IfValueTF #1
%
item[#1]%
%
addtocounterenumi-1%
lettheenumiBAKtheenumi
deftheenumitheenumiBAKmyitem@asterisk%
item
lettheenumitheenumiBAK
%
newcommandmyitem@asterisk
protecteddefmyitem@asterisktextsuperscript*
makeatletter
begindocument
beginenumerate
item Hihi
myitem Haha
item Huhu
endenumerate
enddocument
A small (referable) implementation doing what you're asking for:
documentclassarticle
usepackagexparse
makeatletter
NewDocumentCommand myitem o
%
IfValueTF #1
%
item[#1]%
%
addtocounterenumi-1%
lettheenumiBAKtheenumi
deftheenumitheenumiBAKmyitem@asterisk%
item
lettheenumitheenumiBAK
%
newcommandmyitem@asterisk
protecteddefmyitem@asterisktextsuperscript*
makeatletter
begindocument
beginenumerate
item Hihi
myitem Haha
item Huhu
endenumerate
enddocument
edited 3 hours ago
answered 3 hours ago
Skillmon
17.7k11535
17.7k11535
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.enumitem
?
â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
add a comment |Â
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.enumitem
?
â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
Somehow I cannot make it work. I use documentclassbook and place the relevant part of the code in the main .tex while the chapters are added by subfile. The list is supposed to be in one of the chapters
â DexzMen
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.
enumitem
?â Skillmon
3 hours ago
@DexzMen do you load any packages changing lists, like e.g.
enumitem
?â Skillmon
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
unfortunately yes, I had to add that because equations in the enumerate kept on going out of textwidth
â DexzMen
3 hours ago
add a comment |Â
DexzMen is a new contributor. Be nice, and check out our Code of Conduct.
DexzMen is a new contributor. Be nice, and check out our Code of Conduct.
DexzMen is a new contributor. Be nice, and check out our Code of Conduct.
DexzMen is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451307%2fenumerated-list-with-repeated-numbers-with-an-asterisk%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Welcome to TeX.SX! Do you plan to use
label
andref
for such modified items?â egreg
3 hours ago
No, just need a fancy looking list.
â DexzMen
3 hours ago