Curious behaviour of MikTeX 2.9

Help
2012-10-20
2012-10-21
  • James Keeler

    James Keeler - 2012-10-20

    I have installed MikTeX 2.9 on my laptop (oldish, running XP) and my desktop (new, running Windows 7).

    I'm using pdfTeX and on the Windows 7 machine the log file says
    This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)

    and on the XP machine it says
    This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)

    The following minimal example illustrates an odd behaviour which I have found

    \documentclass{book}

    \usepackage{caption}
    \usepackage{newfloat}

    \DeclareFloatingEnvironment{boxa}

    \captionsetup[figure]{name=Fig.,font=small,labelfont=bf}

    \captionsetup[boxa]{labelformat=empty,textformat=empty}

    \begin{document}

    Hello world

    \begin{figure}[h]
    \caption{Hello world}
    \end{figure}

    \end{document}

    (1) On the Windows 7 machine this works perfectly, but on the XP machine I get the error message
    "\DeclareFloatingEnvironment already defined".

    (2) If I remove \usepackage{newfloat}, then all is well on the XP machine.

    (3) However, removing \usepackage{newfloat} on the Windows 7 machine gives the error
    "undefined control sequence \DeclareFloatingEnvironment".

    My un-informed diagnosis of this is that on the XP machine including the package "caption" somehow also includes "newfloat", but that this is not so on the Windows 7 machine.

    I've updated both setups today, and updated all the packages.

    Does anyone have any suggestion as to what the problem might be here? Is it just some quirk of the 64 bit vs vanilla implementation? The work round is easy, but it's bugging me.

    Many thanks

    James Keeler

     
    • Joseph Wright

      Joseph Wright - 2012-10-20

      On 20/10/2012 17:21, James Keeler wrote:

      I have installed MikTeX 2.9 on my laptop (oldish, running XP) and my desktop (new, running Windows 7).

      I'm using pdfTeX and on the Windows 7 machine the log file says
      This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)

      and on the XP machine it says
      This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)

      The following minimal example illustrates an odd behaviour which I have found

      \documentclass{book}

      \usepackage{caption}
      \usepackage{newfloat}

      \DeclareFloatingEnvironment{boxa}

      \captionsetup[figure]{name=Fig.,font=small,labelfont=bf}

      \captionsetup[boxa]{labelformat=empty,textformat=empty}

      \begin{document}

      Hello world

      \begin{figure}[h]
      \caption{Hello world}
      \end{figure}

      \end{document}

      (1) On the Windows 7 machine this works perfectly, but on the XP machine I get the error message
      "\DeclareFloatingEnvironment already defined".

      (2) If I remove \usepackage{newfloat}, then all is well on the XP machine.

      (3) However, removing \usepackage{newfloat} on the Windows 7 machine gives the error
      "undefined control sequence \DeclareFloatingEnvironment".

      My un-informed diagnosis of this is that on the XP machine including the package "caption" somehow also includes "newfloat", but that this is not so on the Windows 7 machine.

      I've updated both setups today, and updated all the packages.

      Does anyone have any suggestion as to what the problem might be here? Is it just some quirk of the 64 bit vs vanilla implementation? The work round is easy, but it's bugging me.

      Many thanks

      James Keeler

      In the first instance, I would \listfiles and compare versions. I
      suspect you've got an issue with running MiKTeX as a 'normal' user but
      updating as Admin, but need to see the versions.
      --
      Joseph Wright

       
  • James Keeler

    James Keeler - 2012-10-21

    Thank you. There's only one user on both machines, which is my account, and this has admin privileges. When you say "listfiles and compare versions", which files are you suggesting I compare, please? Many thanks. James.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks