emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: Org-beamer problems


From: Eric S Fraga
Subject: Re: [Orgmode] Re: Org-beamer problems
Date: Fri, 21 Jan 2011 20:54:37 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Henri-Paul Indiogine <address@hidden> writes:

> Hi Eric!
>
> Eric S Fraga <address@hidden> writes:
>> Regarding the @ problem, where and how do you make the settings.  As I
>> have said on this list recently, I find that I have to set the variables
>> concerned *before* I load org (through =(require 'org-install)=) or
>> otherwise the regular expressions that use these variables are
>> initialised incorrectly (I believe this is the root cause of the
>> problem).
>
> I am not getting this.  Sorry for being dense.  Here is the relevant
> code from my .emacs
>
> ;;
> ;; BEGIN org-mode
> ;;
> (setq org-export-latex-emphasis-alist (quote
>                                       (("*" "\\textbf{%s}" nil)
>                                        ("/" "\\emph{%s}" nil)
>                                        ("_" "\\underline{%s}" nil)
>                                        ("+" "\\texttt{%s}" nil)
>                                        ("=" "\\verb=%s=" nil)
>                                        ("~" "\\verb~%s~" t)
>                                        ("@" "\\alert{%s}" nil))))

You need to also set =org-emphasis-alist=. I have:

--8<---------------cut here---------------start------------->8---
(setq org-emphasis-alist (quote (("*" bold "<b>" "</b>") 
                                 ("/" italic "<i>" "</i>")
                                 ("_" underline "<span 
style=\"text-decoration:underline;\">" "</span>")
                                 ("=" org-code "<code>" "</code>" verbatim)
                                 ("~" org-verbatim "<code>" "</code>" verbatim)
                                 ("+" (:strike-through t) "<del>" "</del>")
                                 ("@" org-warning "<b>" "</b>")))
      org-export-latex-emphasis-alist (quote 
                                       (("*" "\\textbf{%s}" nil)
                                        ("/" "\\emph{%s}" nil) 
                                        ("_" "\\underline{%s}" nil)
                                        ("+" "\\texttt{%s}" nil)
                                        ("=" "\\verb=%s=" nil)
                                        ("~" "\\verb~%s~" t)
                                        ("@" "\\alert{%s}" nil)))
      )
--8<---------------cut here---------------end--------------->8---

Try that and let us know how it goes.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.231.ge879)



reply via email to

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