LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Robin Fairbairns <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 24 Mar 2009 10:54:23 +0000
Content-Type:
text/plain
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