From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: [PATCH] Distinguish = and ~ delimiters in LaTeX export Date: Sun, 30 Jan 2011 08:44:12 -1000 Message-ID: <84A78870-6D14-4DBA-A6F3-7709102124A9@tsdye.com> References: <7D426067-ED81-42E7-B517-29F06F35EB8F@tsdye.com> <80zkqinuxa.fsf@missioncriticalit.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55650 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjcG4-00039U-A8 for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 13:44:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjcG3-0007yk-3A for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 13:44:20 -0500 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:39798) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PjcG2-0007yU-SN for emacs-orgmode@gnu.org; Sun, 30 Jan 2011 13:44:19 -0500 In-Reply-To: <80zkqinuxa.fsf@missioncriticalit.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org On Jan 30, 2011, at 7:49 AM, S=E9bastien Vauban wrote: > Hi Thomas, > > "Thomas S. Dye" wrote: >> The default value of org-export-latex-emphasis-alist treats the =3D =20= >> and ~ >> delimiters as \\verb. Both settings are ignored because org-export- >> latex-use-verb is nil by default. The =3D and ~ delimiters produce =20= >> \texttt{} >> instead of \verb. This patch distinguishes =3D and ~ by changing the =20= >> default >> for =3D to \\texttt{%s}. >> >> The docstring has also been changed to refer to org-export-latex-=20 >> use- verb. >> >> With this patch, users exporting to LaTeX will be able to use =3D for = =20 >> \texttt >> text in LaTeX moving environments and ~ for \verb text in places =20 >> where it is >> safe to use this construct. > > What's the real use of that variable? I mean, wouldn't it be more =20 > simple if > Org's export behavior was just based on the contents of > org-export-latex-emphasis-alist? Is there verbatim in it, we use =20 > verbatim. Is > is texttt in it, we use texttt... > > In fact, in which cases do we want to override what's described in =20 > the alist? > > Best regards, > Seb > > --=20 > S=E9bastien Vauban Aloha Seb, Do you mean the variable org-export-latex-use-verb? I haven't looked =20= into its history in the git repo. Currently it defaults to nil, so =20 \verb is not used and \texttt is used in its place. Carsten has a patch on the list today that changes the default to t, =20 which means that what you see in the alist is pretty much what you =20 get. For reasons having to do with typesetting code snippets (that I =20= don't fully understand), Carsten protects special characters in =20 \texttt. This means that the alist doesn't contain a markup character =20= that yields straight \texttt, though it should be straightforward to =20 add one. I hope this helps. In any event, it represents the limit of my =20 understanding of what goes on in org-latex.el, which I freely admit =20 falls far short of full comprehension. All the best, Tom