Discussion:
where is ifthen
(too old to reply)
John Campbell
2007-08-20 17:52:38 UTC
Permalink
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this page:
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen. The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.

John Campbell
Joseph Wright
2007-08-20 18:26:47 UTC
Permalink
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this page:http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen. The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
John Campbell
Its part of the base LaTeX bundle (if memory serves, it was written by
Leslie Lamport!). So you don't need to add it - if you have LaTeX you
have ifthen.

Joseph Wright
John Campbell
2007-08-20 19:44:25 UTC
Permalink
Thanks for your time Joseph; got it working now.

John Campbell
Post by Joseph Wright
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this
page:http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen.
The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
John Campbell
Its part of the base LaTeX bundle (if memory serves, it was written by
Leslie Lamport!). So you don't need to add it - if you have LaTeX you
have ifthen.
Joseph Wright
Nicola Talbot
2007-08-20 18:35:20 UTC
Permalink
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this page:http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen. The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
Did you remember:
\usepackage{ifthen}

ifthen.sty should be in the directory texmf/tex/latex/base (or folder
texmf\tex\latex\base depending on your OS)

Regards
Nicola Talbot
John Campbell
2007-08-20 19:44:25 UTC
Permalink
Thanks Nicola, I didn't think of that. It works fine now.

John Campbell
Post by Nicola Talbot
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this
page:http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen.
The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
\usepackage{ifthen}
ifthen.sty should be in the directory texmf/tex/latex/base (or folder
texmf\tex\latex\base depending on your OS)
Regards
Nicola Talbot
John Campbell
2007-08-20 21:45:46 UTC
Permalink
Thanks Nicola; I did forget that. Works fine now.

John Campbell
Post by Nicola Talbot
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager, and
seems not to be availalbe on ctan according to this
page:http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen.
The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
\usepackage{ifthen}
ifthen.sty should be in the directory texmf/tex/latex/base (or folder
texmf\tex\latex\base depending on your OS)
Regards
Nicola Talbot
Ulrich M. Schwarz
2007-08-20 18:02:33 UTC
Permalink
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the
animate package. Ifthen is not listed in the miktex (2.6.2738) package
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen. The
ctan page says that ifthen is part of the Latex distribution, but the
use of, say, \whiledo in a document gets the error message "undefined
control sequence." Anyone know how I can get ifthen? Thanks.
Ah, that statement might be confusing if you don't already know what it
means: ifthen.sty is not within the LaTeX kernel (the commands that are
always there, like \ref or the equation environment), but it is part of
the distribution, much as the fontenc or inputenc packages and the book,
report, article classes.

In short, this means: if you have, say, article.cls, you also have
ifthen.sty, because these are always shipped together in the
distribution. Hence, you don't need to install it seperately, you can
just say \usepackage{ifthen}, and if this doesn't work, it would be a
grave mistake on part of the MikTeX packagers.

HTH
Ulrich
Alexander Grahn
2007-08-21 07:33:49 UTC
Permalink
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package
You don't need to load it explicitly because animate.sty loads it on
its own.
See example 6.2 in the animate documentation.

Alexander
John Campbell
2007-08-21 15:18:01 UTC
Permalink
Thanks Alexander; that helps me too.

John Campbell
(should I have known that from the animate doc.? I have been reading
through it for the last few days and didn't notice, though most of my time
has been spent trying to understand the fp package commands. Anyway thanks
again.)
Post by Alexander Grahn
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package
You don't need to load it explicitly because animate.sty loads it on
its own.
See example 6.2 in the animate documentation.
Alexander
Frank Mittelbach
2007-09-04 21:34:14 UTC
Permalink
Post by John Campbell
I am trying to get the ifthen package so that I can make use of the animate
package. Ifthen is not listed in the miktex (2.6.2738) package manager,
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=ifthen.
well when I read the info from the above link I don't know why you think it
is not available from ctan.
Post by John Campbell
The ctan
page says that ifthen is part of the Latex distribution, but the use of,
say, \whiledo in a document gets the error message "undefined control
sequence." Anyone know how I can get ifthen? Thanks.
a) it says it is part of core latex so should be on your system if you have
latex (which is why there is no miktex package for it it comes with "base
latex")

b) it also says ...a \usepackage command is always needed to load it.

thus if you say \whiledo without that \usepackage you shouldn't be
surprised. of course statement b) is not quite accurate since any other
package or class may load ifthen for you so that that in certain situations
it might be available without any additional \useackage{ifthen}

c) if you actually search for it on ctan you will find the source of it and
the ready to use version both

cheers
frank

Continue reading on narkive:
Loading...