emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* beamer export: misplaced \end{frame} with \lecture structure
@ 2019-10-14  6:24 Gürtler, Martin
  2019-10-15 12:33 ` Fraga, Eric
  0 siblings, 1 reply; 2+ messages in thread
From: Gürtler, Martin @ 2019-10-14  6:24 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

I was trying to use the \lecture command in latex to structure my lecture.

As org-modeis not able to convert , say, first-level headlines into
\lecture statements, I placed the \lecture statement directly before
first level headlines. Unfortunately,in the resulting tex document, the
\end{frame} statement appears only after the \lecture statement. So, in
the resulting pdf, the information about a new lecture (which is created
from a \AtBeginLecture macro) appears as part of the last slide of the
previous lecture and not as a new frame.

1. What can I do in the org mode file in order to enforce ending the
  frame before the \lecture statement.
2. Would anybody be willing to implement \lecture and maybe \part in the
  exporter?

Thanks a lot

Martin Gürtler
-- 
          Prof. Dr. rer. nat. Martin Gürtler
     Professur für Produktions- und Logistiksysteme
  H T W K Leipzig,  Fakultät Ingenieurwissenschaften
 Inst. f. Technologie und Produktion im Maschinenbau
             Tel. +49-341-3076 4129
     - Besucher -               - Post -
 Büro N234 (Nieper-Bau)     PF 30 11 66
 Karl-Liebknecht-Str. 134   04251 Leipzig
 04277 Leipzig

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: beamer export: misplaced \end{frame} with \lecture structure
  2019-10-14  6:24 beamer export: misplaced \end{frame} with \lecture structure Gürtler, Martin
@ 2019-10-15 12:33 ` Fraga, Eric
  0 siblings, 0 replies; 2+ messages in thread
From: Fraga, Eric @ 2019-10-15 12:33 UTC (permalink / raw)
  To: Gürtler, Martin; +Cc: emacs-orgmode@gnu.org

On Monday, 14 Oct 2019 at 06:24, Gürtler, Martin wrote:
> 1. What can I do in the org mode file in order to enforce ending the
>   frame before the \lecture statement.

Not ideal but you could do something like this:

@@beamer:\end{frame}\lecture{This week's lecture}{week2}\begin{frame}Today's lecture: \insertlecture@@

maybe using it by defining a macro (untested)

#+macro: lecture @@beamer:\end{frame}\lecture{$1}{$2}\begin{frame}Today's lecture: \insertlecture@@

and then use as

{{{lecture(This week's lecture,week2)}}}

> 2. Would anybody be willing to implement \lecture and maybe \part in the
>   exporter?

Can you play with changing the org-latex-class beamer entry?  Probably not, I guess, as both part and lecture need two arguments...

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-15 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-14  6:24 beamer export: misplaced \end{frame} with \lecture structure Gürtler, Martin
2019-10-15 12:33 ` Fraga, Eric

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).