* Macro expansion to control beamer template
@ 2013-03-21 20:47 Florian Adamsky
2013-03-21 21:10 ` Sebastien Vauban
0 siblings, 1 reply; 3+ messages in thread
From: Florian Adamsky @ 2013-03-21 20:47 UTC (permalink / raw)
To: emacs-orgmode
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Macro expansion to control beamer template
2013-03-21 20:47 Macro expansion to control beamer template Florian Adamsky
@ 2013-03-21 21:10 ` Sebastien Vauban
2013-03-21 22:12 ` Florian Adamsky
0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2013-03-21 21:10 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello Florian,
Florian Adamsky wrote:
> 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?
Would an INCLUDE in the Org file do the work for you?
Would you agree with such a solution (having to explicitly put one extra line
in all your Org Beamer files)?
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Macro expansion to control beamer template
2013-03-21 21:10 ` Sebastien Vauban
@ 2013-03-21 22:12 ` Florian Adamsky
0 siblings, 0 replies; 3+ messages in thread
From: Florian Adamsky @ 2013-03-21 22:12 UTC (permalink / raw)
To: emacs-orgmode
Dear Sebastien,
On Thu, 21 Mar 2013 22:10:26 +0100 Sebastien Vauban wrote:
> > 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?
>
> Would an INCLUDE in the Org file do the work for you?
>
> Would you agree with such a solution (having to explicitly put one
> extra line in all your Org Beamer files)?
Good idea! I think I can live with one addition line, when I will
customize org-beamer-insert-options-template :) I'll give it a try
tomorrow.
Thanks for the tip!
Best
--
Florian Adamsky
http://florian.adamsky.it/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-21 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 20:47 Macro expansion to control beamer template Florian Adamsky
2013-03-21 21:10 ` Sebastien Vauban
2013-03-21 22:12 ` Florian Adamsky
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).