Aligning object in a commutative diagramSetting the name of matrix in tikz-cdCommutative diagram: get an arrow to 'skip' an objectCommutative Diagram (Homological Algebra)Commutative DiagramVertical triangle commutative diagramDrawing a commutative diagramCommutative diagram for modified cubeCommutative diagram using TikZequations in tikz commutative diagramCommutative diagram with non-uniform arrowsCommutative diagram not working on tikzcd
How to ask if I can mow my neighbor's lawn
If the mass of the Earth is decreasing by sending debris in space, does its angular momentum also decrease?
Got a new frameset, don't know why I need this split ring collar?
Am I legally required to provide a (GPL licensed) source code even after a project is abandoned?
How can I ping multiple IP addresses at the same time?
Is there any way to revive my Sim?
Are there examples of rowers who also fought?
Implementation of the Jacobi Symbol in C
Are one time pads still secure when using randomly generated words as the pad?
Predict the product from the reaction
Do details of my undergraduate title matter?
Setting up the trap
Why can't I craft scaffolding in Minecraft 1.14?
Definition of 'vrit'
Large-n limit of the distribution of the normalized sum of Cauchy random variables
First occurrence in the Sixers sequence
How much steel armor can you wear and still be able to swim?
How "fast" do astronomical events occur?
The Amazing Sliding Crossword
What is this airplane that sits in front of Barringer High School in Newark, NJ?
How Hebrew Vowels Work
reverse a call to mmap()
Are there any individual aliens that have gained superpowers in the Marvel universe?
Bent arrow under a node
Aligning object in a commutative diagram
Setting the name of matrix in tikz-cdCommutative diagram: get an arrow to 'skip' an objectCommutative Diagram (Homological Algebra)Commutative DiagramVertical triangle commutative diagramDrawing a commutative diagramCommutative diagram for modified cubeCommutative diagram using TikZequations in tikz commutative diagramCommutative diagram with non-uniform arrowsCommutative diagram not working on tikzcd
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;

MWE:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument
vertical-alignment diagrams tikz-cd alignment commutative-diagrams
add a comment |

MWE:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument
vertical-alignment diagrams tikz-cd alignment commutative-diagrams
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
If you mean the vertical placement of the top left object, then the problem is obviously the usage of thefaktorpackage.
– egreg
Jun 1 at 20:14
add a comment |

MWE:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument
vertical-alignment diagrams tikz-cd alignment commutative-diagrams

MWE:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument
vertical-alignment diagrams tikz-cd alignment commutative-diagrams
vertical-alignment diagrams tikz-cd alignment commutative-diagrams
edited Jun 1 at 18:47
Bernard
181k781213
181k781213
asked Jun 1 at 18:41
Lele99_DDLele99_DD
1457
1457
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
If you mean the vertical placement of the top left object, then the problem is obviously the usage of thefaktorpackage.
– egreg
Jun 1 at 20:14
add a comment |
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
If you mean the vertical placement of the top left object, then the problem is obviously the usage of thefaktorpackage.
– egreg
Jun 1 at 20:14
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
If you mean the vertical placement of the top left object, then the problem is obviously the usage of the
faktor package.– egreg
Jun 1 at 20:14
If you mean the vertical placement of the top left object, then the problem is obviously the usage of the
faktor package.– egreg
Jun 1 at 20:14
add a comment |
3 Answers
3
active
oldest
votes
Quick and dirty.
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
raisebox-0.8em$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

If you do not want to guess this value but compute it, you can do so as follows (with some tricks from this answer):
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usetikzlibrarycalc
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm,execute at end picture=%
path let p1=($(tikzcdmatrixname-1-2.north)-(tikzcdmatrixname-1-1.north)$)
in pgfextratypeoutrequiredspace raise=y1;]
raisebox-7.25006pt$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

add a comment |
If you mean the vertical placement, then the culprit is faktor.1
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix_raiseboxdepth[0pt][0pt]$big/cong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Alternative, more in line with conventional mathematical typesetting
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixBig/cong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
If you insist in using faktor
[
begintikzcd[row sep=0cm, column sep=2cm]
begingatheredfaktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_bendgathered arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Footnote
1 I find the output of faktor ugly and unnecessary: I've rarely seen such constructions in mainstream mathematical publications.
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
add a comment |
Using only the mathmode:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
makeatletter
defmapstofill@arrowfill@mapstocharrelbarrelbarrightarrow
newcommand*xmapsto[2][]ext@arrow 0000mapstofill@#1#2
newcommandxlongleftrightarrow[2][]ext@arrow 0055longleftrightarrowfill@#1#2
deflongleftrightarrowfill@arrowfill@leftarrowrelbarrightarrow
makeatother
newcommandTAB[1]tabular@l@#1endtabular
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram,
with the parentheses centered:
beginflalign*
leftTABRivestimenti connessi\per archi di $(X,x_0)$right_slashcong_b
xlongleftrightarrowmakebox[2cm]$phi$
TABSottogruppi di\ $pi_1(X,x_0)$ \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) xmapstomakebox[3cm]
p_*bigl(pi_1(tildeX,tildex_0)bigr)
endflalign*
enddocument

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%2f493716%2faligning-object-in-a-commutative-diagram%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Quick and dirty.
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
raisebox-0.8em$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

If you do not want to guess this value but compute it, you can do so as follows (with some tricks from this answer):
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usetikzlibrarycalc
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm,execute at end picture=%
path let p1=($(tikzcdmatrixname-1-2.north)-(tikzcdmatrixname-1-1.north)$)
in pgfextratypeoutrequiredspace raise=y1;]
raisebox-7.25006pt$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

add a comment |
Quick and dirty.
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
raisebox-0.8em$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

If you do not want to guess this value but compute it, you can do so as follows (with some tricks from this answer):
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usetikzlibrarycalc
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm,execute at end picture=%
path let p1=($(tikzcdmatrixname-1-2.north)-(tikzcdmatrixname-1-1.north)$)
in pgfextratypeoutrequiredspace raise=y1;]
raisebox-7.25006pt$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

add a comment |
Quick and dirty.
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
raisebox-0.8em$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

If you do not want to guess this value but compute it, you can do so as follows (with some tricks from this answer):
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usetikzlibrarycalc
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm,execute at end picture=%
path let p1=($(tikzcdmatrixname-1-2.north)-(tikzcdmatrixname-1-1.north)$)
in pgfextratypeoutrequiredspace raise=y1;]
raisebox-7.25006pt$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Quick and dirty.
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
raisebox-0.8em$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

If you do not want to guess this value but compute it, you can do so as follows (with some tricks from this answer):
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usetikzlibrarycalc
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm,execute at end picture=%
path let p1=($(tikzcdmatrixname-1-2.north)-(tikzcdmatrixname-1-1.north)$)
in pgfextratypeoutrequiredspace raise=y1;]
raisebox-7.25006pt$faktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

