Received: by nummer-3.proteosys id <01C19443.4A206474@nummer-3.proteosys>; Thu, 3 Jan 2002 11:42:07 +0100 MIME-Version: 1.0 x-vm-v5-data: ([nil nil nil nil nil nil nil t nil][nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil]) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C19443.4A206474" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: babel and \everyjob Date: Wed, 23 Oct 1991 01:00:00 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Johannes L. Braams" Sender: "LaTeX-L Mailing list" To: "Rainer M. Schoepf" Reply-To: "LaTeX-L Mailing list" Status: R X-Status: X-Keywords: X-UID: 417 This is a multi-part message in MIME format. ------_=_NextPart_001_01C19443.4A206474 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I've given the matter of writing a message about the loaded pattern files at the start of (La)TeX some thought and = experimenting. I came up with code along the following lines: Add a token register to store the names of the languages, read from languages.dat, say \newtoks\languages@loaded Fill this token register by adding the line \global\languages@loaded=3D\expandafter{\the\languages@loaded#1, } Then the trick is to redefine \everyjob: \let\orig@everyjob\everyjob \def\everyjob#1{% \orig@everyjob{#1}% \orig@everyjob\expandafter{\the\orig@everyjob% \immediate\write16{hyphenation patterns for \the\languages = loaded.}}% \let\everyjob\orig@everyjob\let\orig@everyjob\undefined} This code first saves the original \everyjob command. The new definition first stores its argument into the original register, then adds a \typeout about then hyphenation patterns that have = been loaded. It then restores the original \everyjob and `deletes' itself. How'bout it? Johannes ------_=_NextPart_001_01C19443.4A206474 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable babel and \everyjob

    Hi,

        I've given = the matter of writing a message about the loaded
        pattern = files at the start of (La)TeX some thought and experimenting.
        I came up = with code along the following lines:

        Add a token = register to store the names of the languages,
        read from = languages.dat, say
\newtoks\languages@loaded
        Fill this = token register by adding the line
\global\languages@loaded=3D\expandafter{\the\languages@loaded#1,= }

        Then the = trick is to redefine \everyjob:

\let\orig@everyjob\everyjob
\def\everyjob#1{%
    \orig@everyjob{#1}%
    = \orig@everyjob\expandafter{\the\orig@everyjob%
        = \immediate\write16{hyphenation patterns for \the\languages = loaded.}}%
    = \let\everyjob\orig@everyjob\let\orig@everyjob\undefined}

        This code = first saves the original \everyjob command. The new
        definition = first stores its argument into the original register,
        then adds = a \typeout about then hyphenation patterns that have been
        = loaded.
        It then = restores the original \everyjob and `deletes' itself.

        How'bout = it?

        = Johannes


------_=_NextPart_001_01C19443.4A206474--