Math & Sciencechemmacros | Command for Redox Reaction behaves strange

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
hoytesara
Posts: 13
Joined: Sat Feb 18, 2012 10:46 am

chemmacros | Command for Redox Reaction behaves strange

Post by hoytesara »

I've been using the \redox command from the chemmacros package perfectly happily, if slightly unusually, for a while now. However, I've just noticed that it has started to add "mm" to the end of formulae. As far as I can tell, the only changes I've made are routine updates.

Code: Select all

\documentclass{article}
\usepackage{chemmacros}
\usepackage[version=3]{mhchem}
\usetikzlibrary{calc}

\begin{document}
  \ce{[\OX{a,Pt}(CH2CH=CH\OX{b,C}(CH2)2)(dcyppe)]}\redox(a,b)[][.4em]{}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

chemmacros | Command for Redox Reaction behaves strange

Post by josephwright »

Works for me with an up to date TeX system. Could you add \listfiles to your input and post the resulting file list here?
Joseph Wright
hoytesara
Posts: 13
Joined: Sat Feb 18, 2012 10:46 am

chemmacros | Command for Redox Reaction behaves strange

Post by hoytesara »

This is what I got:

Code: Select all

* File List*
article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
chemmacros.sty    2012/05/18 v3.3b macros and commands for chemists
   expl3.sty    2012/04/23 v3570 L3 Experimental code bundle wrapper
 l3names.sty    2012/03/04 v3494 L3 Experimental namespace for primitives
l3bootstrap.sty    2011/12/29 v3110 L3 Experimental bootstrap code
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
   color.sty    1999/02/16
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
l3basics.sty    2012/03/04 v3491 L3 Experimental basic definitions
 l3expan.sty    2012/02/26 v3460 L3 Experimental argument expansion
    l3tl.sty    2012/03/04 v3490 L3 Experimental token lists
   l3seq.sty    2012/03/04 v3490 L3 Experimental sequences and stacks
   l3int.sty    2012/03/04 v3490 L3 Experimental integers
 l3quark.sty    2012/02/12 v3384 L3 Experimental quarks
   l3prg.sty    2012/03/04 v3490 L3 Experimental control structures
 l3clist.sty    2012/03/04 v3490 L3 Experimental comma separated lists
 l3token.sty    2012/03/04 v3491 L3 Experimental token manipulation
  l3prop.sty    2012/03/04 v3490 L3 Experimental property lists
   l3msg.sty    2012/04/23 v3568 L3 Experimental messages
  l3file.sty    2012/03/09 v3520 L3 Experimental file and I/O operations
  l3skip.sty    2012/03/05 v3499 L3 Experimental dimensions and skips
  l3keys.sty    2012/03/03 v3487 L3 Experimental key-value interfaces
    l3fp.sty    2012/03/04 v3490 L3 Experimental floating-point operations
   l3box.sty    2012/03/04 v3490 L3 Experimental boxes
l3coffins.sty    2012/03/03 v3482 L3 Experimental coffin code layer
 l3color.sty    2011/09/07 v2776 L3 Experimental colour support
l3luatex.sty    2012/02/09 v3355 L3 Experimental LuaTeX-specific functions
  xparse.sty    2012/04/23 v3570 L3 Experimental document command parser
l3keys2e.sty    2012/04/23 v3570 LaTeX2e option processing using LaTeX3 keys
   xfrac.sty    2012/02/26 v3465 L3 Experimental split-level fractions
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
xtemplate.sty    2012/04/23 v3570 L3 Experimental prototype document functions
 siunitx.sty    2012/05/03 v2.5c A comprehensive (SI) units package
   array.sty    2008/09/09 v2.4c Tabular extension package (FMi)
translator.sty    2010/06/12 ver 1.10 translator-language-mappings.tex
    tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)
     pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)
  pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
  pgfrcs.code.tex
 pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)
  pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)
  pgfsys.code.tex
pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)
pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 pgfcore.code.tex
pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)
pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)
  pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)
 pgfkeys.sty    
 pgfkeys.code.tex
  pgffor.code.tex
    tikz.code.tex
mathtools.sty    2012/04/24 v1.12 mathematical typesetting tools
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
 mhsetup.sty    2010/01/21 v1.2a programming setup (MH)
 amsmath.sty    2000/07/18 v2.13 AMS math features
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
 environ.sty    2008/06/18 v0.2 A new way to define environments
scrlfile.sty    2011/03/09 v3.09 KOMA-Script package (loading files)
etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
      bm.sty    2004/02/26 v1.1c Bold Symbol Support (DPC/FMi)
chemformula.sty    2012/05/18 v3.3b typeset chemical compounds and reactions
nicefrac.sty    1998/08/04 v0.9b Nice fractions
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
  mhchem.sty    2011/06/03 v3.11 for typesetting chemical formulae
  twoopt.sty    2008/08/11 v1.5 Definitions with two optional arguments (HO)
ghsystem.sty    2012/05/18 v3.3b globally harmonised system
    tabu.sty    2011/02/26 v2.8 - flexible LaTeX tabulars (FC)
varwidth.sty    2009/03/30 ver 0.92;  Variable-width minipages
longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
ghsystem_english.def
  xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
translator-basic-dictionary-English.dict    
siunitx-abbreviations.cfg    2012/05/03 v2.5c siunitx: Abbreviated units
siunitx-binary.cfg    2012/05/03 v2.5c siunitx: Binary units
***********
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

chemmacros | Command for Redox Reaction behaves strange

Post by cgnieder »

Your system is not up to date. For example the newest chemmacros is

Code: Select all

chemmacros.sty    2012/09/11 v3.4 macros and commands for chemists
whereas you have

Code: Select all

chemmacros.sty 2012/05/18 v3.3b macros and commands for chemists
Similarly all your l3 packages are not up to date. You have

Code: Select all

expl3.sty 2012/04/23 v3570 L3 Experimental code bundle wrapper
but the newest one is

Code: Select all

expl3.sty    2012/09/05 v4205 L3 Experimental code bundle wrapper
You should make an update and try again.

Regards
site moderator & package author
hoytesara
Posts: 13
Joined: Sat Feb 18, 2012 10:46 am

Re: chemmacros | Command for Redox Reaction behaves strange

Post by hoytesara »

Done, and it fixed it. Thanks!
Post Reply