From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Rationale for *text* -> \alert{text} for Beamer export? Date: Thu, 2 May 2013 12:28:56 +0200 Message-ID: <20130502102856.GC17914@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXql5-0006kK-JP for emacs-orgmode@gnu.org; Thu, 02 May 2013 06:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXql4-0003OZ-6g for emacs-orgmode@gnu.org; Thu, 02 May 2013 06:29:03 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:56052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXql3-0003Lp-WE for emacs-orgmode@gnu.org; Thu, 02 May 2013 06:29:02 -0400 Received: by mail-wg0-f47.google.com with SMTP id e11so396119wgh.26 for ; Thu, 02 May 2013 03:29:00 -0700 (PDT) Received: from kuru.dyndns-at-home.com (ip82-139-118-35.lijbrandt.net. [82.139.118.35]) by mx.google.com with ESMTPSA id c5sm13853237wiz.11.2013.05.02.03.28.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 May 2013 03:28:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 > 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: -- Suvayu Open source is the future. It sets us free.