LaTeX forum ⇒ Math & ScienceChemfig: \chemmove proper anchor

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Molibdeno
Posts: 3
Joined: Fri Apr 07, 2017 12:15 pm

Chemfig: \chemmove proper anchor

Postby Molibdeno » Sun Jun 25, 2017 12:12 pm

How can I do so that the arrow drawn through the \chemmmove command does not overlay with the C-R' bond?

  1. \documentclass{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[italian]{babel}
  5. \usepackage[
  6. a4paper,
  7. margin=15mm,
  8. bindingoffset=2mm,
  9. heightrounded,
  10. ]{geometry}
  11.  
  12. \usepackage{chemfig}
  13. \usepackage{chemformula}
  14. \usepackage{xcolor}
  15. \usepackage[version=4]{mhchem}
  16. \definecolor{cerulean}{HTML}{0080C0}
  17.  
  18. \begin{document}
  19. \begin{flushleft}
  20. \begin{figure}[htbp]
  21. \schemestart
  22. \chemfig[]{
  23. \chemabove{R}{
  24. \scriptstyle\color{magenta}{\delta +}}
  25. (-[:0]@{Nu}\chemabove{O}{\scriptstyle\color{cerulean}{\delta -}}H)
  26. }
  27. \+
  28. \chemfig[]{
  29. R'(-[:0]@{El}
  30. \chemabove[0.5pt]{C}{
  31. \scriptstyle\hspace{3.5mm}\color{magenta}{\delta +}}(-[0]H)(-[2]R'')
  32. (-[6]\chembelow{Cl}{\scriptstyle\color{cerulean}{\delta -}})
  33. )
  34. }
  35. \arrow(.base east--.base west){->[][][3pt]}
  36. \chemname{\chemfig{R'-CH_{2}(-[:90]OR)}}{Etere}
  37. \+
  38. \chemfig{HCl}
  39. \schemestop
  40. \chemnameinit{}
  41. \chemmove{
  42. \draw[shorten <=7pt, shorten >=7pt](Nu).. controls +(north:1cm) and +(north:1cm).. (El);
  43. }
  44. \end{figure}
  45. \end{flushleft}
  46. \end{document}

Image

User avatar
Johannes_B
Site Moderator
Posts: 3548
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Jun 25, 2017 12:47 pm

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests