Commutative diagramm (tikzcd) in margin
up vote
1
down vote
favorite
The following example gives me an error
documentclass[12pt,oneside]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[french]{babel}
usepackage[a4paper,
inner=10mm,
outer=60mm,
top=20mm,
bottom=25mm,
marginparsep=10mm,
marginparwidth=40mm]{geometry}
usepackage{tikz}
usepackage{tikz-cd}
begin{document}
foo
marginpar{
begin{tikzcd}
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
bar
end{document}
while the commutative diagramm is compiling correctly when it's not in the margin.
Error is :
! Undefined control sequence.
pgf@matrix@last@nextcell@options ! Package pgf Error: Single
ampersand used with wrong catcode.
margins marginpar tikz-cd
add a comment |
up vote
1
down vote
favorite
The following example gives me an error
documentclass[12pt,oneside]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[french]{babel}
usepackage[a4paper,
inner=10mm,
outer=60mm,
top=20mm,
bottom=25mm,
marginparsep=10mm,
marginparwidth=40mm]{geometry}
usepackage{tikz}
usepackage{tikz-cd}
begin{document}
foo
marginpar{
begin{tikzcd}
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
bar
end{document}
while the commutative diagramm is compiling correctly when it's not in the margin.
Error is :
! Undefined control sequence.
pgf@matrix@last@nextcell@options ! Package pgf Error: Single
ampersand used with wrong catcode.
margins marginpar tikz-cd
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
The following example gives me an error
documentclass[12pt,oneside]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[french]{babel}
usepackage[a4paper,
inner=10mm,
outer=60mm,
top=20mm,
bottom=25mm,
marginparsep=10mm,
marginparwidth=40mm]{geometry}
usepackage{tikz}
usepackage{tikz-cd}
begin{document}
foo
marginpar{
begin{tikzcd}
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
bar
end{document}
while the commutative diagramm is compiling correctly when it's not in the margin.
Error is :
! Undefined control sequence.
pgf@matrix@last@nextcell@options ! Package pgf Error: Single
ampersand used with wrong catcode.
margins marginpar tikz-cd
The following example gives me an error
documentclass[12pt,oneside]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[french]{babel}
usepackage[a4paper,
inner=10mm,
outer=60mm,
top=20mm,
bottom=25mm,
marginparsep=10mm,
marginparwidth=40mm]{geometry}
usepackage{tikz}
usepackage{tikz-cd}
begin{document}
foo
marginpar{
begin{tikzcd}
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
bar
end{document}
while the commutative diagramm is compiling correctly when it's not in the margin.
Error is :
! Undefined control sequence.
pgf@matrix@last@nextcell@options ! Package pgf Error: Single
ampersand used with wrong catcode.
margins marginpar tikz-cd
margins marginpar tikz-cd
asked yesterday
Romain
765
765
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
This is a wellknown issue, when it is dealing with &
used inside an argument, things go wrong (presumably catcodes). Solution use this:
marginpar{
begin{tikzcd}[ampersand replacement=&]
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
Works well! Thank you.
– Romain
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
This is a wellknown issue, when it is dealing with &
used inside an argument, things go wrong (presumably catcodes). Solution use this:
marginpar{
begin{tikzcd}[ampersand replacement=&]
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
Works well! Thank you.
– Romain
yesterday
add a comment |
up vote
2
down vote
accepted
This is a wellknown issue, when it is dealing with &
used inside an argument, things go wrong (presumably catcodes). Solution use this:
marginpar{
begin{tikzcd}[ampersand replacement=&]
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
Works well! Thank you.
– Romain
yesterday
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
This is a wellknown issue, when it is dealing with &
used inside an argument, things go wrong (presumably catcodes). Solution use this:
marginpar{
begin{tikzcd}[ampersand replacement=&]
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
This is a wellknown issue, when it is dealing with &
used inside an argument, things go wrong (presumably catcodes). Solution use this:
marginpar{
begin{tikzcd}[ampersand replacement=&]
E
arrow[bend right=50]{rr}[,label=below:scriptsize $gcirc f$]{}
arrow[r]{}[,label=above:scriptsize $f$]{}
& F
arrow[r]{}[,label=above:scriptsize $g$]{}
& G
end{tikzcd}
}
answered yesterday
daleif
31.7k251112
31.7k251112
Works well! Thank you.
– Romain
yesterday
add a comment |
Works well! Thank you.
– Romain
yesterday
Works well! Thank you.
– Romain
yesterday
Works well! Thank you.
– Romain
yesterday
add a comment |
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%2f461097%2fcommutative-diagramm-tikzcd-in-margin%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