Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Tue, 24 Mar 2009 11:58:19 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n2OAwINK015458 for ; Tue, 24 Mar 2009 11:58:19 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n2OAscQN004945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Mar 2009 11:54:38 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2O8wjTS001396; Tue, 24 Mar 2009 11:54:37 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 217967 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 24 Mar 2009 11:54:36 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2OAsalh029423 for ; Tue, 24 Mar 2009 11:54:36 +0100 Received: from mta2.cl.cam.ac.uk (mta2.cl.cam.ac.uk [128.232.0.14]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n2OAsNYQ018569 for ; Tue, 24 Mar 2009 11:54:27 +0100 Received: from sxp10.cl.cam.ac.uk ([128.232.10.70] helo=cl.cam.ac.uk) by mta2.cl.cam.ac.uk with esmtp (Exim 3.092 #1) id 1Lm4H1-0004Oo-00 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 24 Mar 2009 10:54:23 +0000 X-Mailer: MH-E 8.0.3; nmh 1.3; GNU Emacs 22.3.1 Message-ID: <16314.1237892063@cl.cam.ac.uk> Date: Tue, 24 Mar 2009 10:54:23 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Robin Fairbairns Subject: Re: inputenc for XeTeX and LuaTeX To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Your message of Tue, 24 Mar 2009 11:28:05 +0100. <49C8B5B5.2010906@telecom-bretagne.eu> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 24 Mar 2009 10:58:19.0586 (UTC) FILETIME=[711D4220:01C9AC6F] Status: R X-Status: X-Keywords: X-UID: 5724 Elie Roux 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