Math & ScienceDipolar bonds with XymTeX

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
feynman
Posts: 6
Joined: Tue Feb 01, 2011 2:03 am

Dipolar bonds with XymTeX

Post by feynman »

Hello!
I can't find a way to draw dipolar bonds using XymTeX.

For example, how to draw the "arrow bond" in this molecule:
images.jpg
images.jpg (2.72 KiB) Viewed 5674 times
thank you :)


Edit by localghost: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
Last edited by feynman on Thu Feb 03, 2011 2:24 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Dipolar bonds with XymTeX

Post by localghost »

feynman wrote:[…] I can't find a way to draw dipolar bonds using XymTeX. […]
Then try the excellent chemfig package.


Best regards and welcome to the board
Thorsten
feynman
Posts: 6
Joined: Tue Feb 01, 2011 2:03 am

Re: Dipolar bonds with XymTeX

Post by feynman »

Hi! Thanks for the answer and the welcome :)

I looked at the package documentation, but i can't find any example of dipolar bond, can you please show me in what page of the doc there is a dipolar bond?

Thanks :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Dipolar bonds with XymTeX

Post by localghost »

My reply was only a random shot. I must confess that I never saw such a representation of a (bi)polar bond. So I suggest to contact both package maintainers and ask for help regarding a possible solution. Even with some tricks I found no solution to do it with chemfig.
feynman
Posts: 6
Joined: Tue Feb 01, 2011 2:03 am

Dipolar bonds with XymTeX

Post by feynman »

localghost wrote:My reply was only a random shot. I must confess that I never saw such a representation of a (bi)polar bond. So I suggest to contact both package maintainers and ask for help regarding a possible solution. Even with some tricks I found no solution to do it with chemfig.
Ok, thanks anyway for your help :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Dipolar bonds with XymTeX

Post by localghost »

feynman wrote: Ok, thanks anyway for your help […]
Please report back as soon as you got an answer.
feynman
Posts: 6
Joined: Tue Feb 01, 2011 2:03 am

Dipolar bonds with XymTeX

Post by feynman »

localghost wrote:
feynman wrote: Ok, thanks anyway for your help […]
Please report back as soon as you got an answer.
Mmm it's strange, i can't find anywhere the email of the package creator (Shinsaku Fujita). Do you know where to foind it? (Nothing on his website or in google)
unbonpetit

Dipolar bonds with XymTeX

Post by unbonpetit »

localghost wrote:Even with some tricks I found no solution to do it with chemfig.
It is important to undersatnd that the "@" char puts a global tikz node. After that, everything can be done with TikZ and nodes (ie a lot of things) is possible. For example, you can draw an arrow to link 2 nodes :
Capture1.png

Code: Select all

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{@a\lewis{2:,N}(-[:-20]H)(-[:-75,0.8]H)(-[:-160]H)-[@{b,1}2,,,,draw=none]H\rlap{${}^+$}}
\chemmove{\draw[-stealth,shorten <=5pt](a)--(b);}
\end{document}
feynman
Posts: 6
Joined: Tue Feb 01, 2011 2:03 am

Re: Dipolar bonds with XymTeX

Post by feynman »

I guess you are the same person who reply at the same request into the italian Latex forum. Thanks again for your help :) I'm going to learn TikZ and chemfig after exams :)
unbonpetit

Dipolar bonds with XymTeX

Post by unbonpetit »

feynman wrote:I guess you are the same person who reply at the same request into the italian Latex forum. Thanks again for your help :) I'm going to learn TikZ and chemfig after exams :)
Yes, I'm the author of the package, I know it pretty well :lol:
Post Reply