0

enter image description here

I have a figure which i want to do using mhchem and chemfig package. Is it possible to make forked arrows using mhchem/chemfig? Please help. I do not have any MWE created for this sort of figure.

\documentclass{article}
\usepackage{mhchem}
\usepackage{chemmacros}
\usepackage{mychemistry}
\usepackage{amsmath}
\usepackage{chemfig}
\begin{document}
\chemname{\chemfig{*6(=-(-[:-30]C{(}CH_3{)}_3)=-(-[:90]OH)=-)}}{Z}
\end{document}
7
  • Why not? Please add as always a MWE.
    – Bobyandbob
    Jul 25, 2017 at 14:14
  • What do you mean a MWE ? As i understand it means minimum working example. But, i dont have a MWE for this. I can make only the benzene figure, after that I cannot proceed, as I am not sure how to proceed. Jul 25, 2017 at 14:16
  • Ok, make that..
    – JPi
    Jul 25, 2017 at 14:19
  • 1
  • 3
    Also, please consider accepting answers to your previous questions if you are satisfied with them -- that's the preferred way to say “thank you” to users who helped you.
    – Troy
    Jul 25, 2017 at 15:00

1 Answer 1

3

Just use tikz.

\documentclass{article}
%\usepackage{mhchem}
\usepackage{chemmacros}
\usepackage{mychemistry}
\usepackage{amsmath}
\usepackage{chemfig}

\begin{document}
\begin{tikzpicture}
    \node (benzine) at (0,0) {\chemname{\chemfig{*6(=-(-[:-30]C{(}CH_3{)}_3)=-(-[:90]OH)=-)}}{$Z$}};
    \coordinate (a) at ($(benzine.east)+(1,0)$);

    \draw[] ($(benzine)!0.5!(benzine.east)$) -- node[above]{$X_2$} (a);
    \draw[->] (a) |-++ (1,1) node[right,text width=6cm]{
        monohalo substututed derivative\\
        when $X_2$ = \ch{I_2}
    };
    \draw[->] (a) --++ (1,0) node[right,text width=6cm]{
        dihalo substututed derivative\\
        when $X_2$ = \ch{Br_2}
    };
    \draw[->] (a) |-++ (1,-1) node[right,text width=6cm]{
        trihalo substututed derivative\\
        when $X_2$ = \ch{Cl_2}
    };
\end{tikzpicture}
\end{document}

enter image description here

5
  • tikz need not be loaded because chemfig already loads it. And the halogens should be typeset using ch{} (since chemmacros is loaded).
    – Troy
    Jul 25, 2017 at 15:29
  • Zis still misplaced. And the X could be italic (because it's a variable/placeholder).
    – mhchem
    Jul 25, 2017 at 17:11
  • The Z is placed by the given code, so I didn't changed that, because the question is mainly about the forked arrow. But feel free to edit the code...
    – dexteritas
    Jul 25, 2017 at 17:20
  • @Troy you can configure chemmacros to use mhchem so the statement about \ch is not entirely true… :)
    – cgnieder
    Jul 25, 2017 at 17:40
  • Yes the above working is excellent, thanks. This solves my issue, also what i need to do to get the Z at the centre of the ring? Like that in image i had pasted earlier. What should i use? Jul 26, 2017 at 5:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .