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.

For a paper I have to describe certain reactions. I am using the chemfig package to do this. The paper has to be two columns and this is where it goes wrong. When I compile this reaction:

\documentclass[12pt,twocolumn]{article}

\usepackage{chemfig}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{minipage}{0.5\columnwidth}
\schemestart[][west]
\chemfig{CO}
\+
\chemfig{M}
\arrow{->}
\chemfig{M-[:90,,,,decorate,decoration=snake]CO}
\arrow{->}
\chemfig{M-[:90,,,,decorate,decoration=snake]C}
\arrow{0}[,0]\+\arrow{0}[,0]
\chemfig{M-[:90,,,,decorate,decoration=snake]O}
\schemestop
\end{minipage}

\lipsum[2-4]
\end{document}

It is to wide to fit in one column. I have tried putting it in a minipage environment but it seems to ignore the minipage and remain the same size.

Is there a way to make my reaction fit in one column?

share|improve this question
    
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Jubobs Mar 17 '13 at 20:12
    
I have added an MWE. It seems the article class and the 12pt make the problem occur somehow. –  Thoge Mar 17 '13 at 20:38
add comment

1 Answer 1

up vote 5 down vote accepted

enter image description here

You can use \noindent to remove the paragraph indentation which saves half the over-hang, and for the rest you can shrink the arrows a bit (I hope that doesn't change the meaning, my chemistry is a bit rusty)

\documentclass[12pt,twocolumn]{article}

\usepackage{chemfig}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{lipsum}

\begin{document}

\lipsum[1]


\noindent
\schemestart[][west]
\chemfig{CO}
\+
\chemfig{M}
\arrow[0,.8]
\chemfig{M-[:90,,,,decorate,decoration=snake]CO}
\arrow[0,.8]
\chemfig{M-[:90,,,,decorate,decoration=snake]C}
\arrow{0}[,0]\+\arrow{0}[,0]
\chemfig{M-[:90,,,,decorate,decoration=snake]O}
\schemestop


\lipsum[2-4]
\end{document}
share|improve this answer
    
The arrows can be shrunk for a whole scheme: \schemestart[,.8] (the [west] doesn't do anything in the example) or the whole document or a group: \setarrowdefault{,.8}. –  cgnieder Mar 17 '13 at 21:28
    
@cgnieder thanks, it's first time I've used the package:-) –  David Carlisle Mar 17 '13 at 21:36
    
Your solution works! Many thanks for the help! –  Thoge Mar 18 '13 at 8:32
    
@DavidCarlisle there's a first time for everything :) –  cgnieder Mar 18 '13 at 11:15
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.