Math & ScienceProblem with (both) siunitx and xfrac

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

Problem with (both) siunitx and xfrac

Post by cbkschroeder »

Hello,

Thanks for reading my post.

I have several documents which, as of today, don't compile; they complied fine before. I have MikTeX 2.8 and have run my package updater today.

One example:

Code: Select all

\documentclass{article}

\usepackage{xfrac}

\begin{document}
\end{document}
This produces output as shown in "test 01.log".

A second example is:

Code: Select all

\documentclass{article}

\usepackage{siunitx}

\begin{document}
\num{1}
\end{document}
This produces output as shown in "test 02.log".

I am assuming the problem with siunitx exists because there may be a problem with xfrac. Otherwise, as simple as it seems, perhaps the problem is with me! Am I missing something?

Thanks for any feedback or help!
Attachments
test 02.log
(14.22 KiB) Downloaded 291 times
test 01.log
(15.35 KiB) Downloaded 242 times
Last edited by cbkschroeder on Thu Sep 30, 2010 2:27 pm, edited 1 time in total.

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Problem with (both) siunitx and xfrac

Post by frabjous »

I am using an up-to-date version of the TeXlive distribution. (I just updated about an hour ago.) I don't have any trouble compiling your sample documents. (Well, I added "Hello World" to the first one so it wouldn't be blank when compiled.)

Joseph Wright, who frequents these forums, may be able to give you a better answer, but looking at your log files and comparing them to mine, it seems to me that the problem may have to do with using an older version of the xpackages/xbase bundle with newer versions of xfrac and siunitx. An update for xpackages came through on my system yesterday (I tend to update every day; a little obsessive I admit). It's possible that you updated right before that made it to your CTAN mirror.

In your first example, your error comes when processing xtemplate.sty, which is part of the xpackages or xbase bundle (which xfrac calls). Mine is dated 2010/09/20 v2037; yours is dated 2010/04/14 v1896.

Comparing our log files in the second case, we are both using the very recent siunitx 2010/09/26 v2.0v. However, you are loading xparse 2010/05/23 v1927 and I am loading xparse 2010/09/20 v2037. xparse is also part of the xpackages or xbase bundle.

If I were you, I'd try updating again and see if the new version of xpackages/xbase had made it through to your repository yet. (I don't know much about MiKTeX, but I assume you can refresh packages whenever.) Perhaps that would fix your problem.
cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

Re: Problem with (both) siunitx and xfrac

Post by cbkschroeder »

Hi,

Thanks for your post!

I tried updating, several times, and from a couple of different repositories, actually. No luck. The timing of this little problem is rather ill... I'm trying to get a paper out :shock: Ahh, Murphy.

Any further ideas I might try?

Cheers!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with (both) siunitx and xfrac

Post by frabjous »

If you're really in a hurry, you could try one of the online LaTeX compilers (here's a list), and see if any of them do any better.

(Or send me a private message and I can try to compile your document, assuming you trust a strange with it, and you're sure it's ready to go.)

Oh, and if it helps, I use http://carroll.aset.psu.edu/pub/CTAN as my repository.
cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

Re: Problem with (both) siunitx and xfrac

Post by cbkschroeder »

You're very kind; thank you. I'm at the "I'd like to get the first solid draft done by the end of the week" stage. ;) Unfortunately, my supervisor is not a LaTeX user; he just likes to see nice pdf's. It would be nice to compile-and-see frequently, but I suppose I can live without for a day or so if I have to. Thanks for the nice links, too.

Barring success with your repository - I'll try that shortly - are there any ideas you might put forward as to how I could solve this? Why would MikTeX have such different versions? I would have thought running the update wizard would take care of everything like this. For the record, I can reproduce this problem with more than one of my machines - unfortunately.

Cheers.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Problem with (both) siunitx and xfrac

Post by frabjous »

I doubt the difference is between MikTeX and TeXlive. I'm fairly sure that when it combines to contributed packages, they use precisely the same parts of the various CTAN repository mirrors. It's just that some updates make it to certain CTAN mirrors faster than others. But as I said before, I'm not that familiar with MiKTeX. (It doesn't run on linux.) Do try the PSU mirror, but I'm not sure what to suggest if that doesn't work.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Problem with (both) siunitx and xfrac

Post by josephwright »

You should be able to get the 'self-install' files expl3.tds.zip and xpackages.tds.zip from CTAN and do a local installation. TeX Live got fixed almost immediately, so the problem is MiKTeX (as there is only one person to do the updates).
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with (both) siunitx and xfrac

Post by localghost »

I checked that with most recent packages on a MiKTeX 2.8 system after update from today (repository version 3924, dated 2010-09-29). I had no problems with the following examples (file lists added).

Code: Select all

\listfiles
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{siunitx}

\begin{document}
\num{3,1415927}
\end{document}

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
 siunitx.sty    2010/09/26 v2.0v A comprehensive (SI) units package
   expl3.sty    2010/09/16 v2022 L3 Experimental code bundle wrapper
 l3names.sty    2010/09/26 v2048 L3 Experimental Naming Scheme for TeX Primitives
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty    2010/09/20 v2037 L3 Experimental basic definitions
 l3expan.sty    2010/09/20 v2037 L3 Experimental Argument Expansion module
    l3tl.sty    2010/09/21 v2040 L3 Experimental Token Lists
