Is there any way to define the enumerate label in general?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
If I define numberenum
like following,
newenvironmentnumberenum
renewcommandlabelenumi(arabicenumi)
renewcommandlabelenumii(arabicenumi.arabicenumii)
renewcommandlabelenumiii(arabicenumi.arabicenumii.arabicenumiii)
beginenumerate
endenumerate
beginnumberenum
item depth 1
beginenumerate
item depth 2
beginenumerate
item depth 3
endenumerate
endenumerate
endnumberenum
Then I can get the result like above.
However, after depth 4, this code doesn't work. It's easy to redefine labelenumiv
, but the point is generating the label keeping this pattern until the depth limit of enumerate list.
custom labels for enumerate beyond level 4
This article solved a similar problem using label*
method. But my case is more tricky because of brackets. Is there any way to define numberenum
properly?
enumerate labels
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
If I define numberenum
like following,
newenvironmentnumberenum
renewcommandlabelenumi(arabicenumi)
renewcommandlabelenumii(arabicenumi.arabicenumii)
renewcommandlabelenumiii(arabicenumi.arabicenumii.arabicenumiii)
beginenumerate
endenumerate
beginnumberenum
item depth 1
beginenumerate
item depth 2
beginenumerate
item depth 3
endenumerate
endenumerate
endnumberenum
Then I can get the result like above.
However, after depth 4, this code doesn't work. It's easy to redefine labelenumiv
, but the point is generating the label keeping this pattern until the depth limit of enumerate list.
custom labels for enumerate beyond level 4
This article solved a similar problem using label*
method. But my case is more tricky because of brackets. Is there any way to define numberenum
properly?
enumerate labels
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
enumitem
does not provide a native way of wrapping labels.
– Werner
2 hours ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
If I define numberenum
like following,
newenvironmentnumberenum
renewcommandlabelenumi(arabicenumi)
renewcommandlabelenumii(arabicenumi.arabicenumii)
renewcommandlabelenumiii(arabicenumi.arabicenumii.arabicenumiii)
beginenumerate
endenumerate
beginnumberenum
item depth 1
beginenumerate
item depth 2
beginenumerate
item depth 3
endenumerate
endenumerate
endnumberenum
Then I can get the result like above.
However, after depth 4, this code doesn't work. It's easy to redefine labelenumiv
, but the point is generating the label keeping this pattern until the depth limit of enumerate list.
custom labels for enumerate beyond level 4
This article solved a similar problem using label*
method. But my case is more tricky because of brackets. Is there any way to define numberenum
properly?
enumerate labels
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
If I define numberenum
like following,
newenvironmentnumberenum
renewcommandlabelenumi(arabicenumi)
renewcommandlabelenumii(arabicenumi.arabicenumii)
renewcommandlabelenumiii(arabicenumi.arabicenumii.arabicenumiii)
beginenumerate
endenumerate
beginnumberenum
item depth 1
beginenumerate
item depth 2
beginenumerate
item depth 3
endenumerate
endenumerate
endnumberenum
Then I can get the result like above.
However, after depth 4, this code doesn't work. It's easy to redefine labelenumiv
, but the point is generating the label keeping this pattern until the depth limit of enumerate list.
custom labels for enumerate beyond level 4
This article solved a similar problem using label*
method. But my case is more tricky because of brackets. Is there any way to define numberenum
properly?
enumerate labels
enumerate labels
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 5 hours ago
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 5 hours ago
Youngseok Choe
114
114
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Youngseok Choe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
enumitem
does not provide a native way of wrapping labels.
– Werner
2 hours ago
add a comment |Â
enumitem
does not provide a native way of wrapping labels.
– Werner
2 hours ago
enumitem
does not provide a native way of wrapping labels.– Werner
2 hours ago
enumitem
does not provide a native way of wrapping labels.– Werner
2 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
EDIT: Ahem. I just realised that there is a way simpler method to accomplish the same thing...
The enumitem
package has a format
key, which is normally used to set the font of the items labels (the font
key is an alias for it). The formatted label will look like <format><label>
, where <format>
is the value of the format
key and <label>
is the value of the label
key.
You can define a macro that wraps its argument in parentheses and use that for the format
key, like this: (I made the labels bold to show that this is still possible, but you can't swap bfseries
and parenthesize
.)
documentclassarticle
usepackageenumitem
renewlistenumerateenumerate10 %% <- set the max depth to 10
newcommand*parenthesize[1](#1)
setlist[enumerate]label*=.arabic*,format=bfseriesparenthesize,leftmargin=2em
setlist[enumerate,1]label=arabic* %% <- set the base level label separately
begindocument
beginenumerate
item this is level 1
item this is still level 1
beginenumerate
item this is level 2
item this is still level 2
beginenumerate
item this is level 3
item this is still level 3
beginenumerate
item this is level 4
item this is still level 4
beginenumerate
item this is level 5 labeldeepitem
item this is still level 5
endenumerate
endenumerate
endenumerate
endenumerate
endenumerate
This is a reference to second-to-last item: refdeepitem.
enddocument
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
EDIT: Ahem. I just realised that there is a way simpler method to accomplish the same thing...
The enumitem
package has a format
key, which is normally used to set the font of the items labels (the font
key is an alias for it). The formatted label will look like <format><label>
, where <format>
is the value of the format
key and <label>
is the value of the label
key.
You can define a macro that wraps its argument in parentheses and use that for the format
key, like this: (I made the labels bold to show that this is still possible, but you can't swap bfseries
and parenthesize
.)
documentclassarticle
usepackageenumitem
renewlistenumerateenumerate10 %% <- set the max depth to 10
newcommand*parenthesize[1](#1)
setlist[enumerate]label*=.arabic*,format=bfseriesparenthesize,leftmargin=2em
setlist[enumerate,1]label=arabic* %% <- set the base level label separately
begindocument
beginenumerate
item this is level 1
item this is still level 1
beginenumerate
item this is level 2
item this is still level 2
beginenumerate
item this is level 3
item this is still level 3
beginenumerate
item this is level 4
item this is still level 4
beginenumerate
item this is level 5 labeldeepitem
item this is still level 5
endenumerate
endenumerate
endenumerate
endenumerate
endenumerate
This is a reference to second-to-last item: refdeepitem.
enddocument
add a comment |Â
up vote
3
down vote
EDIT: Ahem. I just realised that there is a way simpler method to accomplish the same thing...
The enumitem
package has a format
key, which is normally used to set the font of the items labels (the font
key is an alias for it). The formatted label will look like <format><label>
, where <format>
is the value of the format
key and <label>
is the value of the label
key.
You can define a macro that wraps its argument in parentheses and use that for the format
key, like this: (I made the labels bold to show that this is still possible, but you can't swap bfseries
and parenthesize
.)
documentclassarticle
usepackageenumitem
renewlistenumerateenumerate10 %% <- set the max depth to 10
newcommand*parenthesize[1](#1)
setlist[enumerate]label*=.arabic*,format=bfseriesparenthesize,leftmargin=2em
setlist[enumerate,1]label=arabic* %% <- set the base level label separately
begindocument
beginenumerate
item this is level 1
item this is still level 1
beginenumerate
item this is level 2
item this is still level 2
beginenumerate
item this is level 3
item this is still level 3
beginenumerate
item this is level 4
item this is still level 4
beginenumerate
item this is level 5 labeldeepitem
item this is still level 5
endenumerate
endenumerate
endenumerate
endenumerate
endenumerate
This is a reference to second-to-last item: refdeepitem.
enddocument
add a comment |Â
up vote
3
down vote
up vote
3
down vote
EDIT: Ahem. I just realised that there is a way simpler method to accomplish the same thing...
The enumitem
package has a format
key, which is normally used to set the font of the items labels (the font
key is an alias for it). The formatted label will look like <format><label>
, where <format>
is the value of the format
key and <label>
is the value of the label
key.
You can define a macro that wraps its argument in parentheses and use that for the format
key, like this: (I made the labels bold to show that this is still possible, but you can't swap bfseries
and parenthesize
.)
documentclassarticle
usepackageenumitem
renewlistenumerateenumerate10 %% <- set the max depth to 10
newcommand*parenthesize[1](#1)
setlist[enumerate]label*=.arabic*,format=bfseriesparenthesize,leftmargin=2em
setlist[enumerate,1]label=arabic* %% <- set the base level label separately
begindocument
beginenumerate
item this is level 1
item this is still level 1
beginenumerate
item this is level 2
item this is still level 2
beginenumerate
item this is level 3
item this is still level 3
beginenumerate
item this is level 4
item this is still level 4
beginenumerate
item this is level 5 labeldeepitem
item this is still level 5
endenumerate
endenumerate
endenumerate
endenumerate
endenumerate
This is a reference to second-to-last item: refdeepitem.
enddocument
EDIT: Ahem. I just realised that there is a way simpler method to accomplish the same thing...
The enumitem
package has a format
key, which is normally used to set the font of the items labels (the font
key is an alias for it). The formatted label will look like <format><label>
, where <format>
is the value of the format
key and <label>
is the value of the label
key.
You can define a macro that wraps its argument in parentheses and use that for the format
key, like this: (I made the labels bold to show that this is still possible, but you can't swap bfseries
and parenthesize
.)
documentclassarticle
usepackageenumitem
renewlistenumerateenumerate10 %% <- set the max depth to 10
newcommand*parenthesize[1](#1)
setlist[enumerate]label*=.arabic*,format=bfseriesparenthesize,leftmargin=2em
setlist[enumerate,1]label=arabic* %% <- set the base level label separately
begindocument
beginenumerate
item this is level 1
item this is still level 1
beginenumerate
item this is level 2
item this is still level 2
beginenumerate
item this is level 3
item this is still level 3
beginenumerate
item this is level 4
item this is still level 4
beginenumerate
item this is level 5 labeldeepitem
item this is still level 5
endenumerate
endenumerate
endenumerate
endenumerate
endenumerate
This is a reference to second-to-last item: refdeepitem.
enddocument
edited 18 mins ago
answered 2 hours ago
Circumscribe
2,348323
2,348323
add a comment |Â
add a comment |Â
Youngseok Choe is a new contributor. Be nice, and check out our Code of Conduct.
Youngseok Choe is a new contributor. Be nice, and check out our Code of Conduct.
Youngseok Choe is a new contributor. Be nice, and check out our Code of Conduct.
Youngseok Choe 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%2f458743%2fis-there-any-way-to-define-the-enumerate-label-in-general%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
enumitem
does not provide a native way of wrapping labels.– Werner
2 hours ago