Draw until the end of a box
up vote
7
down vote
favorite
Is it possible to draw a line from n2 spanning the blah text and blinditemize without hardcoding the length?
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- ([yshift=-3cm]n2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
tikz-pgf tabularx
add a comment |
up vote
7
down vote
favorite
Is it possible to draw a line from n2 spanning the blah text and blinditemize without hardcoding the length?
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- ([yshift=-3cm]n2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
tikz-pgf tabularx
add a comment |
up vote
7
down vote
favorite
up vote
7
down vote
favorite
Is it possible to draw a line from n2 spanning the blah text and blinditemize without hardcoding the length?
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- ([yshift=-3cm]n2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
tikz-pgf tabularx
Is it possible to draw a line from n2 spanning the blah text and blinditemize without hardcoding the length?
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- ([yshift=-3cm]n2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
tikz-pgf tabularx
tikz-pgf tabularx
edited Dec 1 at 21:24
Bernard
164k769192
164k769192
asked Dec 1 at 19:25
Rod
1485
1485
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
Seems like a job for tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmarknode{aux}{$vphantom{x_y}$}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
ADDENDUM A version with tikzmark
instead of tikzmarknode
, which should work with the older versions of tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmark{aux}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
coordinate (aux2) at ([yshift=-1mm]pic cs:aux);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version oftikzmark
in it, in which the commandtikzmarknode
is defined. I will add a solution that should work with the old version oftikzmark
.
– marmot
Dec 1 at 19:55
@Rod I added a version withouttikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?
– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
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',
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%2f462739%2fdraw-until-the-end-of-a-box%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Seems like a job for tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmarknode{aux}{$vphantom{x_y}$}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
ADDENDUM A version with tikzmark
instead of tikzmarknode
, which should work with the older versions of tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmark{aux}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
coordinate (aux2) at ([yshift=-1mm]pic cs:aux);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version oftikzmark
in it, in which the commandtikzmarknode
is defined. I will add a solution that should work with the old version oftikzmark
.
– marmot
Dec 1 at 19:55
@Rod I added a version withouttikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?
– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
add a comment |
up vote
4
down vote
accepted
Seems like a job for tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmarknode{aux}{$vphantom{x_y}$}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
ADDENDUM A version with tikzmark
instead of tikzmarknode
, which should work with the older versions of tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmark{aux}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
coordinate (aux2) at ([yshift=-1mm]pic cs:aux);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version oftikzmark
in it, in which the commandtikzmarknode
is defined. I will add a solution that should work with the old version oftikzmark
.
– marmot
Dec 1 at 19:55
@Rod I added a version withouttikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?
– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Seems like a job for tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmarknode{aux}{$vphantom{x_y}$}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
ADDENDUM A version with tikzmark
instead of tikzmarknode
, which should work with the older versions of tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmark{aux}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
coordinate (aux2) at ([yshift=-1mm]pic cs:aux);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
Seems like a job for tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmarknode{aux}{$vphantom{x_y}$}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
ADDENDUM A version with tikzmark
instead of tikzmarknode
, which should work with the older versions of tikzmark
.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning,tikzmark}
begin{document}
begin{minipage}[t]{0.70textwidth}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}
blindtext
noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}[baseline=(l1.base)]
node[fluffy,label={[name=l1]left:n1-label}] at (0,0) (n1) {};
end{tikzpicture}
& textcolor{red}{title1} \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
begin{tikzpicture}[baseline=(l2.base)]
node[fluffy,label={[name=l2]left:n2-label}] at (0,0) (n2) {};
end{tikzpicture}
& title2 \
cline{2-2}
multicolumn{1}{c}{~} & multicolumn{1}{c}{~} \
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemizetikzmark{aux}
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
coordinate (aux2) at ([yshift=-1mm]pic cs:aux);
draw ([yshift=-0.05cm]n2.south) -- (n2.south|- aux2.south);
end{tikzpicture}
end{minipage}
begin{minipage}[t]{0.30textwidth}
end{minipage}
end{document}
edited Dec 1 at 19:58
answered Dec 1 at 19:43
marmot
83.6k493178
83.6k493178
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version oftikzmark
in it, in which the commandtikzmarknode
is defined. I will add a solution that should work with the old version oftikzmark
.
– marmot
Dec 1 at 19:55
@Rod I added a version withouttikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?
– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
add a comment |
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version oftikzmark
in it, in which the commandtikzmarknode
is defined. I will add a solution that should work with the old version oftikzmark
.
– marmot
Dec 1 at 19:55
@Rod I added a version withouttikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?
– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
Thank you @marmot it works as expected but I get some errors in overleaf: Undefined control sequence (line 43), Package pgf Error: No shape named aux is known. (line 46) Should I worry about them?
– Rod
Dec 1 at 19:53
@Rod Most likely overleaf does not yet have the latest version of
tikzmark
in it, in which the command tikzmarknode
is defined. I will add a solution that should work with the old version of tikzmark
.– marmot
Dec 1 at 19:55
@Rod Most likely overleaf does not yet have the latest version of
tikzmark
in it, in which the command tikzmarknode
is defined. I will add a solution that should work with the old version of tikzmark
.– marmot
Dec 1 at 19:55
@Rod I added a version without
tikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?– marmot
Dec 1 at 19:59
@Rod I added a version without
tikzmarknode
. Could you please check if it works on overleaf (I never use overleaf)?– marmot
Dec 1 at 19:59
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
It works like a charm. It seems I had some issue with the new macro ikzmarknode. Thank you again.
– Rod
Dec 1 at 21:03
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f462739%2fdraw-until-the-end-of-a-box%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