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}
  • Why not? Please add as always a MWE. – Bobyandbob Jul 25 '17 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. – Abhijeet Pattnayak Jul 25 '17 at 14:16
  • Ok, make that.. – JPi Jul 25 '17 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 '17 at 15:00
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

  • 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 '17 at 15:29
  • Zis still misplaced. And the X could be italic (because it's a variable/placeholder). – mhchem Jul 25 '17 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 '17 at 17:20
  • @Troy you can configure chemmacros to use mhchem so the statement about \ch is not entirely true… :) – clemens Jul 25 '17 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? – Abhijeet Pattnayak Jul 26 '17 at 5:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.