From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bold font in org-e-beamer export Date: Wed, 25 Jul 2012 10:57:34 +0200 Message-ID: <87a9yo1am9.fsf@gmail.com> References: <20120724220410.GA26458@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StxSy-0001GH-9B for emacs-orgmode@gnu.org; Wed, 25 Jul 2012 05:01:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StxSs-0002KQ-DS for emacs-orgmode@gnu.org; Wed, 25 Jul 2012 05:01:12 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:56744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StxSs-0002KM-5Z for emacs-orgmode@gnu.org; Wed, 25 Jul 2012 05:01:06 -0400 Received: by wgbez12 with SMTP id ez12so381438wgb.30 for ; Wed, 25 Jul 2012 02:01:05 -0700 (PDT) In-Reply-To: <20120724220410.GA26458@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Wed, 25 Jul 2012 00:04:10 +0200") 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: Suvayu Ali Cc: Emacs Org mode Hello, Suvayu Ali writes: > org-e-beamer exports *bold markup* as \alert{..}. I was wondering if > there is a way to export it as the usual \textbf{..}. I would also like > to have a convenient markup for \structure{..}, how do I add new > markup? You can't add new markup. Though, there are already 4 symbols used for regular text and 2 for verbatim text. And you have full control over their output with filters. So, let's say "*" will produce \textbf{...} and "+" will produce \structure{...}. #+BEGIN_SRC emacs-lisp (defun suvayu-beamer-bold (contents backend info) (if (not (eq backend 'e-beamer)) contents (replace-regexp-in-string "\\`\\\\[A-Za-z0-9]+" "\\\\textbf" contents))) (defun suvayu-beamer-structure (contents backend info) (if (not (eq backend 'e-beamer)) contents (replace-regexp-in-string "\\`\\\\[A-Za-z0-9]+" "\\\\structure" contents))) (add-to-list 'org-export-filter-bold-functions 'suvayu-beamer-bold) (add-to-list 'org-export-filter-strike-through-functions 'suvayu-beamer-structure) #+END_SRC You can also derive a new back-end from e-beamer that will behave differently for bold and strike-through object types. Regards, -- Nicolas Goaziou