Enumerated List with multiple levels within Table
Good morning everybody,
I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example).
Writing Items in the table and continue enumeration in the next row worked with resume. But I was not able to create sublevels.
Additionally I was not able to bring the items in a "smaller row height". The margin over the items is Ok in the example, but below I was not able to reduce the space.
Can anyone help?
Regards,
Christian
documentclass{scrreprt}
usepackage{enumitem}
begin{document}
begin{tabular}{|p{.1textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{enumerate}[series=tableLevel1,nosep,leftmargin=*,after=vspace{-0.2baselineskip},before=vspace{-0.2baselineskip}] item end{enumerate} & bla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blabla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blablub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foo & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foobla & \
hline
end{tabular}
end{document}
tables enumerate
add a comment |
Good morning everybody,
I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example).
Writing Items in the table and continue enumeration in the next row worked with resume. But I was not able to create sublevels.
Additionally I was not able to bring the items in a "smaller row height". The margin over the items is Ok in the example, but below I was not able to reduce the space.
Can anyone help?
Regards,
Christian
documentclass{scrreprt}
usepackage{enumitem}
begin{document}
begin{tabular}{|p{.1textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{enumerate}[series=tableLevel1,nosep,leftmargin=*,after=vspace{-0.2baselineskip},before=vspace{-0.2baselineskip}] item end{enumerate} & bla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blabla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blablub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foo & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foobla & \
hline
end{tabular}
end{document}
tables enumerate
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55
add a comment |
Good morning everybody,
I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example).
Writing Items in the table and continue enumeration in the next row worked with resume. But I was not able to create sublevels.
Additionally I was not able to bring the items in a "smaller row height". The margin over the items is Ok in the example, but below I was not able to reduce the space.
Can anyone help?
Regards,
Christian
documentclass{scrreprt}
usepackage{enumitem}
begin{document}
begin{tabular}{|p{.1textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{enumerate}[series=tableLevel1,nosep,leftmargin=*,after=vspace{-0.2baselineskip},before=vspace{-0.2baselineskip}] item end{enumerate} & bla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blabla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blablub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foo & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foobla & \
hline
end{tabular}
end{document}
tables enumerate
Good morning everybody,
I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example).
Writing Items in the table and continue enumeration in the next row worked with resume. But I was not able to create sublevels.
Additionally I was not able to bring the items in a "smaller row height". The margin over the items is Ok in the example, but below I was not able to reduce the space.
Can anyone help?
Regards,
Christian
documentclass{scrreprt}
usepackage{enumitem}
begin{document}
begin{tabular}{|p{.1textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{enumerate}[series=tableLevel1,nosep,leftmargin=*,after=vspace{-0.2baselineskip},before=vspace{-0.2baselineskip}] item end{enumerate} & bla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blabla & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & blablub & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foo & \
hline
begin{enumerate}[resume*=tableLevel1] item end{enumerate} & foobla & \
hline
end{tabular}
end{document}
tables enumerate
tables enumerate
edited Jan 12 at 8:40
JouleV
2,344628
2,344628
asked Jan 12 at 8:38
ChrisPChrisP
132
132
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55
add a comment |
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55
add a comment |
2 Answers
2
active
oldest
votes
I would define a specific environment:
documentclass{article}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{|l|l|l|}
hline
Identifier & Contents 1 & Contents 2 \
hline
item & blabla & blabla \
hline
item & blu & blublu \
hline
subitemlabel{test} & blabla & blabla \
hline
subitem & blub & blub \
hline
item & xyz & zyx \
hline
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
You can add subsubitem
in a similar fashion if you need more levels.
A non caged table:
documentclass{article}
usepackage{booktabs}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{lll}
toprule
Identifier & Contents 1 & Contents 2 \
midrule
item & blabla & blabla \
midrule
item & blu & blublu \
subitemlabel{test} & blabla & blabla \
subitem & blub & blub \
midrule
item & xyz & zyx \
bottomrule
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
add a comment |
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{tabenum}[series=tableLevel1]itemquadend{tabenum} & bla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blub & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum} itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blablub & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foo & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[series=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[resume*=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foobla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
end{tabular}
end{document}
Here is slightly more automated version that results in the same output as shown above:
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
newcommand{tabenumfirst}[1]{begin{tabenum}[#1=tableLevel1]itemquadend{tabenum}}
newcommand{tabenumsecond}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[#1=tableLevel2] itemquad end{tabenum}end{tabenum}}
newcommand{tabenumthird}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[#1=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
tabenumfirst{series} & bla & \
hline
tabenumfirst{resume*} & blub & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumfirst{resume*} & blablub & \
hline
tabenumfirst{resume*} & foo & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
tabenumthird{series} & blabla & \
hline
tabenumthird{resume*} & blabla & \
hline
tabenumfirst{resume*} & foobla & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
end{tabular}
end{document}
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469802%2fenumerated-list-with-multiple-levels-within-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would define a specific environment:
documentclass{article}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{|l|l|l|}
hline
Identifier & Contents 1 & Contents 2 \
hline
item & blabla & blabla \
hline
item & blu & blublu \
hline
subitemlabel{test} & blabla & blabla \
hline
subitem & blub & blub \
hline
item & xyz & zyx \
hline
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
You can add subsubitem
in a similar fashion if you need more levels.
A non caged table:
documentclass{article}
usepackage{booktabs}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{lll}
toprule
Identifier & Contents 1 & Contents 2 \
midrule
item & blabla & blabla \
midrule
item & blu & blublu \
subitemlabel{test} & blabla & blabla \
subitem & blub & blub \
midrule
item & xyz & zyx \
bottomrule
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
add a comment |
I would define a specific environment:
documentclass{article}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{|l|l|l|}
hline
Identifier & Contents 1 & Contents 2 \
hline
item & blabla & blabla \
hline
item & blu & blublu \
hline
subitemlabel{test} & blabla & blabla \
hline
subitem & blub & blub \
hline
item & xyz & zyx \
hline
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
You can add subsubitem
in a similar fashion if you need more levels.
A non caged table:
documentclass{article}
usepackage{booktabs}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{lll}
toprule
Identifier & Contents 1 & Contents 2 \
midrule
item & blabla & blabla \
midrule
item & blu & blublu \
subitemlabel{test} & blabla & blabla \
subitem & blub & blub \
midrule
item & xyz & zyx \
bottomrule
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
add a comment |
I would define a specific environment:
documentclass{article}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{|l|l|l|}
hline
Identifier & Contents 1 & Contents 2 \
hline
item & blabla & blabla \
hline
item & blu & blublu \
hline
subitemlabel{test} & blabla & blabla \
hline
subitem & blub & blub \
hline
item & xyz & zyx \
hline
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
You can add subsubitem
in a similar fashion if you need more levels.
A non caged table:
documentclass{article}
usepackage{booktabs}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{lll}
toprule
Identifier & Contents 1 & Contents 2 \
midrule
item & blabla & blabla \
midrule
item & blu & blublu \
subitemlabel{test} & blabla & blabla \
subitem & blub & blub \
midrule
item & xyz & zyx \
bottomrule
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
I would define a specific environment:
documentclass{article}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{|l|l|l|}
hline
Identifier & Contents 1 & Contents 2 \
hline
item & blabla & blabla \
hline
item & blu & blublu \
hline
subitemlabel{test} & blabla & blabla \
hline
subitem & blub & blub \
hline
item & xyz & zyx \
hline
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
You can add subsubitem
in a similar fashion if you need more levels.
A non caged table:
documentclass{article}
usepackage{booktabs}
newcounter{myenumi}
newcounter{myenumii}[myenumi]
renewcommand{themyenumi}{arabic{myenumi}}
renewcommand{themyenumii}{themyenumi.arabic{myenumii}}
newenvironment{enumtabular}[1]
{%
setcounter{myenumi}{0}%
setcounter{myenumii}{0}%
renewcommand{item}{refstepcounter{myenumi}themyenumi.}%
renewcommand{subitem}{refstepcounter{myenumii}quadthemyenumii.}%
begin{tabular}{#1}
}
{end{tabular}}
begin{document}
begin{enumtabular}{lll}
toprule
Identifier & Contents 1 & Contents 2 \
midrule
item & blabla & blabla \
midrule
item & blu & blublu \
subitemlabel{test} & blabla & blabla \
subitem & blub & blub \
midrule
item & xyz & zyx \
bottomrule
end{enumtabular}
bigskip
Reference: ref{test}
end{document}
answered Jan 12 at 11:22
egregegreg
713k8618953184
713k8618953184
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
add a comment |
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
Hello egreg, thanks, that is perfect! Regards, Christian
– ChrisP
Jan 13 at 21:17
add a comment |
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{tabenum}[series=tableLevel1]itemquadend{tabenum} & bla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blub & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum} itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blablub & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foo & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[series=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[resume*=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foobla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
end{tabular}
end{document}
Here is slightly more automated version that results in the same output as shown above:
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
newcommand{tabenumfirst}[1]{begin{tabenum}[#1=tableLevel1]itemquadend{tabenum}}
newcommand{tabenumsecond}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[#1=tableLevel2] itemquad end{tabenum}end{tabenum}}
newcommand{tabenumthird}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[#1=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
tabenumfirst{series} & bla & \
hline
tabenumfirst{resume*} & blub & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumfirst{resume*} & blablub & \
hline
tabenumfirst{resume*} & foo & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
tabenumthird{series} & blabla & \
hline
tabenumthird{resume*} & blabla & \
hline
tabenumfirst{resume*} & foobla & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
end{tabular}
end{document}
add a comment |
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{tabenum}[series=tableLevel1]itemquadend{tabenum} & bla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blub & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum} itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blablub & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foo & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[series=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[resume*=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foobla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
end{tabular}
end{document}
Here is slightly more automated version that results in the same output as shown above:
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
newcommand{tabenumfirst}[1]{begin{tabenum}[#1=tableLevel1]itemquadend{tabenum}}
newcommand{tabenumsecond}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[#1=tableLevel2] itemquad end{tabenum}end{tabenum}}
newcommand{tabenumthird}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[#1=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
tabenumfirst{series} & bla & \
hline
tabenumfirst{resume*} & blub & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumfirst{resume*} & blablub & \
hline
tabenumfirst{resume*} & foo & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
tabenumthird{series} & blabla & \
hline
tabenumthird{resume*} & blabla & \
hline
tabenumfirst{resume*} & foobla & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
end{tabular}
end{document}
add a comment |
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{tabenum}[series=tableLevel1]itemquadend{tabenum} & bla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blub & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum} itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blablub & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foo & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[series=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[resume*=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foobla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
end{tabular}
end{document}
Here is slightly more automated version that results in the same output as shown above:
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
newcommand{tabenumfirst}[1]{begin{tabenum}[#1=tableLevel1]itemquadend{tabenum}}
newcommand{tabenumsecond}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[#1=tableLevel2] itemquad end{tabenum}end{tabenum}}
newcommand{tabenumthird}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[#1=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
tabenumfirst{series} & bla & \
hline
tabenumfirst{resume*} & blub & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumfirst{resume*} & blablub & \
hline
tabenumfirst{resume*} & foo & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
tabenumthird{series} & blabla & \
hline
tabenumthird{resume*} & blabla & \
hline
tabenumfirst{resume*} & foobla & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
end{tabular}
end{document}
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
begin{tabenum}[series=tableLevel1]itemquadend{tabenum} & bla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blub & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum} itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & blablub & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foo & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[series=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[resume*=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1] itemquad end{tabenum} & foobla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[series=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2] itemquad end{tabenum}end{tabenum} & blabla & \
hline
end{tabular}
end{document}
Here is slightly more automated version that results in the same output as shown above:
documentclass{scrreprt}
usepackage{enumitem}
newlist{tabenum}{enumerate}{3}
setlist[tabenum]{label*=arabic*.,leftmargin=*}
setlist[tabenum,1]{nosep,leftmargin=*,before=vspace{-0.5baselineskip},after=vspace{-1baselineskip}}
newcommand{tabenumfirst}[1]{begin{tabenum}[#1=tableLevel1]itemquadend{tabenum}}
newcommand{tabenumsecond}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[#1=tableLevel2] itemquad end{tabenum}end{tabenum}}
newcommand{tabenumthird}[1]{begin{tabenum}[resume*=tableLevel1]itembegin{tabenum}[resume*=tableLevel2]itembegin{tabenum}[#1=tableLevel3] itemquad end{tabenum}end{tabenum}end{tabenum}}
begin{document}
begin{tabular}{|p{.175textwidth}|l|l|l|}
hline
Identifier & Content 1 & Content 2 \
hline
hline
tabenumfirst{series} & bla & \
hline
tabenumfirst{resume*} & blub & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumfirst{resume*} & blablub & \
hline
tabenumfirst{resume*} & foo & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
tabenumthird{series} & blabla & \
hline
tabenumthird{resume*} & blabla & \
hline
tabenumfirst{resume*} & foobla & \
hline
tabenumsecond{series} & blabla & \
hline
tabenumsecond{resume*} & blabla & \
hline
end{tabular}
end{document}
edited Jan 12 at 10:37
answered Jan 12 at 9:53
leandriisleandriis
8,5221529
8,5221529
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469802%2fenumerated-list-with-multiple-levels-within-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How deep do you want your sublevels ? If you are limited to 1 sublevels, a crude solution would be to define 2 counters and increment them as you need to.
– alex_reader
Jan 12 at 8:47
hi alex, I need at least 2 sublevels
– ChrisP
Jan 12 at 8:55