Vertical align with TikZ and booktabs
I want to write one line of text in a booktabs
table containing a TikZ drawing that is higher than the line-height.
Per default the text is vertically aligned with the baseline of the TikZ drawing.
I want it to be vertically aligned with the middle of the TikZ drawing.
Here is my code:
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage[left=3cm, right=3cm, top=4cm]{geometry}
usepackage{mathtools}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{tikz-cd}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}[c]{p{1cm}cp{3cm}}
toprule
$Phi$ &
Dynkin diagram &
Symmetric space
\
midrule
$Phi_3$ & vspace{1cm}
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
$rightarrow$
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
end{document}
What I have:
What I want:
dynkin-diagrams.sty
found here.
tikz-pgf tables vertical-alignment booktabs
add a comment |
I want to write one line of text in a booktabs
table containing a TikZ drawing that is higher than the line-height.
Per default the text is vertically aligned with the baseline of the TikZ drawing.
I want it to be vertically aligned with the middle of the TikZ drawing.
Here is my code:
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage[left=3cm, right=3cm, top=4cm]{geometry}
usepackage{mathtools}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{tikz-cd}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}[c]{p{1cm}cp{3cm}}
toprule
$Phi$ &
Dynkin diagram &
Symmetric space
\
midrule
$Phi_3$ & vspace{1cm}
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
$rightarrow$
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
end{document}
What I have:
What I want:
dynkin-diagrams.sty
found here.
tikz-pgf tables vertical-alignment booktabs
1
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32
add a comment |
I want to write one line of text in a booktabs
table containing a TikZ drawing that is higher than the line-height.
Per default the text is vertically aligned with the baseline of the TikZ drawing.
I want it to be vertically aligned with the middle of the TikZ drawing.
Here is my code:
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage[left=3cm, right=3cm, top=4cm]{geometry}
usepackage{mathtools}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{tikz-cd}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}[c]{p{1cm}cp{3cm}}
toprule
$Phi$ &
Dynkin diagram &
Symmetric space
\
midrule
$Phi_3$ & vspace{1cm}
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
$rightarrow$
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
end{document}
What I have:
What I want:
dynkin-diagrams.sty
found here.
tikz-pgf tables vertical-alignment booktabs
I want to write one line of text in a booktabs
table containing a TikZ drawing that is higher than the line-height.
Per default the text is vertically aligned with the baseline of the TikZ drawing.
I want it to be vertically aligned with the middle of the TikZ drawing.
Here is my code:
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage[left=3cm, right=3cm, top=4cm]{geometry}
usepackage{mathtools}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{tikz-cd}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}[c]{p{1cm}cp{3cm}}
toprule
$Phi$ &
Dynkin diagram &
Symmetric space
\
midrule
$Phi_3$ & vspace{1cm}
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
$rightarrow$
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
end{document}
What I have:
What I want:
dynkin-diagrams.sty
found here.
tikz-pgf tables vertical-alignment booktabs
tikz-pgf tables vertical-alignment booktabs
edited May 31 '18 at 13:31
Heiko Oberdiek
229k17551904
229k17551904
asked May 31 '18 at 12:27
user538044user538044
1183
1183
1
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32
add a comment |
1
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32
1
1
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32
add a comment |
4 Answers
4
active
oldest
votes
You can vertically center any picture without guessing values by a simple macro: newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
. Just use ctikz{<your picture>}
. Also, no need for manual vspace{1cm}
.
newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
begin{center}
begin{tabular}{p{1cm} c p{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & %vspace{1cm}
ctikz{%
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
}
$rightarrow$
ctikz{%
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
add a comment |
Use the baseline
option for the first picture, as described here:
begin{tikzpicture}[baseline=-0.7ex] %<--- adjust as desired
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
Remove (or adjust) the vspace{1cm}
that you added if you want to get rid of the extra space below the picture.
1
baseline=(current bounding box.center)
might work.
– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
add a comment |
an alternative, as exercise of use dynkin package:
documentclass[a4paper,11pt]{scrartcl}
usepackage[hmargin=3cm, top=4cm]{geometry}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage{mathtools} % it also loads amsmath
usepackage[utf8]{inputenc}
usepackage{amsfonts}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & begin{tikzpicture}[baseline=-0.75ex]
draw[HighlightColor,densely dotted,thick] (0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
dynkin[mark=o,text/.style={scale=1.2}] {B}{3};
draw[->] (3.3,0) -- + (0.5,0);
scoped[xshift=41mm]dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
& $SL(3,R)/SO(3)$ \
bottomrule
end{tabular}
end{center}
end{document}
add a comment |
I made a few changes to the dynkin-diagrams
package recently, which sadly mess up Zarko's code above. Here are the little changes you need to make to get it working again.
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edge-length=1.5cm,mark=o]{dynkin-diagrams}
newcommand{R}{mathbb{R}}
newcommand{SL}[1]{operatorname{SL}(#1,R{})}
newcommand{SO}[1]{operatorname{SO}(#1)}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ &
begin{dynkinDiagram}{B}{3}
draw[HighlightColor,densely dotted,thick]
(0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
end{dynkinDiagram}
tikz[baseline=-0.5ex] draw[->] (3.3,0) -- + (0.5,0);
dynkin{A}{2}
& $SL{3}/SO{3}$ \
bottomrule
end{tabular}
end{center}
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%2f434297%2fvertical-align-with-tikz-and-booktabs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can vertically center any picture without guessing values by a simple macro: newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
. Just use ctikz{<your picture>}
. Also, no need for manual vspace{1cm}
.
newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
begin{center}
begin{tabular}{p{1cm} c p{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & %vspace{1cm}
ctikz{%
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
}
$rightarrow$
ctikz{%
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
add a comment |
You can vertically center any picture without guessing values by a simple macro: newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
. Just use ctikz{<your picture>}
. Also, no need for manual vspace{1cm}
.
newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
begin{center}
begin{tabular}{p{1cm} c p{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & %vspace{1cm}
ctikz{%
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
}
$rightarrow$
ctikz{%
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
add a comment |
You can vertically center any picture without guessing values by a simple macro: newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
. Just use ctikz{<your picture>}
. Also, no need for manual vspace{1cm}
.
newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
begin{center}
begin{tabular}{p{1cm} c p{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & %vspace{1cm}
ctikz{%
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
}
$rightarrow$
ctikz{%
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
You can vertically center any picture without guessing values by a simple macro: newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
. Just use ctikz{<your picture>}
. Also, no need for manual vspace{1cm}
.
newcommand{ctikz}[1]{$vcenter{hbox{#1}}$}
begin{center}
begin{tabular}{p{1cm} c p{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & %vspace{1cm}
ctikz{%
begin{tikzpicture}
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
}
$rightarrow$
ctikz{%
begin{tikzpicture}
dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
}
&
$SL(3,R)/SO(3)$
\
bottomrule
end{tabular}
end{center}
edited May 31 '18 at 13:15
answered May 31 '18 at 13:05
AboAmmarAboAmmar
33.4k22882
33.4k22882
add a comment |
add a comment |
Use the baseline
option for the first picture, as described here:
begin{tikzpicture}[baseline=-0.7ex] %<--- adjust as desired
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
Remove (or adjust) the vspace{1cm}
that you added if you want to get rid of the extra space below the picture.
1
baseline=(current bounding box.center)
might work.
– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
add a comment |
Use the baseline
option for the first picture, as described here:
begin{tikzpicture}[baseline=-0.7ex] %<--- adjust as desired
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
Remove (or adjust) the vspace{1cm}
that you added if you want to get rid of the extra space below the picture.
1
baseline=(current bounding box.center)
might work.
– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
add a comment |
Use the baseline
option for the first picture, as described here:
begin{tikzpicture}[baseline=-0.7ex] %<--- adjust as desired
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
Remove (or adjust) the vspace{1cm}
that you added if you want to get rid of the extra space below the picture.
Use the baseline
option for the first picture, as described here:
begin{tikzpicture}[baseline=-0.7ex] %<--- adjust as desired
draw[HighlightColor,densely dotted,thick] (0,0.5) arc (90:270:0.5);
draw[HighlightColor,densely dotted,thick] (1.5,-0.5) arc (270:450:0.5);
draw[HighlightColor,densely dotted,thick] (0,0.5) -- (1.5,0.5);
draw[HighlightColor,densely dotted,thick] (0,-0.5) -- (1.5,-0.5);
dynkin[mark=o,text/.style={scale=1.2}]{B}{3};
end{tikzpicture}
Remove (or adjust) the vspace{1cm}
that you added if you want to get rid of the extra space below the picture.
edited May 31 '18 at 12:48
answered May 31 '18 at 12:37
AMLAML
1,3432426
1,3432426
1
baseline=(current bounding box.center)
might work.
– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
add a comment |
1
baseline=(current bounding box.center)
might work.
– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
1
1
baseline=(current bounding box.center)
might work.– Torbjørn T.
May 31 '18 at 13:42
baseline=(current bounding box.center)
might work.– Torbjørn T.
May 31 '18 at 13:42
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
@TorbjørnT. Thanks for the suggestion; the left picture goes lower than the arrow when you do that.
– AML
May 31 '18 at 13:55
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
I accepted the other answer because it's a bit more convenient to use. But thank you very much for your answer too, which also would've solved my problem.
– user538044
Jun 2 '18 at 12:38
add a comment |
an alternative, as exercise of use dynkin package:
documentclass[a4paper,11pt]{scrartcl}
usepackage[hmargin=3cm, top=4cm]{geometry}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage{mathtools} % it also loads amsmath
usepackage[utf8]{inputenc}
usepackage{amsfonts}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & begin{tikzpicture}[baseline=-0.75ex]
draw[HighlightColor,densely dotted,thick] (0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
dynkin[mark=o,text/.style={scale=1.2}] {B}{3};
draw[->] (3.3,0) -- + (0.5,0);
scoped[xshift=41mm]dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
& $SL(3,R)/SO(3)$ \
bottomrule
end{tabular}
end{center}
end{document}
add a comment |
an alternative, as exercise of use dynkin package:
documentclass[a4paper,11pt]{scrartcl}
usepackage[hmargin=3cm, top=4cm]{geometry}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage{mathtools} % it also loads amsmath
usepackage[utf8]{inputenc}
usepackage{amsfonts}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & begin{tikzpicture}[baseline=-0.75ex]
draw[HighlightColor,densely dotted,thick] (0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
dynkin[mark=o,text/.style={scale=1.2}] {B}{3};
draw[->] (3.3,0) -- + (0.5,0);
scoped[xshift=41mm]dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
& $SL(3,R)/SO(3)$ \
bottomrule
end{tabular}
end{center}
end{document}
add a comment |
an alternative, as exercise of use dynkin package:
documentclass[a4paper,11pt]{scrartcl}
usepackage[hmargin=3cm, top=4cm]{geometry}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage{mathtools} % it also loads amsmath
usepackage[utf8]{inputenc}
usepackage{amsfonts}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & begin{tikzpicture}[baseline=-0.75ex]
draw[HighlightColor,densely dotted,thick] (0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
dynkin[mark=o,text/.style={scale=1.2}] {B}{3};
draw[->] (3.3,0) -- + (0.5,0);
scoped[xshift=41mm]dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
& $SL(3,R)/SO(3)$ \
bottomrule
end{tabular}
end{center}
end{document}
an alternative, as exercise of use dynkin package:
documentclass[a4paper,11pt]{scrartcl}
usepackage[hmargin=3cm, top=4cm]{geometry}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edgeLength=1.5cm]{dynkin-diagrams}
usepackage{mathtools} % it also loads amsmath
usepackage[utf8]{inputenc}
usepackage{amsfonts}
newcommand{R}{mathbb{R}}
newcommand{SL}{operatorname{SL}}
newcommand{SO}{operatorname{SO}}
usepackage{graphbox}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ & begin{tikzpicture}[baseline=-0.75ex]
draw[HighlightColor,densely dotted,thick] (0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
dynkin[mark=o,text/.style={scale=1.2}] {B}{3};
draw[->] (3.3,0) -- + (0.5,0);
scoped[xshift=41mm]dynkin[mark=o,text/.style={scale=1.2}]{A}{2};
end{tikzpicture}
& $SL(3,R)/SO(3)$ \
bottomrule
end{tabular}
end{center}
end{document}
answered May 31 '18 at 14:23
ZarkoZarko
122k865158
122k865158
add a comment |
add a comment |
I made a few changes to the dynkin-diagrams
package recently, which sadly mess up Zarko's code above. Here are the little changes you need to make to get it working again.
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edge-length=1.5cm,mark=o]{dynkin-diagrams}
newcommand{R}{mathbb{R}}
newcommand{SL}[1]{operatorname{SL}(#1,R{})}
newcommand{SO}[1]{operatorname{SO}(#1)}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ &
begin{dynkinDiagram}{B}{3}
draw[HighlightColor,densely dotted,thick]
(0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
end{dynkinDiagram}
tikz[baseline=-0.5ex] draw[->] (3.3,0) -- + (0.5,0);
dynkin{A}{2}
& $SL{3}/SO{3}$ \
bottomrule
end{tabular}
end{center}
end{document}
add a comment |
I made a few changes to the dynkin-diagrams
package recently, which sadly mess up Zarko's code above. Here are the little changes you need to make to get it working again.
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edge-length=1.5cm,mark=o]{dynkin-diagrams}
newcommand{R}{mathbb{R}}
newcommand{SL}[1]{operatorname{SL}(#1,R{})}
newcommand{SO}[1]{operatorname{SO}(#1)}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ &
begin{dynkinDiagram}{B}{3}
draw[HighlightColor,densely dotted,thick]
(0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
end{dynkinDiagram}
tikz[baseline=-0.5ex] draw[->] (3.3,0) -- + (0.5,0);
dynkin{A}{2}
& $SL{3}/SO{3}$ \
bottomrule
end{tabular}
end{center}
end{document}
add a comment |
I made a few changes to the dynkin-diagrams
package recently, which sadly mess up Zarko's code above. Here are the little changes you need to make to get it working again.
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edge-length=1.5cm,mark=o]{dynkin-diagrams}
newcommand{R}{mathbb{R}}
newcommand{SL}[1]{operatorname{SL}(#1,R{})}
newcommand{SO}[1]{operatorname{SO}(#1)}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ &
begin{dynkinDiagram}{B}{3}
draw[HighlightColor,densely dotted,thick]
(0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
end{dynkinDiagram}
tikz[baseline=-0.5ex] draw[->] (3.3,0) -- + (0.5,0);
dynkin{A}{2}
& $SL{3}/SO{3}$ \
bottomrule
end{tabular}
end{center}
end{document}
I made a few changes to the dynkin-diagrams
package recently, which sadly mess up Zarko's code above. Here are the little changes you need to make to get it working again.
documentclass[a4paper,11pt]{scrartcl}
usepackage{xcolor}
definecolor{HighlightColor}{RGB}{255,173,97}
usepackage{booktabs}
usepackage[radius=.09cm,edge-length=1.5cm,mark=o]{dynkin-diagrams}
newcommand{R}{mathbb{R}}
newcommand{SL}[1]{operatorname{SL}(#1,R{})}
newcommand{SO}[1]{operatorname{SO}(#1)}
begin{document}
begin{center}
begin{tabular}{p{1cm}cp{3cm}}
toprule
$Phi$ & Dynkin diagram & Symmetric space \
midrule
$Phi_3$ &
begin{dynkinDiagram}{B}{3}
draw[HighlightColor,densely dotted,thick]
(0.0,-0.5) arc (270:90:0.5) --
(1.5, 0.5) arc (90:-90:0.5) -- cycle;
end{dynkinDiagram}
tikz[baseline=-0.5ex] draw[->] (3.3,0) -- + (0.5,0);
dynkin{A}{2}
& $SL{3}/SO{3}$ \
bottomrule
end{tabular}
end{center}
end{document}
answered Jan 7 at 12:15
Benjamin McKayBenjamin McKay
2,55911427
2,55911427
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%2f434297%2fvertical-align-with-tikz-and-booktabs%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
1
Possibly relevant: tex.stackexchange.com/questions/65932/…
– AML
May 31 '18 at 12:32