From: Florian Adamsky <fa-orgmode@haktar.org>
To: emacs-orgmode@gnu.org
Subject: Macro expansion to control beamer template
Date: Thu, 21 Mar 2013 21:47:24 +0100 [thread overview]
Message-ID: <20130321214724.78fe1595@asmara> (raw)
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/
next reply other threads:[~2013-03-21 20:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 20:47 Florian Adamsky [this message]
2013-03-21 21:10 ` Macro expansion to control beamer template Sebastien Vauban
2013-03-21 22:12 ` Florian Adamsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130321214724.78fe1595@asmara \
--to=fa-orgmode@haktar.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).