From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: latex export and beamer columns Date: Tue, 24 Nov 2009 18:02:55 +0000 Message-ID: <87ws1fg5rk.wl%ucecesf@ucl.ac.uk> References: <876394m49f.wl%ucecesf@ucl.ac.uk> <3CB39269-FB18-4155-AF32-00F6B46F8061@gmail.com> <878wdylpw5.wl%ucecesf@ucl.ac.uk> <876392lhfh.wl%ucecesf@ucl.ac.uk> <87hbsklwfa.wl%ucecesf@ucl.ac.uk> <87iqd09uju.wl%ucecesf@ucl.ac.uk> <8C1EA010-04C9-49C1-9F7F-5F0AB12EF4D0@gmail.com> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Nov_24_18:02:54_2009-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCzjU-0005eX-Nb for emacs-orgmode@gnu.org; Tue, 24 Nov 2009 13:03:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCzjQ-0005cZ-1j for emacs-orgmode@gnu.org; Tue, 24 Nov 2009 13:03:20 -0500 Received: from [199.232.76.173] (port=59041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCzjP-0005cR-SU for emacs-orgmode@gnu.org; Tue, 24 Nov 2009 13:03:15 -0500 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:60027) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NCzjP-0005IK-BI for emacs-orgmode@gnu.org; Tue, 24 Nov 2009 13:03:15 -0500 In-Reply-To: <8C1EA010-04C9-49C1-9F7F-5F0AB12EF4D0@gmail.com> 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: Carsten Dominik Cc: org-mode mailing list --Multipart_Tue_Nov_24_18:02:54_2009-1 Content-Type: text/plain; charset=US-ASCII At Tue, 24 Nov 2009 09:59:20 +0100, Carsten Dominik wrote: [...] > > Hmm, I think one would still like to be able to make text > bold and italic as well? So I don't think one should use * or /. > How about the exclamation mark? > > I guess the easiest would be to add to the two variables org-emphasis- > alist > and org-export-emphasis-alist. > > To the former your could add (maybe use other HTML tags) > > ("!" org-warning "" "") > > and to the latter > > ("!" "\\alert{%s}" nil) > > You might have to restart Emacs before these work. I've tried this (with org up to date as of an hour or so ago [Org-mode version 6.33trans (release_6.33f.29.g5064)] and emacs 23.1.1) and it doesn't work for me, having tried "!", ":" and "@" as possible markers (and I'm leaning to the latter as the best choice to avoid confusion with ends of sentences and because I don't have a lot of email addresses in my slides... ;-). The display doesn't reflect the face to be used and the text goes straight through upon export. I have customised both variables indicated and have looked at the code in org.el that handles this but cannot figure out what is wrong. Any suggestions? Attached is my beamer org test file. My settings are: --8<---------------cut here---------------start------------->8--- org-emphasis-alist is a variable defined in `org.el'. Its value is shown below. Documentation: Special syntax for emphasized text. Text starting and ending with a special character will be emphasized, for example *bold*, _underlined_ and /italic/. This variable sets the marker characters, the face to be used by font-lock for highlighting in Org-mode Emacs buffers, and the HTML tags to be used for this. For LaTeX export, see the variable `org-export-latex-emphasis-alist'. Use customize to modify this, or restart Emacs after changing it. You can customize this variable. Value: (("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=" org-code "" "" verbatim) ("~" org-verbatim "" "" verbatim) ("+" (:strike-through t) "" "") ("@" bold "" "")) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- org-export-latex-emphasis-alist is a variable defined in `org-latex.el'. Its value is (("*" "\\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--- By the way, the second variable, org-export-latex-emphasis-alist, does not appear in the possible variables to get help on (with C-h v) unless I have given it a value. It does, of course, appear in the org-latex customisation group. However, note the difference in the output from C-h v for these two variables. Maybe this gives some hint of what may be wrong? Dunno... Thanks, eric --Multipart_Tue_Nov_24_18:02:54_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="beamertest.org" Content-Transfer-Encoding: 7bit #+TITLE: Presentation with Org-Mode and Beamer #+AUTHOR: Eric S Fraga #+EMAIL: Eric S Fraga #+DATE: 2009-10-18 Sun #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:5 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+LaTeX_CLASS: beamer * Introduction *** The first point 1. <1-> I would like to say this @emphatically@. 2. <2-> and this but in *bold*. 3. <3-> but also this /emphasised/. *** the second * The guts of the presentation *** and more *** and less --Multipart_Tue_Nov_24_18:02:54_2009-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Tue_Nov_24_18:02:54_2009-1--