* Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs
@ 2011-03-22 15:08 Bernd Weiss
2011-03-24 9:16 ` Eric S Fraga
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Weiss @ 2011-03-22 15:08 UTC (permalink / raw)
To: emacs-orgmode
Dear all,
I am preparing a Beamer presentation and I am having some trouble with
side effects (?) due to my attempt to customize the LaTeX-export. My
minimum example can be found below.
The default LaTeX-export does not recognise the '\institute'-option (I
mean, as far as I know). For that reason, I run "(add-to-list
'org-export-latex-classes ...)". Unfortunately, the export-function does
no longer recognice ":BEAMER_envargs: [plain]" (or ":BEAMER_envargs:
[shrink=5]")[1].
Thanks,
Bernd
[1] Which is obviously due to "\\begin{frame}[fragile]\\frametitle{%s}
...".
#+begin_src emacs-lisp :results silent :exports none
(add-to-list 'org-export-latex-classes
;; beamer class, for presentations
'("beamer"
"\\documentclass[11pt]{beamer}\n
[NO-DEFAULT-PACKAGES]
[EXTRA]
\\mode<{{{beamermode}}}>\n
\\usetheme{{{{beamertheme}}}}\n
\\institute{{{{beamerinstitute}}}}\n
\\subject{{{{beamersubject}}}}\n"
("\\section{%s}" . "\\section*{%s}")
("\\begin{frame}[fragile]\\frametitle{%s}"
"\\end{frame}"
"\\begin{frame}[fragile]\\frametitle{%s}"
"\\end{frame}")))
#+end_src
#+LaTeX_CLASS: beamer
#+MACRO: BEAMERMODE presentation
#+MACRO: BEAMERTHEME Madrid
#+MACRO: BEAMERINSTITUTE Research Institute for ???
#+TITLE: xxxxxxxx
#+AUTHOR: Arthur Mueller
#+DATE: March, 28th 2011
#+BEAMER_FRAME_LEVEL: 2
#+latex_header: \mode<beamer>{\usetheme{Madrid}}
* Introduction
** A simple slide
:PROPERTIES:
:BEAMER_env: frame
:BEAMER_envargs: [plain]
:END:
This slide consists of some text with a number of bullet points:
- the first, very @important@, point!
- the previous point shows the use of the special markup which
translates to the Beamer specific /alert/ command for highlighting
text.
The above list could be numbered or any other type of list and may
include sub-lists.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs
2011-03-22 15:08 Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs Bernd Weiss
@ 2011-03-24 9:16 ` Eric S Fraga
2011-03-24 10:34 ` Bernd Weiss
0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2011-03-24 9:16 UTC (permalink / raw)
To: Bernd Weiss; +Cc: emacs-orgmode
Bernd Weiss <bernd.weiss@uni-koeln.de> writes:
> Dear all,
>
> I am preparing a Beamer presentation and I am having some trouble with
> side effects (?) due to my attempt to customize the LaTeX-export. My
> minimum example can be found below.
>
> The default LaTeX-export does not recognise the '\institute'-option (I
> mean, as far as I know). For that reason, I run "(add-to-list
> org-export-latex-classes ...)". Unfortunately, the export-function
> does no longer recognice ":BEAMER_envargs: [plain]" (or
> ":BEAMER_envargs: [shrink=5]")[1].
yes, that is correct. the default entry uses =org-beamer-sectioning=
which is where headings are translated to latex section or frame or
block etc entries *and* where the special beamer properties are
processed. As you have replaced the sectioning section of
=org-export-latex-classes= with your own, you have lost all of that
functionality.
You seem to want to achieve two things:
1. added your macros into the latex preamble, and
2. add the [fragile] option to each frame.
I would suggest you do 1 as you have done but keep org-beamer-sectioning
as the second argument for the org-export-latex-classes entry. To add
[fragile] to each frame, I would recommend, instead, using some
automated form of input, such as a yasnippet snippet like this one
(untested):
--8<---------------cut here---------------start------------->8---
#name : frame
# --
** ${1:frame title}
:PROPERTIES:
:BEAMER_envargs: ${2:[fragile]}
:END:
$0
--8<---------------cut here---------------end--------------->8---
so that typing "frame" followed by TAB would define a new headline,
prompting for the title and possible arguments (with defaults).
HTH,
eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.113.g9010a.dirty)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs
2011-03-24 9:16 ` Eric S Fraga
@ 2011-03-24 10:34 ` Bernd Weiss
2011-03-24 10:57 ` Eric S Fraga
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Weiss @ 2011-03-24 10:34 UTC (permalink / raw)
To: Eric S Fraga, emacs-orgmode
Am 24.03.2011 05:16, schrieb Eric S Fraga:
> Bernd Weiss<bernd.weiss@uni-koeln.de> writes:
>
>> Dear all,
>>
>> I am preparing a Beamer presentation and I am having some trouble with
>> side effects (?) due to my attempt to customize the LaTeX-export. My
>> minimum example can be found below.
>>
>> The default LaTeX-export does not recognise the '\institute'-option (I
>> mean, as far as I know). For that reason, I run "(add-to-list
>> org-export-latex-classes ...)". Unfortunately, the export-function
>> does no longer recognice ":BEAMER_envargs: [plain]" (or
>> ":BEAMER_envargs: [shrink=5]")[1].
>
> yes, that is correct. the default entry uses =org-beamer-sectioning=
> which is where headings are translated to latex section or frame or
> block etc entries *and* where the special beamer properties are
> processed. As you have replaced the sectioning section of
> =org-export-latex-classes= with your own, you have lost all of that
> functionality.
>
> You seem to want to achieve two things:
>
> 1. added your macros into the latex preamble, and
> 2. add the [fragile] option to each frame.
>
> I would suggest you do 1 as you have done but keep org-beamer-sectioning
> as the second argument for the org-export-latex-classes entry. To add
> [fragile] to each frame, I would recommend, instead, using some
> automated form of input, such as a yasnippet snippet like this one
> (untested):
>
> --8<---------------cut here---------------start------------->8---
> #name : frame
> # --
> ** ${1:frame title}
> :PROPERTIES:
> :BEAMER_envargs: ${2:[fragile]}
> :END:
> $0
> --8<---------------cut here---------------end--------------->8---
>
> so that typing "frame" followed by TAB would define a new headline,
> prompting for the title and possible arguments (with defaults).
Hi Eric,
Thanks for your help! Unfortunately, that's not what I was looking for
and, therefore, rephrased my unclear question ("Specifying
\institute[short]{long] in Beamer presentations"). As pointed out by
Miklós or Suvayu, the solution was embarrassingly simpel: Just include
#+BEAMER_HEADER_EXTRA: \institute{My insitute}
or
#+LaTeX_HEADER: \institute[short name]{My awesome institute}
Anyway, I really appreciate your help!
Bernd
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs
2011-03-24 10:34 ` Bernd Weiss
@ 2011-03-24 10:57 ` Eric S Fraga
0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2011-03-24 10:57 UTC (permalink / raw)
To: Bernd Weiss; +Cc: emacs-orgmode
Bernd Weiss <bernd.weiss@uni-koeln.de> writes:
[...]
> Hi Eric,
>
> Thanks for your help! Unfortunately, that's not what I was looking for
> and, therefore, rephrased my unclear question ("Specifying
> \institute[short]{long] in Beamer presentations"). As pointed out by
> Miklós or Suvayu, the solution was embarrassingly simpel: Just include
>
> #+BEAMER_HEADER_EXTRA: \institute{My insitute}
>
> or
>
> #+LaTeX_HEADER: \institute[short name]{My awesome institute}
Ah, okay; I did note, however, that you did seem to be wanting to add
the [fragile] option to every frame.
Glad you got a solution, in any case!
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.113.g9010a.dirty)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-24 10:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 15:08 Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs Bernd Weiss
2011-03-24 9:16 ` Eric S Fraga
2011-03-24 10:34 ` Bernd Weiss
2011-03-24 10:57 ` Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.