Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I do not know how to cross off the structure in chemfig. It should look like on the picture cross_off

Thanks!

Here is my sample code:

\documentclass[12pt,doublespacing,letterpaper]{report}

\usepackage{chemfig}


\begin{document}


\setatomsep{2em}
\setbondoffset{1pt}
\setdoublesep{3pt}
\setbondstyle{line width=1pt}


\renewcommand{\printatom}[1]{\fontsize{11pt}{11pt}\selectfont{\ensuremath{\mathrm{#1}}}}

\schemestart[0,3,thick]
\scriptsize\chemfig{*6(-=-(-[,0.65]?-[:50,1.2]O-[:-12,1.3]-[:25]-[:-130,1.3]-[:165]O-[:195]?)=-=-)}
\arrow{
->[\footnotesize \textit{n}-BuLi, B(OMe)$_3$, KHF$_2$(aq)]  
[\vspace{5cm}\footnotesize THF, -78$^\circ$C to rt]}
\scriptsize\chemfig{*6(-=-(-(=[:90]O)-[:-30,1.1]BF_3K)=-=-)}
\schemestop

\end{document}
share|improve this question
    
You could load \usetikzlibrary{shapes.misc} and then say \schemestart A \arrow(--[cross out,draw=red]) B \schemestop –  cgnieder Jun 25 '13 at 23:18
    
Thanks a lot! It worked! –  chemist Jun 26 '13 at 0:32
1  
@chemist A chemistry comment. Normally, 'reaction doesn't proceed' is shown by putting a cross either over the arrow or just after it, rather than over the structure itself. –  Joseph Wright Jun 26 '13 at 8:39
1  
@JosephWright which then would be the arrow type -/> :) –  cgnieder Jun 26 '13 at 8:41
1  
@cgnieder Yes, in the various drawing packages there is often a special 'does not go' arrow for exactly this purpose :-) –  Joseph Wright Jun 26 '13 at 8:44

1 Answer 1

up vote 3 down vote accepted

Turning my comment into an answer: you can load the Tikz library shapes.misc and simply say

\schemestart A \arrow(--[cross out,draw=red]) B \schemestop

enter image description here

\documentclass[12pt,doublespacing,letterpaper]{report}
\usepackage{chemfig}
\usetikzlibrary{shapes.misc}

\begin{document}


\setatomsep{2em}
\setbondoffset{1pt}
\setdoublesep{3pt}
\setbondstyle{line width=1pt}
\renewcommand{\printatom}[1]{\fontsize{11pt}{11pt}\selectfont\ensuremath{\mathrm{#1}}}

\schemestart[0,3,thick]
  \scriptsize
  \chemfig{*6(-=-(-[,0.65]?-[:50,1.2]O-[:-12,1.3]-[:25]-[:-130,1.3]-[:165]O-[:195]?)=-=-)}
  \arrow(--[cross out,draw=red]){%
    ->[\footnotesize \textit{n}-BuLi, B(OMe)$_3$, KHF$_2$(aq)]%
      [\footnotesize THF, -78$^\circ$C to rt]}
  \scriptsize
  \chemfig{*6(-=-(-(=[:90]O)-[:-30,1.1]BF_3K)=-=-)}
\schemestop

\end{document}
share|improve this answer
    
Thanks a lot for your help. I am not sure if you red my yesterday's comment regarding my problem using this type of arrow -/>; so if I want to cross off the arrow in my reaction scheme not the product, what command I need to write?. I tried to insert same command right after \chemfig hoping that it will cross off the arrow, but it gives me an error message. Could you please help me with that? P.S. Do I need to make this request as a new question? –  chemist Jun 27 '13 at 16:46
    
@chemist no I had not read it. If you want to notify someone in a comment you need to write his name with an @ before it in the comment. The owner of a post will always be notified, though. Regarding the problem with the -/> type arrow. I'm not sure what you want exactly. Do you want to have larger or thicker strokes? –  cgnieder Jun 27 '13 at 17:03
    
both : and thicker and larger in red color otherwise the strokes are barely seen. Thanks –  chemist Jun 27 '13 at 17:11
    
You could try to define your own arrow type (-x>?) for this. Or maybe redefine the arrow type -/>. –  cgnieder Jun 27 '13 at 17:13
    
ok, I will try. thanks –  chemist Jun 27 '13 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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