From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: Question on org-beamer markup Date: Thu, 13 Jan 2011 16:41:41 +0000 Message-ID: <87pqs092nu.fsf@ucl.ac.uk> References: <4D2DE792.8070502@ccbr.umn.edu> <807he9hnuj.fsf@missioncriticalit.com> <87vd1tfl1x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47884 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdQpS-0007gt-1P for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:19:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdQpQ-000704-US for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:19:18 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:41795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdQpQ-0006yq-Ok for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:19:16 -0500 In-Reply-To: <87vd1tfl1x.fsf@gmail.com> (Rafael Villarroel's message of "Wed, 12 Jan 2011 23:07:54 -0600") 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: Rafael Villarroel Cc: emacs-orgmode@gnu.org Rafael Villarroel writes: > S=C3=A9bastien Vauban writes: > >> Erik Iverson wrote: >>> According to http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.= html >>> >>> the following markup should work when exporting to PDF from an org-beam= er >>> document. >>> >>> - the first, very @important@, point! >>> - the previous point shows the use of the special markup which >>> translates to the Beamer specific /alert/ command for highlighting >>> text. >>> >>> However, upon export the resulting .tex file does not actually contain = this >>> translation from @important@ to the alert command, but rather sill has >>> @important@ in the output. >>> >>> Am I missing some part of the setup process? >> >> You must update *manually* the var =3Dorg-export-latex-emphasis-alist=3D: >> >> #+begin_src emacs-lisp >> ;; alist of LaTeX expressions to convert emphasis fontifiers >> (setq org-export-latex-emphasis-alist >> '(("*" "\\textbf{%s}" nil) >> ("/" "\\emph{%s}" nil) >> ("_" "\\underline{%s}" nil) >> ("+" "\\st{%s}" nil) >> ("=3D" "\\url{%s}" nil) >> ;; `url' breaks lines in long strings (was `verb') >> ("~" "\\verb~%s~" t) >> ("@" "\\alert{%s}" nil))) >> #+end_src >> > > This should be enough right? > > (add-to-list 'org-emphasis-alist '("@" org-warning "" "")) > (add-to-list 'org-export-latex-emphasis-alist '("@" "\\alert{%s}" nil)) > > However, it does not work for me with=20 > Org-mode version 7.4 (release_7.4.166.gf7a7.dirty) > (that is, neither the text between @'s is fontified, nor is exported to > an alert, as Erik mentioned. > > > This, however, does work for me: > > (add-to-list 'org-emphasis-alist '("+" org-warning "" "")) > (add-to-list 'org-export-latex-emphasis-alist '("+" "\\alert{%s}" nil)) > > so I'm thinking, maybe there is something else to be done to declare @ > as a valid delimiter? > > Regards, > Rafael Strange. I don't specify anything anywhere in my initialisation files about the @ symbol being special. All I have in my files is: #+begin_src emacs-lisp (setq org-emphasis-alist (quote (("*" bold "" "")=20 ("/" italic "" "") ("_" underline "" "= ") ("=3D" org-code "" "" verbatim) ("~" org-verbatim "" "" verbatim) ("+" (:strike-through t) "" "") ("@" org-warning "" ""))) org-export-latex-emphasis-alist (quote=20 (("*" "\\textbf{%s}" nil) ("/" "\\emph{%s}" nil)=20 ("_" "\\underline{%s}" nil) ("+" "\\texttt{%s}" nil) ("=3D" "\\verb=3D%s=3D" nil) ("~" "\\verb~%s~" t) ("@" "\\alert{%s}" nil))) ) #+end_src I would have thought that =3Dadd-to-list=3D should have worked as well.=20= =20 However, I do have this customisation at the very *start* of all of my org customisations, even *before* my =3D(require 'org-install)=3D line! It may be that these variables need to be set before you load org? Alternatively, maybe you should use emacs's customisation methods to set these variables? HTH, eric --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.4 (release_7.4.168.g0ec8)