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 am trying to cross of the structure after the arrow (with an anchor) but I get a mess. I've been told how to do that without the anchor. I was trying to move a "cross off" command to different places but with no luck. Here is my sample:

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

\usepackage{chemfig}

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

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

\begin{document}

\schemestart[0,1.2,thick]
\chemfig{CH_2=CH-C(=[:90]O)-COH}
\arrow(.mid east--.mid west){%
->[\footnotesize 1. NaH][2. \textbf{1}]%
}[,2,thick]
\chemfig{Ph-CH_2-CH-C(=[:90]O)-COH}
\schemestop



\end{document}

Thanks in advance!

share|improve this question
    
I guess you're refering to tex.stackexchange.com/q/121084/5049? Besides that I have no idea what you're tried or what you're trying to do... –  cgnieder Jul 9 '13 at 13:18
    
@cgnieder Yes, you are right, I am referring to tex.stackexchange.com/q/121084/5049, but in this case \arrow(--[cross out,draw=red])(.mid east--.mid west) doesn't work and \arrow(.mid east--.mid west)(--[cross out,draw=red]) doesn't work either. –  chemist Jul 9 '13 at 13:30
    
Out of curiosity: the \textbf{1} looks like a number referring to a compound. You're not actually using \textbf{1} but a package like chemnum or chemcompounds, right? –  cgnieder Jul 9 '13 at 16:08
    
@cgnieder As you noticed, I am a newbie in Latex and I used \textbf{1} to label my compound because it was the fastest way I could get this done using chemfig manual. Fortunately, I needed only one compound to be labeled in my thesis. I've never heard about chemnum or chemcompounds packages and I should dedicate more time to learn Latex. –  chemist Jul 9 '13 at 20:38
    
Well, for a single label you of course don't need those packages :) –  cgnieder Jul 11 '13 at 9:12
add comment

1 Answer

up vote 2 down vote accepted

You can use cgnieder's answer to How to cross off the structure in chemfig:

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

\usepackage{chemfig}
\usetikzlibrary{shapes.misc}
\setatomsep{2em}
\setbondoffset{1pt}
\setdoublesep{3pt}
\setbondstyle{line width=1pt}

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

\begin{document}

\schemestart[0,1.2,thick]
\chemfig{CH_2=CH-C(=[:90]O)-COH}
\arrow(.mid east--.mid west[cross out,draw=red]){%
->[\footnotesize 1. NaH][2. \textbf{1}]%
}[,2,thick]
\chemfig{Ph-CH_2-CH-C(=[:90]O)-COH}
\schemestop

\end{document}

enter image description here

share|improve this answer
add comment

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.