LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Robin Fairbairns <[log in to unmask]>
Date: Tue, 24 Mar 2009 10:54:23 +0000
In-Reply-To: Your message of Tue, 24 Mar 2009 11:28:05 +0100. <[log in to unmask]>
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (31 lines)
Elie Roux <[log in to unmask]> wrote:

> \RequirePackage{ifluatex}
> \RequirePackage{iflxetex}
> \ifluatex
> \RequirePackage{luainputenc}
> \else
> \ifxetex
>   \RequirePackage{xetexinputenc}
> \else
>   \RequirePackage{legacyinputenc}
> \fi
> \fi

this doesn't work reliably: you need explicit \PassOptionsToPackage for
each option, before \RequirePackage.

(your code seems to work for just one option, but not for 2.  people do
use inputenc with >1 option...though i'm not certain it's sensible to do
so.)

something like

\def\RequirePackageWithOptions#1{%
  \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{#1}}%
  \ProcessOptions
  \RequirePackage{#1}%
}

robin

ATOM RSS1 RSS2