edited Jun 1 at 19:59
answered Jun 1 at 19:08
marmotmarmot
136k6177326
136k6177326
add a comment |
add a comment |
If you mean the vertical placement, then the culprit is faktor.1
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix_raiseboxdepth[0pt][0pt]$big/cong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Alternative, more in line with conventional mathematical typesetting
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixBig/cong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
If you insist in using faktor
[
begintikzcd[row sep=0cm, column sep=2cm]
begingatheredfaktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_bendgathered arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Footnote
1 I find the output of faktor ugly and unnecessary: I've rarely seen such constructions in mainstream mathematical publications.
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
add a comment |
If you mean the vertical placement, then the culprit is faktor.1
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix_raiseboxdepth[0pt][0pt]$big/cong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Alternative, more in line with conventional mathematical typesetting
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixBig/cong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
If you insist in using faktor
[
begintikzcd[row sep=0cm, column sep=2cm]
begingatheredfaktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_bendgathered arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Footnote
1 I find the output of faktor ugly and unnecessary: I've rarely seen such constructions in mainstream mathematical publications.
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
add a comment |
If you mean the vertical placement, then the culprit is faktor.1
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix_raiseboxdepth[0pt][0pt]$big/cong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Alternative, more in line with conventional mathematical typesetting
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixBig/cong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
If you insist in using faktor
[
begintikzcd[row sep=0cm, column sep=2cm]
begingatheredfaktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_bendgathered arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Footnote
1 I find the output of faktor ugly and unnecessary: I've rarely seen such constructions in mainstream mathematical publications.
If you mean the vertical placement, then the culprit is faktor.1
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
usepackagetikz-cd
usepackagefaktor
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram, with the parentheses centered:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix_raiseboxdepth[0pt][0pt]$big/cong_b$ arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Alternative, more in line with conventional mathematical typesetting
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixBig/cong_b arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
If you insist in using faktor
[
begintikzcd[row sep=0cm, column sep=2cm]
begingatheredfaktorbeginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrixcong_bendgathered arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
Second diagram:
[
begintikzcd[row sep=0cm, column sep=2cm]
beginBmatrix
textRivestimenti connessi \
textper archi di $(X,x_0)$
endBmatrix arrow[r, "phi", leftrightarrow] &
beginBmatrix
textSottogruppi di \
text$pi_1(X,x_0)$
endBmatrix \
bigl(p colon (tildeX,tildex_0) to (X,x_0)bigr) arrow[r, mapsto] & p_*bigl(pi_1(tildeX,tildex_0)bigr)
endtikzcd
]
enddocument

Footnote
1 I find the output of faktor ugly and unnecessary: I've rarely seen such constructions in mainstream mathematical publications.
edited Jun 1 at 21:24
answered Jun 1 at 20:26
egregegreg
749k8919583301
749k8919583301
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
add a comment |
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
@marmot Uh! Thanks, forgot to copy the right code.
– egreg
Jun 1 at 21:24
add a comment |
Using only the mathmode:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
makeatletter
defmapstofill@arrowfill@mapstocharrelbarrelbarrightarrow
newcommand*xmapsto[2][]ext@arrow 0000mapstofill@#1#2
newcommandxlongleftrightarrow[2][]ext@arrow 0055longleftrightarrowfill@#1#2
deflongleftrightarrowfill@arrowfill@leftarrowrelbarrightarrow
makeatother
newcommandTAB[1]tabular@l@#1endtabular
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram,
with the parentheses centered:
beginflalign*
leftTABRivestimenti connessi\per archi di $(X,x_0)$right_slashcong_b
xlongleftrightarrowmakebox[2cm]$phi$
TABSottogruppi di\ $pi_1(X,x_0)$ \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) xmapstomakebox[3cm]
p_*bigl(pi_1(tildeX,tildex_0)bigr)
endflalign*
enddocument

add a comment |
Using only the mathmode:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
makeatletter
defmapstofill@arrowfill@mapstocharrelbarrelbarrightarrow
newcommand*xmapsto[2][]ext@arrow 0000mapstofill@#1#2
newcommandxlongleftrightarrow[2][]ext@arrow 0055longleftrightarrowfill@#1#2
deflongleftrightarrowfill@arrowfill@leftarrowrelbarrightarrow
makeatother
newcommandTAB[1]tabular@l@#1endtabular
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram,
with the parentheses centered:
beginflalign*
leftTABRivestimenti connessi\per archi di $(X,x_0)$right_slashcong_b
xlongleftrightarrowmakebox[2cm]$phi$
TABSottogruppi di\ $pi_1(X,x_0)$ \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) xmapstomakebox[3cm]
p_*bigl(pi_1(tildeX,tildex_0)bigr)
endflalign*
enddocument

add a comment |
Using only the mathmode:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
makeatletter
defmapstofill@arrowfill@mapstocharrelbarrelbarrightarrow
newcommand*xmapsto[2][]ext@arrow 0000mapstofill@#1#2
newcommandxlongleftrightarrow[2][]ext@arrow 0055longleftrightarrowfill@#1#2
deflongleftrightarrowfill@arrowfill@leftarrowrelbarrightarrow
makeatother
newcommandTAB[1]tabular@l@#1endtabular
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram,
with the parentheses centered:
beginflalign*
leftTABRivestimenti connessi\per archi di $(X,x_0)$right_slashcong_b
xlongleftrightarrowmakebox[2cm]$phi$
TABSottogruppi di\ $pi_1(X,x_0)$ \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) xmapstomakebox[3cm]
p_*bigl(pi_1(tildeX,tildex_0)bigr)
endflalign*
enddocument

Using only the mathmode:
documentclass[a4paper]article
usepackageamsmath
usepackageamssymb
makeatletter
defmapstofill@arrowfill@mapstocharrelbarrelbarrightarrow
newcommand*xmapsto[2][]ext@arrow 0000mapstofill@#1#2
newcommandxlongleftrightarrow[2][]ext@arrow 0055longleftrightarrowfill@#1#2
deflongleftrightarrowfill@arrowfill@leftarrowrelbarrightarrow
makeatother
newcommandTAB[1]tabular@l@#1endtabular
begindocument
I'd like the first line of the following diagram to be aligned like the first line of the second diagram,
with the parentheses centered:
beginflalign*
leftTABRivestimenti connessi\per archi di $(X,x_0)$right_slashcong_b
xlongleftrightarrowmakebox[2cm]$phi$
TABSottogruppi di\ $pi_1(X,x_0)$ \
Bigl(p colon (tildeX,tildex_0) to (X,x_0)Bigr) xmapstomakebox[3cm]
p_*bigl(pi_1(tildeX,tildex_0)bigr)
endflalign*
enddocument

edited Jun 1 at 19:34
answered Jun 1 at 19:27
Red-CloudRed-Cloud
4,183217
4,183217
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%2f493716%2faligning-object-in-a-commutative-diagram%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
Do you mean you want the top-left entry vertically centred to match the top-right entry, or horizontally centred to match the bottom-left entry, or both?
– Peter LeFanu Lumsdaine
Jun 1 at 18:49
If you mean the vertical placement of the top left object, then the problem is obviously the usage of the
faktorpackage.– egreg
Jun 1 at 20:14