l3intexpr.sty    2010/09/22 v2045 L3 Integer Expressions
 l3quark.sty    2010/09/20 v2036 L3 Experimental Quark Commands
   l3seq.sty    2010/03/29 v1879 L3 Experimental sequences and stacks
  l3toks.sty    2010/09/20 v2037 L3 Experimental Token Registers
   l3int.sty    2010/09/19 v2029 L3 Experimental Integer module
   l3prg.sty    2010/09/22 v2043 L3 Experimental control structures
 l3clist.sty    2010/09/20 v2037 L3 Experimental comma separated lists
 l3token.sty    2010/09/19 v2029 L3 Experimental token investigation and manipulation
  l3prop.sty    2010/03/21 v1857 L3 Experimental Property Lists
   l3msg.sty    2010/03/23 v1866 L3 Experimental LaTeX Messages module
    l3io.sty    2010/05/22 v1923 L3 Experimental i/o module
  l3skip.sty    2010/09/23 v2047 L3 Experimental skip registers
   l3box.sty    2010/09/26 v2048 L3 Experimental Box module
l3keyval.sty    2010/04/11 v1890 L3 Experimental keyval processing
  l3keys.sty    2010/05/24 v1931 L3 Experimental key-value support
l3precom.sty    2010/02/09 v1793 L3 Experimental precompilation module
  l3xref.sty    2010/02/09 v1786 L3 Experimental cross referencing
  l3file.sty    2010/03/21 v1853 L3 Experimental file loading
    l3fp.sty    2010/09/19 v2029 L3 Experimental floating-point operations
l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
   array.sty    2008/09/09 v2.4c Tabular extension package (FMi)
l3keys2e.sty    2009/08/24 v1494 Parsing LaTeX3 keyvals as LaTeX2e package options
  xparse.sty    2010/09/20 v2037 Generic document command parser
translator.sty    2010/06/12 ver 1.10
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
translator-language-mappings.tex
   t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  ts1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
translator-basic-dictionary-English.dict    
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ot1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ot1lmtt.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ***********

Code: Select all

\listfiles
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{xfrac}

\begin{document}
$\sfrac{1}{2}$
\end{document}

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
   xfrac.sty    2010/02/02 v0.3 Text fractions
   expl3.sty    2010/09/16 v2022 L3 Experimental code bundle wrapper
 l3names.sty    2010/09/26 v2048 L3 Experimental Naming Scheme for TeX Primitives
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty    2010/09/20 v2037 L3 Experimental basic definitions
 l3expan.sty    2010/09/20 v2037 L3 Experimental Argument Expansion module
    l3tl.sty    2010/09/21 v2040 L3 Experimental Token Lists
l3intexpr.sty    2010/09/22 v2045 L3 Integer Expressions
 l3quark.sty    2010/09/20 v2036 L3 Experimental Quark Commands
   l3seq.sty    2010/03/29 v1879 L3 Experimental sequences and stacks
  l3toks.sty    2010/09/20 v2037 L3 Experimental Token Registers
   l3int.sty    2010/09/19 v2029 L3 Experimental Integer module
   l3prg.sty    2010/09/22 v2043 L3 Experimental control structures
 l3clist.sty    2010/09/20 v2037 L3 Experimental comma separated lists
 l3token.sty    2010/09/19 v2029 L3 Experimental token investigation and manipulation
  l3prop.sty    2010/03/21 v1857 L3 Experimental Property Lists
   l3msg.sty    2010/03/23 v1866 L3 Experimental LaTeX Messages module
    l3io.sty    2010/05/22 v1923 L3 Experimental i/o module
  l3skip.sty    2010/09/23 v2047 L3 Experimental skip registers
   l3box.sty    2010/09/26 v2048 L3 Experimental Box module
l3keyval.sty    2010/04/11 v1890 L3 Experimental keyval processing
  l3keys.sty    2010/05/24 v1931 L3 Experimental key-value support
l3precom.sty    2010/02/09 v1793 L3 Experimental precompilation module
  l3xref.sty    2010/02/09 v1786 L3 Experimental cross referencing
  l3file.sty    2010/03/21 v1853 L3 Experimental file loading
    l3fp.sty    2010/09/19 v2029 L3 Experimental floating-point operations
l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
 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)
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    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2010/09/14 v0.05b Graphics/color for pdfTeX
l3keys2e.sty    2009/08/24 v1494 Parsing LaTeX3 keyvals as LaTeX2e package options
  xparse.sty    2010/09/20 v2037 Generic document command parser
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
  ts1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
xtemplate.sty    2010/09/20 v2037 Prototype document functions
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
   t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
supp-pdf.mkii
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ***********

Best regards
Thorsten
cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

Re: Problem with (both) siunitx and xfrac

Post by cbkschroeder »

Hello all,

Thanks for your interest and feedback on this.

I ran updates this morning using the MikTeX update wizard and sure enough updates, which fixed my problem, propagated through. Certainly a learning experience for me; I've never had this happen before.

Anyway, thanks again!

Christian
Post Reply