From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Adamsky Subject: Macro expansion to control beamer template Date: Thu, 21 Mar 2013 21:47:24 +0100 Message-ID: <20130321214724.78fe1595@asmara> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UImOb-0003BP-Bn for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 16:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UImOW-0001PB-CU for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 16:47:33 -0400 Received: from static.109.81.47.78.clients.your-server.de ([78.47.81.109]:60475 helo=haktar.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UImOW-0001Op-6K for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 16:47:28 -0400 Received: from asmara (p579265C6.dip.t-dialin.net [87.146.101.198]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: cit) by haktar.org (Postfix) with ESMTPSA id 193283DE0F49 for ; Thu, 21 Mar 2013 21:47:26 +0100 (CET) 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 Hello, at the moment I revise my course lectures and of course I use org-mode for that. I was searching for an easy way to create fullframe. After searching a bit in the mailing list, I found out that the 8.0-pre with its new beamer exporter already has this functionality. Therefore I switch to the current git-version. Wonderful work by the way! I created a beamer template file that I control with macros. My org-mode config file has the following snippet: (add-to-list 'org-latex-classes (list "beamer" (file-string (concat custom-basedir "templates/beamer.tex")) '("\\section{%s}" ."\\section*{%s}") '("\\subsection{%s}" . "\\subsection*{%s}") '("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) The beamer.tex file contains snippets like that: \documentclass[xetex,aspectratio={{{BEAMERRATIO}}}]{beamer} [...] \newcommand{\myEmail}{\url{{{{EMAIL}}}}} \newcommand{\myUrl}{\url{{{{URL}}}}} \newcommand{\myShortConf}{{{{SHORTCONF}}}} \newcommand{\myLongConf}{{{{LONGCONF}}}} This does not work anymore. After searching a bit in the ml archive I have read that the macro is not as powerful as before. The macro works only in the org file and not in my template file. What is the best way to work around this problem? Thanks in Advance. Best -- Florian Adamsky http://florian.adamsky.it/