Easy way to draw atomic orbitals and integrate them into ChemFig structures
I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where chemfig places atomlabels, i.e. at the ends of bonds). I give you an example:

The shapes needed for the different orbitals essentially boil down to the following

The right appearence would then be achieved by rotating and scaling these orbitals. This should ideally work with a simple command which tells chemfig to insert an orbital of a certain type (i.e. s, p, d, ...) at an atomic position and how this orbital shall be rotated, scaled or colored and which phase it should have. Is this doable? Or is there a package out there which provides such a functionality?
tikz-pgf chemfig
add a comment |
I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where chemfig places atomlabels, i.e. at the ends of bonds). I give you an example:

The shapes needed for the different orbitals essentially boil down to the following

The right appearence would then be achieved by rotating and scaling these orbitals. This should ideally work with a simple command which tells chemfig to insert an orbital of a certain type (i.e. s, p, d, ...) at an atomic position and how this orbital shall be rotated, scaled or colored and which phase it should have. Is this doable? Or is there a package out there which provides such a functionality?
tikz-pgf chemfig
add a comment |
I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where chemfig places atomlabels, i.e. at the ends of bonds). I give you an example:

The shapes needed for the different orbitals essentially boil down to the following

The right appearence would then be achieved by rotating and scaling these orbitals. This should ideally work with a simple command which tells chemfig to insert an orbital of a certain type (i.e. s, p, d, ...) at an atomic position and how this orbital shall be rotated, scaled or colored and which phase it should have. Is this doable? Or is there a package out there which provides such a functionality?
tikz-pgf chemfig
I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where chemfig places atomlabels, i.e. at the ends of bonds). I give you an example:

The shapes needed for the different orbitals essentially boil down to the following

The right appearence would then be achieved by rotating and scaling these orbitals. This should ideally work with a simple command which tells chemfig to insert an orbital of a certain type (i.e. s, p, d, ...) at an atomic position and how this orbital shall be rotated, scaled or colored and which phase it should have. Is this doable? Or is there a package out there which provides such a functionality?
tikz-pgf chemfig
tikz-pgf chemfig
asked Jun 21 '12 at 15:15
Philipp
2,38531645
2,38531645
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The chemmacros package offers s,p and sp-hybrid orbitals (based on TikZ), d orbitals are missing (for now). These are examples from the documentation:
documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
setbondoffset{0pt}
chemsetup[orbital]{
overlay ,
opacity = .75 ,
p/scale = 1.6 ,
s/color = blue!50 ,
s/scale = 1.6
}
chemfig{orbital{s}-[:-20]{orbital[scale=2]{p}}{orbital[half,angle=0]{p}}{orbital[angle=170,half]{p}}{orbital[angle=-150,half]{p}}(-[:-150]orbital{s})-orbital{s}}
end{document}

documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
chemsetup[orbital]{
overlay,
p/color = black!70
}
setbondoffset{0pt}
chemfig{?orbital{p}-[,1.3]{orbital[phase=-]{p}}-[:30,1.1]orbital{p}-[:150,.9]{orbital[phase=-]{p}}-[4,1.3]orbital{p}-[:-150,1.1]{orbital[phase=-]{p}}?}
end{document}

Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version ofchemmacros?
– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is thed$_z$orbital. The others could be modelled by using 4 timesorbital[half]{p}with appropriate angles and colors...
– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
|
show 5 more comments
I have used your suggestion
chemsetup[orbital]{
overlay,
p/color = black!40
}
setbondoffset{0pt}
chemfig{?orbital{s}}
to draw an S orbital, but the figure appears too small. How can I turn it greater? Thanks.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
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%2f60711%2feasy-way-to-draw-atomic-orbitals-and-integrate-them-into-chemfig-structures%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
The chemmacros package offers s,p and sp-hybrid orbitals (based on TikZ), d orbitals are missing (for now). These are examples from the documentation:
documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
setbondoffset{0pt}
chemsetup[orbital]{
overlay ,
opacity = .75 ,
p/scale = 1.6 ,
s/color = blue!50 ,
s/scale = 1.6
}
chemfig{orbital{s}-[:-20]{orbital[scale=2]{p}}{orbital[half,angle=0]{p}}{orbital[angle=170,half]{p}}{orbital[angle=-150,half]{p}}(-[:-150]orbital{s})-orbital{s}}
end{document}

documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
chemsetup[orbital]{
overlay,
p/color = black!70
}
setbondoffset{0pt}
chemfig{?orbital{p}-[,1.3]{orbital[phase=-]{p}}-[:30,1.1]orbital{p}-[:150,.9]{orbital[phase=-]{p}}-[4,1.3]orbital{p}-[:-150,1.1]{orbital[phase=-]{p}}?}
end{document}

Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version ofchemmacros?
– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is thed$_z$orbital. The others could be modelled by using 4 timesorbital[half]{p}with appropriate angles and colors...
– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
|
show 5 more comments
The chemmacros package offers s,p and sp-hybrid orbitals (based on TikZ), d orbitals are missing (for now). These are examples from the documentation:
documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
setbondoffset{0pt}
chemsetup[orbital]{
overlay ,
opacity = .75 ,
p/scale = 1.6 ,
s/color = blue!50 ,
s/scale = 1.6
}
chemfig{orbital{s}-[:-20]{orbital[scale=2]{p}}{orbital[half,angle=0]{p}}{orbital[angle=170,half]{p}}{orbital[angle=-150,half]{p}}(-[:-150]orbital{s})-orbital{s}}
end{document}

documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
chemsetup[orbital]{
overlay,
p/color = black!70
}
setbondoffset{0pt}
chemfig{?orbital{p}-[,1.3]{orbital[phase=-]{p}}-[:30,1.1]orbital{p}-[:150,.9]{orbital[phase=-]{p}}-[4,1.3]orbital{p}-[:-150,1.1]{orbital[phase=-]{p}}?}
end{document}

Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version ofchemmacros?
– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is thed$_z$orbital. The others could be modelled by using 4 timesorbital[half]{p}with appropriate angles and colors...
– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
|
show 5 more comments
The chemmacros package offers s,p and sp-hybrid orbitals (based on TikZ), d orbitals are missing (for now). These are examples from the documentation:
documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
setbondoffset{0pt}
chemsetup[orbital]{
overlay ,
opacity = .75 ,
p/scale = 1.6 ,
s/color = blue!50 ,
s/scale = 1.6
}
chemfig{orbital{s}-[:-20]{orbital[scale=2]{p}}{orbital[half,angle=0]{p}}{orbital[angle=170,half]{p}}{orbital[angle=-150,half]{p}}(-[:-150]orbital{s})-orbital{s}}
end{document}

documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
chemsetup[orbital]{
overlay,
p/color = black!70
}
setbondoffset{0pt}
chemfig{?orbital{p}-[,1.3]{orbital[phase=-]{p}}-[:30,1.1]orbital{p}-[:150,.9]{orbital[phase=-]{p}}-[4,1.3]orbital{p}-[:-150,1.1]{orbital[phase=-]{p}}?}
end{document}

The chemmacros package offers s,p and sp-hybrid orbitals (based on TikZ), d orbitals are missing (for now). These are examples from the documentation:
documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
setbondoffset{0pt}
chemsetup[orbital]{
overlay ,
opacity = .75 ,
p/scale = 1.6 ,
s/color = blue!50 ,
s/scale = 1.6
}
chemfig{orbital{s}-[:-20]{orbital[scale=2]{p}}{orbital[half,angle=0]{p}}{orbital[angle=170,half]{p}}{orbital[angle=-150,half]{p}}(-[:-150]orbital{s})-orbital{s}}
end{document}

documentclass{article}
usepackage{chemfig,chemmacros}
begin{document}
chemsetup[orbital]{
overlay,
p/color = black!70
}
setbondoffset{0pt}
chemfig{?orbital{p}-[,1.3]{orbital[phase=-]{p}}-[:30,1.1]orbital{p}-[:150,.9]{orbital[phase=-]{p}}-[4,1.3]orbital{p}-[:-150,1.1]{orbital[phase=-]{p}}?}
end{document}

answered Jun 21 '12 at 15:37
clemens
51k5129277
51k5129277
Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version ofchemmacros?
– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is thed$_z$orbital. The others could be modelled by using 4 timesorbital[half]{p}with appropriate angles and colors...
– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
|
show 5 more comments
Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version ofchemmacros?
– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is thed$_z$orbital. The others could be modelled by using 4 timesorbital[half]{p}with appropriate angles and colors...
– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version of
chemmacros?– Philipp
Jun 21 '12 at 15:46
Thank you. That's an awesome package. That mostly solves my problem. There is only one tiny drawback: it includes s, p and sp-hybrid orbitals but no d orbitals. Is there also a solution for that? Or could you include them in a future version of
chemmacros?– Philipp
Jun 21 '12 at 15:46
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
@Philipp I have that on my TODO list for a while now. Maybe I can put it a bit higher on my list, though.
– clemens
Jun 21 '12 at 15:48
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
Sorry, I seem to have skipped the sentence where you alread wrote that there are no d orbitals included in the package. I guess I got distracted by the stunning pictures ;) It's nice to hear that it is already on your TODO list. Until then I will try to get by with ChemDraw when I have to draw something with d orbitals.
– Philipp
Jun 21 '12 at 15:54
The only real problem is the
d$_z$ orbital. The others could be modelled by using 4 times orbital[half]{p} with appropriate angles and colors...– clemens
Jun 21 '12 at 16:38
The only real problem is the
d$_z$ orbital. The others could be modelled by using 4 times orbital[half]{p} with appropriate angles and colors...– clemens
Jun 21 '12 at 16:38
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
I guess it is the torus contained in the $mathrm{d}_{z^2}$ orbital which makes things complicated. Would it make things easier to build the orbital from two half p orbitals sandwiching an ellipse between them (like in the pictures contained in my question) or can't this be handled properly when it comes to rotation, scaling etc.?
– Philipp
Jun 22 '12 at 11:29
|
show 5 more comments
I have used your suggestion
chemsetup[orbital]{
overlay,
p/color = black!40
}
setbondoffset{0pt}
chemfig{?orbital{s}}
to draw an S orbital, but the figure appears too small. How can I turn it greater? Thanks.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
add a comment |
I have used your suggestion
chemsetup[orbital]{
overlay,
p/color = black!40
}
setbondoffset{0pt}
chemfig{?orbital{s}}
to draw an S orbital, but the figure appears too small. How can I turn it greater? Thanks.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
add a comment |
I have used your suggestion
chemsetup[orbital]{
overlay,
p/color = black!40
}
setbondoffset{0pt}
chemfig{?orbital{s}}
to draw an S orbital, but the figure appears too small. How can I turn it greater? Thanks.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have used your suggestion
chemsetup[orbital]{
overlay,
p/color = black!40
}
setbondoffset{0pt}
chemfig{?orbital{s}}
to draw an S orbital, but the figure appears too small. How can I turn it greater? Thanks.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 3 mins ago
Kurt
35.1k847158
35.1k847158
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 33 mins ago
Décio Krause
1
1
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Décio Krause is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
add a comment |
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
1
1
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
Welcome, please ask a new question. This does not answer the question at the very top.
– Johannes_B
30 mins ago
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%2f60711%2feasy-way-to-draw-atomic-orbitals-and-integrate-them-into-chemfig-structures%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