Chemfig and tikz: shaded arrow
How can I make these arrow shades, for example to blue from white?
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
tikz-arrows chemfig
add a comment |
How can I make these arrow shades, for example to blue from white?
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
tikz-arrows chemfig
1
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09
add a comment |
How can I make these arrow shades, for example to blue from white?
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
tikz-arrows chemfig
How can I make these arrow shades, for example to blue from white?
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
tikz-arrows chemfig
tikz-arrows chemfig
asked Apr 19 '18 at 20:07
user3204810user3204810
32117
32117
1
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09
add a comment |
1
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09
1
1
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09
add a comment |
2 Answers
2
active
oldest
votes
Building upon Sebastiano's answer, one can also apply the path fading
option directly to chemfig
arrows as shown in the following example:
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
usetikzlibrary{fadings}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue, path fading = east][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
add a comment |
A possible solution with tikz-cd
it is very simple to have the arrows shades to blue from white.
documentclass[a4paper,12pt]{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{fadings}
begin{document}
begin{tikzcd}[column sep=.7cm]
color{gray}{mathrm{O}}
arrow[r, equal, no head] arrow[r, bend left=49, blue, path fading=west] & mathbf{C} arrow[r, no head, equal] & color{gray}{mathrm{O}} arrow[l, bend right=49, blue, path fading=east]
end{tikzcd}
end{document}
1
+1. Maybe you want to add, thatpath fading
can also be applied tochemfig
arrows. Usingdraw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png
– leandriis
Mar 12 at 22:35
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%2f427479%2fchemfig-and-tikz-shaded-arrow%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Building upon Sebastiano's answer, one can also apply the path fading
option directly to chemfig
arrows as shown in the following example:
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
usetikzlibrary{fadings}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue, path fading = east][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
add a comment |
Building upon Sebastiano's answer, one can also apply the path fading
option directly to chemfig
arrows as shown in the following example:
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
usetikzlibrary{fadings}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue, path fading = east][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
add a comment |
Building upon Sebastiano's answer, one can also apply the path fading
option directly to chemfig
arrows as shown in the following example:
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
usetikzlibrary{fadings}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue, path fading = east][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
Building upon Sebastiano's answer, one can also apply the path fading
option directly to chemfig
arrows as shown in the following example:
documentclass{article}
usepackage{chemfig}
usepackage[version=3]{mhchem}
usetikzlibrary{fadings}
begin{document}
begin{figure}[!htb]
centering
scalebox{2}{
schemestart
chemfig{@{O1-2}textcolor{gray}{O}=@{C1-2}textbf{C}=@{O2-2}textcolor{gray}{O}}
schemestop
chemmove{
draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
draw[blue, path fading = east][shorten <=3pt, shorten >=3pt](O2-2).. controls +(north:1cm) and +(60:1cm).. (C1-2);
}
}
end{figure}
end{document}
answered Mar 12 at 22:40
leandriisleandriis
10.4k1531
10.4k1531
add a comment |
add a comment |
A possible solution with tikz-cd
it is very simple to have the arrows shades to blue from white.
documentclass[a4paper,12pt]{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{fadings}
begin{document}
begin{tikzcd}[column sep=.7cm]
color{gray}{mathrm{O}}
arrow[r, equal, no head] arrow[r, bend left=49, blue, path fading=west] & mathbf{C} arrow[r, no head, equal] & color{gray}{mathrm{O}} arrow[l, bend right=49, blue, path fading=east]
end{tikzcd}
end{document}
1
+1. Maybe you want to add, thatpath fading
can also be applied tochemfig
arrows. Usingdraw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png
– leandriis
Mar 12 at 22:35
add a comment |
A possible solution with tikz-cd
it is very simple to have the arrows shades to blue from white.
documentclass[a4paper,12pt]{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{fadings}
begin{document}
begin{tikzcd}[column sep=.7cm]
color{gray}{mathrm{O}}
arrow[r, equal, no head] arrow[r, bend left=49, blue, path fading=west] & mathbf{C} arrow[r, no head, equal] & color{gray}{mathrm{O}} arrow[l, bend right=49, blue, path fading=east]
end{tikzcd}
end{document}
1
+1. Maybe you want to add, thatpath fading
can also be applied tochemfig
arrows. Usingdraw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png
– leandriis
Mar 12 at 22:35
add a comment |
A possible solution with tikz-cd
it is very simple to have the arrows shades to blue from white.
documentclass[a4paper,12pt]{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{fadings}
begin{document}
begin{tikzcd}[column sep=.7cm]
color{gray}{mathrm{O}}
arrow[r, equal, no head] arrow[r, bend left=49, blue, path fading=west] & mathbf{C} arrow[r, no head, equal] & color{gray}{mathrm{O}} arrow[l, bend right=49, blue, path fading=east]
end{tikzcd}
end{document}
A possible solution with tikz-cd
it is very simple to have the arrows shades to blue from white.
documentclass[a4paper,12pt]{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{fadings}
begin{document}
begin{tikzcd}[column sep=.7cm]
color{gray}{mathrm{O}}
arrow[r, equal, no head] arrow[r, bend left=49, blue, path fading=west] & mathbf{C} arrow[r, no head, equal] & color{gray}{mathrm{O}} arrow[l, bend right=49, blue, path fading=east]
end{tikzcd}
end{document}
edited Mar 13 at 9:01
answered Mar 12 at 21:36
SebastianoSebastiano
11.1k42164
11.1k42164
1
+1. Maybe you want to add, thatpath fading
can also be applied tochemfig
arrows. Usingdraw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png
– leandriis
Mar 12 at 22:35
add a comment |
1
+1. Maybe you want to add, thatpath fading
can also be applied tochemfig
arrows. Usingdraw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png
– leandriis
Mar 12 at 22:35
1
1
+1. Maybe you want to add, that
path fading
can also be applied to chemfig
arrows. Using draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png– leandriis
Mar 12 at 22:35
+1. Maybe you want to add, that
path fading
can also be applied to chemfig
arrows. Using draw[blue, path fading = west][shorten <=3pt, shorten >=3pt](O1-2).. controls +(north:1cm) and +(120:1cm).. (C1-2);
... will result in the following output: i.stack.imgur.com/YMnc8.png– leandriis
Mar 12 at 22:35
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%2f427479%2fchemfig-and-tikz-shaded-arrow%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
Here are some ways to accomplish that.
– marmot
Apr 19 '18 at 20:09