From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch, ox-latex] better hyperref and title options Date: Sun, 15 Feb 2015 02:53:42 +0100 Message-ID: <87lhk0aqjd.fsf@pank.eu> References: <87bnl0ynd2.fsf@gmx.us> <87bnkyvfz2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMoP8-0005yA-8y for emacs-orgmode@gnu.org; Sat, 14 Feb 2015 20:53:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMoP5-0006LY-2m for emacs-orgmode@gnu.org; Sat, 14 Feb 2015 20:53:50 -0500 Received: from mout.gmx.net ([212.227.15.15]:51909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMoP4-0006LN-Pb for emacs-orgmode@gnu.org; Sat, 14 Feb 2015 20:53:47 -0500 Received: from W530 ([109.201.154.182]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LmbZb-1Xmehn35tr-00aBXq for ; Sun, 15 Feb 2015 02:53:44 +0100 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 Nicolas Goaziou writes: >> + (?k . ,(or (plist-get info :keywords) "")) >> + (?d . ,(or (plist-get info :description) "")) So it occurred to me that these should also be exported to proper syntax so we don't end up with e.g. a raw $ or & in our latex document. Hyperref will actually handle it, but usually by discarding offending characters. However, since they are plain strings something like \alpha will be exported as $\backslash$lpha. I can kind of get it interpreting using org-element-parse-secondary-string, but this is not the right approach. Is there a reason why DESCRIPTION and KEYWORDS can't have formatting? =E2=80=94Rasmus PS: I hope I didn't send this twice if so I apologize. --=20 Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio