From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: LaTeX appears not to like default Org tag export format (\hfill)? Date: Fri, 24 May 2013 20:36:26 +0200 Message-ID: <20130524203626.1b76d6fd@aga-netbook> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufwqz-000190-Kj for emacs-orgmode@gnu.org; Fri, 24 May 2013 14:36:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufwqs-0001jf-5G for emacs-orgmode@gnu.org; Fri, 24 May 2013 14:36:37 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:60932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufwqr-0001jH-Ud for emacs-orgmode@gnu.org; Fri, 24 May 2013 14:36:30 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 60C8941D5C for ; Fri, 24 May 2013 20:36:28 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1kN9BM6UHvr9 for ; Fri, 24 May 2013 20:36:28 +0200 (CEST) Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl [213.156.105.98]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 2E7B142082 for ; Fri, 24 May 2013 20:36:28 +0200 (CEST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2013-05-24, o godz. 12:07:55 John Hendy napisa=C5=82(a): > I'm getting errors on tag export: >=20 > Package hyperref Warning: Token not allowed in a PDF string > (PDFDocEncoding): (hyperref) removing `\hfill' on > input line 1706. >=20 > The tags get converted to this: >=20 > \subsection{Headline title\hfill{}\textsc{tag}} >=20 > It looks like LaTeX doesn't like that. >=20 > Any suggestions? First: I can't resist telling a joke. A guy is standing on the corner of the street smoking one cigarette after another. A lady walking by notices him and says "Hey, don't you know that those things can kill you? I mean, didn't you see the giant warning on the box?!" "That's OK" says the guy, puffing casually "I'm a computer programmer" "So? What's that got to do with anything?" "We don't care about warnings. We only care about errors." Now, to the point: indeed, this is only a warning and you don't have to worry about it. If you really do not like this warning, try putting this into your preamble (untested, but should work): \pdfstringdefDisableCommands{\def\hfill{ }} Explanation: it is not LaTeX which dislikes \hfill (though it's a plain TeX macro, not a LaTeX one), but hyperref. More precisely, the argument to \section lands not only in the ToC, but also in the pdf bookmarks, and what can go there is seemingly quite restricted (I don't know/care much about the exact details, frankly speaking). The above spell tells hyperref to (temporarily) change \hfill to a space in that context. (See hyperref's docs and/or source for more info.) > John HTH, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University