# [texworks] Compilation with error in encoding T1

Stefan Löffler st.loeffler at gmail.com
Wed Dec 16 14:53:46 CET 2009

Am 2009-12-16 14:43, schrieb Reinhard Kotucha:
> On 16 December 2009 Stefan Löffler wrote:
>
>  > It looks like LaTeX is not finding the file H:\Miktex
>  > portable\tex\latex\base\t1enc.def.
>
> It is found and read.  From the log file:
>
> ("H:\Miktex portable\tex\latex\base\t1enc.def"
> File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
> LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
> )
>
> The problem obviously occurs later.
>

Yeah, you're right. My fault.
But if I understand those LaTeX messages correctly, the error occurs
while LaTeX is still parsing fontenc.sty, right? A quick glance over
that file showed me several \IfFileExist checks, so normally there
shouldn't be a problem (in fact the example compiled nicely on my
machine). Maybe the fontenc package is corrupted? In that case I'd
suggest reinstalling the package providing fontenc.sty (however that is
called in MiKTeX). Another option would be to update the texmf file
database, but I'm not sure if this would help in this case (seeing that
all the other files were found).
Still, my question stands if other documents (such as the minimal
example I posted before) work. This could give a hint whether this is a
fundamental problem affecting the whole LaTeX intallation or only a
limited phenomenon which affects a few packages, maybe.

Regards,
Stefan