How can I create a list with a step size different from 1?
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I have to type a lot of questions, but only every 4th (4,8,12,...), so I was wondering if I can get Latex to number the items automatically.
I know I can change each item numbering manually, but I'd like the counter to increase by 4s automatically.
I have no idea where to start, a google search just showed the properties I was already familiar with (arabic, add a label, alph), but nothing referring to a step size. It might be called something different, so I don't know which parameter to set (if any).
lists enumerate
add a comment |Â
up vote
3
down vote
favorite
I have to type a lot of questions, but only every 4th (4,8,12,...), so I was wondering if I can get Latex to number the items automatically.
I know I can change each item numbering manually, but I'd like the counter to increase by 4s automatically.
I have no idea where to start, a google search just showed the properties I was already familiar with (arabic, add a label, alph), but nothing referring to a step size. It might be called something different, so I don't know which parameter to set (if any).
lists enumerate
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have to type a lot of questions, but only every 4th (4,8,12,...), so I was wondering if I can get Latex to number the items automatically.
I know I can change each item numbering manually, but I'd like the counter to increase by 4s automatically.
I have no idea where to start, a google search just showed the properties I was already familiar with (arabic, add a label, alph), but nothing referring to a step size. It might be called something different, so I don't know which parameter to set (if any).
lists enumerate
I have to type a lot of questions, but only every 4th (4,8,12,...), so I was wondering if I can get Latex to number the items automatically.
I know I can change each item numbering manually, but I'd like the counter to increase by 4s automatically.
I have no idea where to start, a google search just showed the properties I was already familiar with (arabic, add a label, alph), but nothing referring to a step size. It might be called something different, so I don't know which parameter to set (if any).
lists enumerate
lists enumerate
asked 1 hour ago
Mahoma
306111
306111
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
5
down vote
accepted
You can create a new command that does the trick with everything you know about counters ;)
documentclassarticle
newcommandmyitemaddtocounterenumi3item
begindocument
beginenumerate
myitem One
myitem Two
myitem dots
endenumerate
enddocument
You could create a new command with a step size as argument as well:
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxitem
Or "set a step size" in the beginning:
documentclassarticle
letolditemitem
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxolditem
newcommandsetenumstep[1]%
renewcommanditemmyitem#1
begindocument
beginenumerate
myitem4 One
myitem4 Two
myitem4 dots
endenumerate
beginenumerate
setenumstep4
item One
item Two
item dots
endenumerate
enddocument
These enumerations both result in the same as the first one posted.
Probably you know it already, but might be helpful anyway: If you want to tweak single items, you can do it manually with
item[4.] One
item[8.] Two
add a comment |Â
up vote
2
down vote
If you're not concerned about label
ing the item
s, you can use the following setup:
documentclassarticle
usepackageenumitem,etoolbox,xfp
newlistfourenumerateenumerate4
setlist[fourenumerate]label = mulfourvalue*.
newrobustcmdmulfour[1]inteval#1 * 4
begindocument
beginenumerate
item One
item Two
item ldots
endenumerate
beginfourenumerate
item One
item Two
item ldots
endfourenumerate
enddocument
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
You can create a new command that does the trick with everything you know about counters ;)
documentclassarticle
newcommandmyitemaddtocounterenumi3item
begindocument
beginenumerate
myitem One
myitem Two
myitem dots
endenumerate
enddocument
You could create a new command with a step size as argument as well:
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxitem
Or "set a step size" in the beginning:
documentclassarticle
letolditemitem
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxolditem
newcommandsetenumstep[1]%
renewcommanditemmyitem#1
begindocument
beginenumerate
myitem4 One
myitem4 Two
myitem4 dots
endenumerate
beginenumerate
setenumstep4
item One
item Two
item dots
endenumerate
enddocument
These enumerations both result in the same as the first one posted.
Probably you know it already, but might be helpful anyway: If you want to tweak single items, you can do it manually with
item[4.] One
item[8.] Two
add a comment |Â
up vote
5
down vote
accepted
You can create a new command that does the trick with everything you know about counters ;)
documentclassarticle
newcommandmyitemaddtocounterenumi3item
begindocument
beginenumerate
myitem One
myitem Two
myitem dots
endenumerate
enddocument
You could create a new command with a step size as argument as well:
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxitem
Or "set a step size" in the beginning:
documentclassarticle
letolditemitem
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxolditem
newcommandsetenumstep[1]%
renewcommanditemmyitem#1
begindocument
beginenumerate
myitem4 One
myitem4 Two
myitem4 dots
endenumerate
beginenumerate
setenumstep4
item One
item Two
item dots
endenumerate
enddocument
These enumerations both result in the same as the first one posted.
Probably you know it already, but might be helpful anyway: If you want to tweak single items, you can do it manually with
item[4.] One
item[8.] Two
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
You can create a new command that does the trick with everything you know about counters ;)
documentclassarticle
newcommandmyitemaddtocounterenumi3item
begindocument
beginenumerate
myitem One
myitem Two
myitem dots
endenumerate
enddocument
You could create a new command with a step size as argument as well:
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxitem
Or "set a step size" in the beginning:
documentclassarticle
letolditemitem
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxolditem
newcommandsetenumstep[1]%
renewcommanditemmyitem#1
begindocument
beginenumerate
myitem4 One
myitem4 Two
myitem4 dots
endenumerate
beginenumerate
setenumstep4
item One
item Two
item dots
endenumerate
enddocument
These enumerations both result in the same as the first one posted.
Probably you know it already, but might be helpful anyway: If you want to tweak single items, you can do it manually with
item[4.] One
item[8.] Two
You can create a new command that does the trick with everything you know about counters ;)
documentclassarticle
newcommandmyitemaddtocounterenumi3item
begindocument
beginenumerate
myitem One
myitem Two
myitem dots
endenumerate
enddocument
You could create a new command with a step size as argument as well:
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxitem
Or "set a step size" in the beginning:
documentclassarticle
letolditemitem
newcommandmyitem[1]addtocounterenuminumexpr#1-1relaxolditem
newcommandsetenumstep[1]%
renewcommanditemmyitem#1
begindocument
beginenumerate
myitem4 One
myitem4 Two
myitem4 dots
endenumerate
beginenumerate
setenumstep4
item One
item Two
item dots
endenumerate
enddocument
These enumerations both result in the same as the first one posted.
Probably you know it already, but might be helpful anyway: If you want to tweak single items, you can do it manually with
item[4.] One
item[8.] Two
edited 43 mins ago
answered 57 mins ago
nox
3,015418
3,015418
add a comment |Â
add a comment |Â
up vote
2
down vote
If you're not concerned about label
ing the item
s, you can use the following setup:
documentclassarticle
usepackageenumitem,etoolbox,xfp
newlistfourenumerateenumerate4
setlist[fourenumerate]label = mulfourvalue*.
newrobustcmdmulfour[1]inteval#1 * 4
begindocument
beginenumerate
item One
item Two
item ldots
endenumerate
beginfourenumerate
item One
item Two
item ldots
endfourenumerate
enddocument
add a comment |Â
up vote
2
down vote
If you're not concerned about label
ing the item
s, you can use the following setup:
documentclassarticle
usepackageenumitem,etoolbox,xfp
newlistfourenumerateenumerate4
setlist[fourenumerate]label = mulfourvalue*.
newrobustcmdmulfour[1]inteval#1 * 4
begindocument
beginenumerate
item One
item Two
item ldots
endenumerate
beginfourenumerate
item One
item Two
item ldots
endfourenumerate
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
If you're not concerned about label
ing the item
s, you can use the following setup:
documentclassarticle
usepackageenumitem,etoolbox,xfp
newlistfourenumerateenumerate4
setlist[fourenumerate]label = mulfourvalue*.
newrobustcmdmulfour[1]inteval#1 * 4
begindocument
beginenumerate
item One
item Two
item ldots
endenumerate
beginfourenumerate
item One
item Two
item ldots
endfourenumerate
enddocument
If you're not concerned about label
ing the item
s, you can use the following setup:
documentclassarticle
usepackageenumitem,etoolbox,xfp
newlistfourenumerateenumerate4
setlist[fourenumerate]label = mulfourvalue*.
newrobustcmdmulfour[1]inteval#1 * 4
begindocument
beginenumerate
item One
item Two
item ldots
endenumerate
beginfourenumerate
item One
item Two
item ldots
endfourenumerate
enddocument
answered 39 mins ago
Werner
421k589161585
421k589161585
add a comment |Â
add a comment |Â
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%2f451648%2fhow-can-i-create-a-list-with-a-step-size-different-from-1%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