emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-beamer: Insert \framebreak between blocks
@ 2023-10-24 18:54 yaxp
  2023-10-25  9:00 ` Fraga, Eric
  0 siblings, 1 reply; 7+ messages in thread
From: yaxp @ 2023-10-24 18:54 UTC (permalink / raw)
  To: emacs-orgmode

Adding  a framebreak between blocks does not work.


```

#+latex_class: beamer
#+options: H:1

# [snip]

* Example :B_frame:
:PROPERTIES:
:BEAMER_opt: allowframebreaks
:BEAMER_env: frame
:END:
** This should be on frame 1
- Some text

#+LATEX: \framebreak

** This should be on frame 2
- Some text

```


Exporting this to PDF and examining the resulting file reveals that the 
\framebreak is inserted before the \end{block}.


```

% [snip]

\begin{frame}[allowframebreaks]{Example}
\begin{block}{This should be on frame 1}
\begin{itemize}
\item Some text
\framebreak % This is the offending line
\end{itemize}
\end{block}
\begin{block}{This should be on frame 2}
\begin{itemize}
\item Some text
\end{itemize}
\end{block}
\end{frame}

% [snip]

```


How do I not have this?I want the two blocks to be on different frames.


Manually fixing the .tex file fixes the issue but I don't want to do 
that for large files.


Fixed .tex file included for completion:

```

% [snip]

\begin{block}{This should be on frame 1}
\begin{itemize}
\item Some text

% ^1

\end{itemize}
\end{block}
\framebreak % Moved this line from ^1.
\begin{block}{This should be on frame 2}
\begin{itemize}
\item Some text
\end{itemize}
\end{block}

% [snip]
```

-- 
(yaxp me) => t



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

end of thread, other threads:[~2023-10-25 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24 18:54 org-beamer: Insert \framebreak between blocks yaxp
2023-10-25  9:00 ` Fraga, Eric
2023-10-25 16:02   ` yaxp
2023-10-25 16:27     ` Fraga, Eric
2023-10-25 16:32       ` yaxp
2023-10-25 16:44       ` yaxp
2023-10-25 16:13   ` yaxp

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