Grouping enumerated list with different width? The Next CEO of Stack Overflowgrouping...
Is a distribution that is normal, but highly skewed, considered Gaussian?
What happens if you break a law in another country outside of that country?
Shortening a title without changing its meaning
How can a day be of 24 hours?
Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?
Why does the freezing point matter when picking cooler ice packs?
Calculate the Mean mean of two numbers
pgfplots: How to draw a tangent graph below two others?
Read/write a pipe-delimited file line by line with some simple text manipulation
Prodigo = pro + ago?
Which acid/base does a strong base/acid react when added to a buffer solution?
Is it OK to decorate a log book cover?
Find the majority element, which appears more than half the time
How exploitable/balanced is this homebrew spell: Spell Permanency?
Identify and count spells (Distinctive events within each group)
Does int main() need a declaration on C++?
My boss doesn't want me to have a side project
How to coordinate airplane tickets?
Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?
How to show a landlord what we have in savings?
How does a dynamic QR code work?
Ising model simulation
Why doesn't Shulchan Aruch include the laws of destroying fruit trees?
Can you teleport closer to a creature you are Frightened of?
Grouping enumerated list with different width?
The Next CEO of Stack Overflowgrouping enumerated listEnumerated list indentationEnumerated description listEnumerated list with square bracketsEnumerated List and TableEnumerated sorted list with datatoolLatex Enumerated List referencinggrouping enumerated listenumerated labels in description listA customized enumerated listSet the width of image equal to an item width in the enumerated list
I found the this nice answer regrading grouping of enumerated list. But it does not work for lists with different width. For instance
documentclass{article}
usepackage{tikz}
usetikzlibrary{decorations.pathreplacing}
newcommand{tikzmark}[1]{tikz[overlay,remember picture] node[baseline] (#1) {};}
tikzset{My Node Style/.style={midway, right, xshift=3.0ex, align=left, font=small, draw=none, thin, text=black}}
newcommandVerticalBrace[4][]{%
% #1 = draw options
% #2 = top mark
% #2 = bottom mark
% #4 = label
begin{tikzpicture}[overlay,remember picture]
draw[decorate,decoration={brace, amplitude=1.5ex}, #1]
([yshift=1ex]#2.north east) -- ([yshift=-1ex]#3.south east)
node[My Node Style] {#4};
end{tikzpicture}
}
begin{document}
begin{enumerate}
item Item 1tikzmark{top 1}
item Item wide wide widetikzmark{bottom 1}
item Item 3tikzmark{top 2}
item Item 4
item Item wide wide wide
item Item 6tikzmark{bottom 2}
end{enumerate}
VerticalBrace[ultra thick, blue]{top 1}{bottom 1}{The first two items}
VerticalBrace[ultra thick, blue]{top 2}{bottom 2}{The last four items}
end{document}
gives
How can I fix this?
lists enumerate braces grouping
add a comment |
I found the this nice answer regrading grouping of enumerated list. But it does not work for lists with different width. For instance
documentclass{article}
usepackage{tikz}
usetikzlibrary{decorations.pathreplacing}
newcommand{tikzmark}[1]{tikz[overlay,remember picture] node[baseline] (#1) {};}
tikzset{My Node Style/.style={midway, right, xshift=3.0ex, align=left, font=small, draw=none, thin, text=black}}
newcommandVerticalBrace[4][]{%
% #1 = draw options
% #2 = top mark
% #2 = bottom mark
% #4 = label
begin{tikzpicture}[overlay,remember picture]
draw[decorate,decoration={brace, amplitude=1.5ex}, #1]
([yshift=1ex]#2.north east) -- ([yshift=-1ex]#3.south east)
node[My Node Style] {#4};
end{tikzpicture}
}
begin{document}
begin{enumerate}
item Item 1tikzmark{top 1}
item Item wide wide widetikzmark{bottom 1}
item Item 3tikzmark{top 2}
item Item 4
item Item wide wide wide
item Item 6tikzmark{bottom 2}
end{enumerate}
VerticalBrace[ultra thick, blue]{top 1}{bottom 1}{The first two items}
VerticalBrace[ultra thick, blue]{top 2}{bottom 2}{The last four items}
end{document}
gives
How can I fix this?
lists enumerate braces grouping
add a comment |
I found the this nice answer regrading grouping of enumerated list. But it does not work for lists with different width. For instance
documentclass{article}
usepackage{tikz}
usetikzlibrary{decorations.pathreplacing}
newcommand{tikzmark}[1]{tikz[overlay,remember picture] node[baseline] (#1) {};}
tikzset{My Node Style/.style={midway, right, xshift=3.0ex, align=left, font=small, draw=none, thin, text=black}}
newcommandVerticalBrace[4][]{%
% #1 = draw options
% #2 = top mark
% #2 = bottom mark
% #4 = label
begin{tikzpicture}[overlay,remember picture]
draw[decorate,decoration={brace, amplitude=1.5ex}, #1]
([yshift=1ex]#2.north east) -- ([yshift=-1ex]#3.south east)
node[My Node Style] {#4};
end{tikzpicture}
}
begin{document}
begin{enumerate}
item Item 1tikzmark{top 1}
item Item wide wide widetikzmark{bottom 1}
item Item 3tikzmark{top 2}
item Item 4
item Item wide wide wide
item Item 6tikzmark{bottom 2}
end{enumerate}
VerticalBrace[ultra thick, blue]{top 1}{bottom 1}{The first two items}
VerticalBrace[ultra thick, blue]{top 2}{bottom 2}{The last four items}
end{document}
gives
How can I fix this?
lists enumerate braces grouping
I found the this nice answer regrading grouping of enumerated list. But it does not work for lists with different width. For instance
documentclass{article}
usepackage{tikz}
usetikzlibrary{decorations.pathreplacing}
newcommand{tikzmark}[1]{tikz[overlay,remember picture] node[baseline] (#1) {};}
tikzset{My Node Style/.style={midway, right, xshift=3.0ex, align=left, font=small, draw=none, thin, text=black}}
newcommandVerticalBrace[4][]{%
% #1 = draw options
% #2 = top mark
% #2 = bottom mark
% #4 = label
begin{tikzpicture}[overlay,remember picture]
draw[decorate,decoration={brace, amplitude=1.5ex}, #1]
([yshift=1ex]#2.north east) -- ([yshift=-1ex]#3.south east)
node[My Node Style] {#4};
end{tikzpicture}
}
begin{document}
begin{enumerate}
item Item 1tikzmark{top 1}
item Item wide wide widetikzmark{bottom 1}
item Item 3tikzmark{top 2}
item Item 4
item Item wide wide wide
item Item 6tikzmark{bottom 2}
end{enumerate}
VerticalBrace[ultra thick, blue]{top 1}{bottom 1}{The first two items}
VerticalBrace[ultra thick, blue]{top 2}{bottom 2}{The last four items}
end{document}
gives
How can I fix this?
lists enumerate braces grouping
lists enumerate braces grouping
asked 2 mins ago
maryamarya
1,41321025
1,41321025
add a comment |
add a comment |
0
active
oldest
votes
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%2f482708%2fgrouping-enumerated-list-with-different-width%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f482708%2fgrouping-enumerated-list-with-different-width%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