Return-Path: Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 15 Jun 2011 13:52:22 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx045) with SMTP; 15 Jun 2011 15:52:22 +0200 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 p5FDo0qG005838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Jun 2011 15:50:00 +0200 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 p5FBJe9w013891; Wed, 15 Jun 2011 15:49:59 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1260292 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 15 Jun 2011 15:49:59 +0200 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 p5FDnxah018387 for ; Wed, 15 Jun 2011 15:49:59 +0200 Received: from ueamailgate02.uea.ac.uk (ueamailgate02.uea.ac.uk [139.222.131.185]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p5FDnd1p010117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jun 2011 15:49:47 +0200 Received: from ueams01.uea.ac.uk (ueams01.uea.ac.uk [139.222.131.78]) by ueamailgate02.uea.ac.uk (8.13.8/8.13.8) with ESMTP id p5FDndZt031812 for ; Wed, 15 Jun 2011 14:49:39 +0100 Received: from [139.222.217.48] (helo=ashytailorbird2.hornet.uea.ac.uk) by ueams01.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1QWqTO-0007Kn-O6 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 15 Jun 2011 14:49:34 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 References: <4DF7CBEF.6080402@arcor.de> <20110614221243.GA9520@oberdiek.my-fqdn.de> <4DF8B044.2040903@morningstar2.co.uk> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN, outgoing) X-CanIt-Geo: ip=139.222.131.78; country=GB; region=I9; city=Norwich; latitude=52.6333; longitude=1.3000; http://maps.google.com/maps?q=52.6333,1.3000&z=6 X-CanItPRO-Stream: UEA:outgoing (inherits from UEA:default,base:default) X-Canit-Stats-ID: 06EUdNDR0 - 58b25c9dcfac - 20110615 X-Scanned-By: CanIt (www . roaringpenguin . com) on 139.222.131.185 Message-ID: <4DF8B872.8050904@morningstar2.co.uk> Date: Wed, 15 Jun 2011 14:49:38 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: xparse and hyperref: Token not allowed in a PDF string (PDFDocEncoding) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <4DF8B044.2040903@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antivirus: 0 (no virus found) X-GMX-Antispam: 5 (BackTrace mail analyze); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnGL2vqOgpaBYL16oitsMrgDt/NQNpSCZF7bt5n WT2HM05kZHMA2+V1T/kzHOXPU9LzGW5+z8hP8Ugqd1jciWZLw==V1; Status: R X-Status: X-Keywords: X-UID: 6787 On 15/06/2011 14:14, Joseph Wright wrote: > There are a number of ways we could handle this. One way would be to > have a \DeclareBookmarkableCommand (or similar) macro, which would work > in the form > > \DeclareBookmarkableCommand\foo{m} > {Standard code} > {Bookmark code} One issue this approach would raise is whether the two implementations (expandable and non-expandable) should be tied together. You can imagine using the \DeclareDocumentCommandImplemenation idea to separate out expandable and protected versions of a macro without needing to create both at the same time. One approach might then be \DeclareBookmarkCommand \foo { m } { Bookmark code } which checks for an existing \foo, checks that the arg. spec. is the same, then does what Heiko suggested and sets things up to allow a selection of route. -- Joseph Wright