[Tutkielma-TeX] gradu2.cls updated - IMPORTANT CHANGES

Matthieu Weber mweber at mit.jyu.fi
Mon May 1 10:57:56 EEST 2006


On Sat 29.04.2006 at 11:32:37AM +0300, Matthieu Weber wrote:
> On Sat 29.04.2006 at 09:00:08AM +0300, Tero Tilus wrote:
> > 2006-04-27 16:43, Matthieu Weber:
> > > gradu2.cls has be updated and the current version number is 2.0.
> > 
> > I have euro symbol here and there and I got
> > 
> >   ! LaTeX Error: Command \texteuro unavailable in encoding T1.
> > 
> > With gradu2.cls v1.50 it worked fine.  I updated gradu2.cls and loaded
> > hyperref as you suggested and got that complaint.  I had
> > 
> >   \documentclass[finnish,latin9]{gradu2}
> >   ...
> >   \usepackage{eurosym}\renewcommand{\texteuro}{\euro{}}
> >   ...
> >   \ifpdf
> >     \usepackage[pdftex]{hyperref}
> >   \else
> >     \RequirePackage[hypertex]{hyperref}
> >   \fi
> > 
> > Moving \renewcommand{\texteuro}{\euro{}} after hyperref worked.  No
> > idea why (hyperref messing with \texteuro?), but it did.  I haven't
> > tested if it was _only_ a matter of hyperref after \texteuro.
> 
> hyperref redefines \texteuro in PD1 and PU encodings, but that
> shouldnt affect T1 encoding. I'll look more into it on Monday.

It affects it in the sense that fontenc.sty (used in gradu2.cls since
version 2.0) and hyperref.sty both define \texteuro. In your case,
hyperref redefines \texteuro to the default value (which is to generate
an error message). The solution is therefore to put
\renewcommand{\texteuro} after hyperref, as you did.

Matthieu
-- 
 (~._.~)        Matthieu Weber - Université de Jyväskylä         (~._.~)
  ( ? )                email : mweber at mit.jyu.fi                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)




More information about the Tutkielma-TeX mailing list