[texhax] If ... else

Reinhard Kotucha reinhard.kotucha at web.de
Sat Mar 7 21:41:36 CET 2015


On 2015-03-07 at 17:37:26 +0000, Philip Taylor wrote:

 > Reinhard Kotucha wrote:
 > 
 > > If you are using LaTeX, you should use the ifthen package. For
 > > documentation type
 > >
 > > 	texdoc ifthen
 > >
 > > on the command line.
 > 
 > I think that Prof. Weil needs to know how to test whether Hyperref has
 > been loaded ...

Ok, maybe something like this will do (not tested):

\ifthenelse{\isundefined{\hypersetup}}{<no hyperref>}{<hyperref>}

However, it's often better to always load the hyperref package and
turn it off (using the draft option) if not needed.  The reason is
that hyperref inserts so-called whatsit nodes which have an impact on
line breaks.

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the texhax mailing list