Math & ScienceChemfig: \chemmove proper anchor

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

Chemfig: \chemmove proper anchor

Post by Molibdeno »

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

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[
  a4paper,
  margin=15mm,
  bindingoffset=2mm,
  heightrounded,
]{geometry}

\usepackage{chemfig}
\usepackage{chemformula}
\usepackage{xcolor}
\usepackage[version=4]{mhchem}
\definecolor{cerulean}{HTML}{0080C0}

\begin{document}
\begin{flushleft}
\begin{figure}[htbp]
  \schemestart
    \chemfig[]{
    \chemabove{R}{
    \scriptstyle\color{magenta}{\delta +}}
    (-[:0]@{Nu}\chemabove{O}{\scriptstyle\color{cerulean}{\delta -}}H)
    }
    \+
    \chemfig[]{
    R'(-[:0]@{El}
        \chemabove[0.5pt]{C}{
            \scriptstyle\hspace{3.5mm}\color{magenta}{\delta +}}(-[0]H)(-[2]R'')
            (-[6]\chembelow{Cl}{\scriptstyle\color{cerulean}{\delta -}})
            )
    }
    \arrow(.base east--.base west){->[][][3pt]}   
   \chemname{\chemfig{R'-CH_{2}(-[:90]OR)}}{Etere}
   \+
   \chemfig{HCl}
  \schemestop
  \chemnameinit{}
  \chemmove{
  \draw[shorten <=7pt, shorten >=7pt](Nu).. controls +(north:1cm) and +(north:1cm).. (El);
  }
\end{figure}
\end{flushleft}
\end{document}
Image

Recommended reading 2024:

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

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

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

Chemfig: \chemmove proper anchor

Post by Johannes_B »

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