4

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?

2
  • 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}.
    – jub0bs
    Commented Mar 17, 2013 at 20:12
  • I have added an MWE. It seems the article class and the 12pt make the problem occur somehow.
    – Herthog
    Commented Mar 17, 2013 at 20:38

1 Answer 1

5

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}
4
  • 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
    Commented Mar 17, 2013 at 21:28
  • @cgnieder thanks, it's first time I've used the package:-) Commented Mar 17, 2013 at 21:36
  • Your solution works! Many thanks for the help!
    – Herthog
    Commented Mar 18, 2013 at 8:32
  • @DavidCarlisle there's a first time for everything :)
    – cgnieder
    Commented Mar 18, 2013 at 11:15

You must log in to answer this question.

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