From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: LaTeX export Date: Fri, 02 Nov 2007 19:04:16 +0000 Message-ID: <878x5gjwpb.fsf@bzg.ath.cx> References: <87abpxot2c.fsf@hati.baby-gnu.org> <87lk9gbryg.fsf@bzg.ath.cx> <87tzo4oeeh.fsf@hati.baby-gnu.org> <87pryshbut.fsf@columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Io0sm-0002zm-VH for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 14:04:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Io0sl-0002xL-0R for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 14:04:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io0sk-0002xE-PK for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 14:04:34 -0400 Received: from nf-out-0910.google.com ([64.233.182.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Io0sk-0004XA-3A for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 14:04:34 -0400 Received: by nf-out-0910.google.com with SMTP id f5so972489nfh for ; Fri, 02 Nov 2007 11:04:33 -0700 (PDT) In-Reply-To: <87pryshbut.fsf@columbia.edu> (Xiao-Yong Jin's message of "Fri, 02 Nov 2007 12:05:14 -0400") 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: emacs-orgmode@gnu.org Xiao-Yong Jin writes: > But I would like to propose a work-around. How about make > `^' and `_' in those regions marked as =this_code= or > something similar not be interpreted as super- and > subscripts? You can already protect strings from conversion by playing with `org-export-latex-emphasis-alist', which default value is: '(("*" "\\textbf{%s}" nil) ("/" "\\emph{%s}" nil) ("_" "\\underline{%s}" nil) ("+" "\\texttt{%s}" nil) ("=" "\\texttt{%s}" nil)) If you use `t' instead of `nil' for the last element of this list, then =this_string= will be converted as \texttt{this_string} instead of \texttt{$this_{string}$} when ^:t \texttt{this\_{}string} when ^:nil I do agree that all this could be improved, and I hope I'll come with a general solution for the next release. Ideas welcome! In the meanwhile, testing latest org-export-latex.el will help *a lot*: http://www.cognition.ens.fr/~guerry/u/org-export-latex.el Thanks! -- Bastien