From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: How to modify org-export-latex-emphasis-alist Date: Sun, 03 Oct 2010 23:32:32 +0200 Message-ID: <87fwwnvu6n.fsf@gmx.de> References: <24C72165-A63C-4582-A34E-41F193624D7E@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=43583 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2WAg-0006IC-9T for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 17:32:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2WAe-0001QU-VF for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 17:32:38 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:55349 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P2WAe-0001QK-I4 for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 17:32:36 -0400 In-Reply-To: <24C72165-A63C-4582-A34E-41F193624D7E@tsdye.com> (Thomas S. Dye's message of "Sun, 3 Oct 2010 10:30:12 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode mailing list "Thomas S. Dye" writes: > Aloha all, > > I use this patch locally to let the LaTeX url package typeset and break lines in > long path names. Is there a way to make this change from my .emacs, so I can > continue to use the Org-mode master branch and not my url branch? Or, is there > a better way to implement this without changing the Org-mode core? Put this in your configuration file (.emacs probably): (setq org-export-latex-emphasis-alist '(("*" "\\textbf{%s}" nil) ("/" "\\emph{%s}" nil) ("_" "\\underline{%s}" nil) ("+" "\\st{%s}" nil) ("=" "\\url{%s}" nil) ("~" "\\verb" t))) HTH Sebastian > Changes from master to url > Modified lisp/org-latex.el > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index 9a62457..920591a 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -230,7 +230,7 @@ are written as utf8 files." > ("/" "\\emph{%s}" nil) > ("_" "\\underline{%s}" nil) > ("+" "\\st{%s}" nil) > - ("=" "\\verb" t) > + ("=" "\\url{%s}" nil) > ("~" "\\verb" t)) > "Alist of LaTeX expressions to convert emphasis fontifiers. > Each element of the list is a list of three elements. > > All the best, > Tom >