* LaTeX appears not to like default Org tag export format (\hfill)? @ 2013-05-24 17:07 John Hendy 2013-05-24 18:36 ` Marcin Borkowski 2013-05-24 18:44 ` Nick Dokos 0 siblings, 2 replies; 3+ messages in thread From: John Hendy @ 2013-05-24 17:07 UTC (permalink / raw) To: emacs-orgmode I'm getting errors on tag export: Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `\hfill' on input line 1706. The tags get converted to this: \subsection{Headline title\hfill{}\textsc{tag}} It looks like LaTeX doesn't like that. Any suggestions? John ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LaTeX appears not to like default Org tag export format (\hfill)? 2013-05-24 17:07 LaTeX appears not to like default Org tag export format (\hfill)? John Hendy @ 2013-05-24 18:36 ` Marcin Borkowski 2013-05-24 18:44 ` Nick Dokos 1 sibling, 0 replies; 3+ messages in thread From: Marcin Borkowski @ 2013-05-24 18:36 UTC (permalink / raw) To: emacs-orgmode Dnia 2013-05-24, o godz. 12:07:55 John Hendy <jw.hendy@gmail.com> napisał(a): > I'm getting errors on tag export: > > Package hyperref Warning: Token not allowed in a PDF string > (PDFDocEncoding): (hyperref) removing `\hfill' on > input line 1706. > > The tags get converted to this: > > \subsection{Headline title\hfill{}\textsc{tag}} > > It looks like LaTeX doesn't like that. > > 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, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LaTeX appears not to like default Org tag export format (\hfill)? 2013-05-24 17:07 LaTeX appears not to like default Org tag export format (\hfill)? John Hendy 2013-05-24 18:36 ` Marcin Borkowski @ 2013-05-24 18:44 ` Nick Dokos 1 sibling, 0 replies; 3+ messages in thread From: Nick Dokos @ 2013-05-24 18:44 UTC (permalink / raw) To: emacs-orgmode John Hendy <jw.hendy@gmail.com> writes: > I'm getting errors on tag export: > > Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): > (hyperref) removing `\hfill' on input line 1706. > > The tags get converted to this: > > \subsection{Headline title\hfill{}\textsc{tag}} > > It looks like LaTeX doesn't like that. LaTeX has no problem with it: it's hyperref that does not like it. > > Any suggestions? > It's a warning, not an error, so unless it causes a real problem, I'd ignore it. Nick ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-24 18:44 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-24 17:07 LaTeX appears not to like default Org tag export format (\hfill)? John Hendy 2013-05-24 18:36 ` Marcin Borkowski 2013-05-24 18:44 ` Nick Dokos
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).