emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Rationale for *text* -> \alert{text} for Beamer export?


From: Suvayu Ali
Subject: Re: [O] Rationale for *text* -> \alert{text} for Beamer export?
Date: Thu, 2 May 2013 12:28:56 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

On Thu, May 02, 2013 at 02:48:41AM +0000, James Harkins wrote:
> ... implemented my own hack to customize the LaTeX
> command for beamer to use for *bold text* (pasted as a git patch
> below).

 [...chomp...chomp...chomp...]

> From 8ccbc7cad43b520067b8b29d4660fc99587995fd Mon Sep 17 00:00:00 2001
> From: James Harkins <address@hidden>
> Date: Thu, 21 Feb 2013 09:51:02 +0800
> Subject: [PATCH] hjh temp: add customize variable for bold/alert style
> 
> ---
>  lisp/ox-beamer.el |    9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
> index dc427de..44c1c68 100644
> --- a/lisp/ox-beamer.el
> +++ b/lisp/ox-beamer.el
> @@ -206,6 +206,12 @@ You might want to put e.g. \"allowframebreaks=0.9\" 
> here."
>    :group 'org-export-beamer
>    :type '(string :tag "Outline frame options"))
>  
> +(defcustom org-beamer-bold-macro "alert"
> +  "LaTeX macro to insert for bold text (delimited by asterisks in the org 
> source file).
> +The default \"alert\" renders as red text, normal weight.
> +Substitute \"textbf\" to obtain boldface."
> +  :group 'org-export-beamer
> +  :type '(string :tag "Bold macro"))
>  
>  
>  ;;; Internal Variables
> @@ -334,7 +340,8 @@ Return overlay specification, as a string, or nil."
>    "Transcode BLOCK object into Beamer code.
>  CONTENTS is the text being bold.  INFO is a plist used as
>  a communication channel."
> -  (format "\\alert%s{%s}"
> +  (format "\\%s%s{%s}"
> +       org-beamer-bold-macro
>         (or (org-beamer--element-has-overlay-p bold) "")
>         contents))

Not sure a patch introducing yet another variable is warranted when all
you need is a filter:

  <http://orgmode.org/worg/exporters/beamer/ox-beamer.html#export-filters>

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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