emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] How to modify org-export-latex-emphasis-alist


From: Sebastian Rose
Subject: Re: [Orgmode] How to modify org-export-latex-emphasis-alist
Date: Sun, 03 Oct 2010 23:32:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Thomas S. Dye" <address@hidden> 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
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]