* Implementing ox-beamer property support in ox-latex.
@ 2022-06-21 12:14 bob--- via General discussions about Org-mode.
2022-06-22 10:22 ` Fraga, Eric
0 siblings, 1 reply; 2+ messages in thread
From: bob--- via General discussions about Org-mode. @ 2022-06-21 12:14 UTC (permalink / raw)
To: Emacs Orgmode
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
Dear list,
I recently fell in love with the properties support provided by ox-beamer.
Especially in combination with an appropriate column view, this feature allows you to create complex presentations and maintain a good overview of all slides, layouts and possible transitions.
Today I attempted to implement similar behaviour for ox-latex, with moderate success.
The problem that I encountered was that you can't easily "close" environments.
The example below shows what I mean:
* First section
** First subsection
Some text before the definition.
*** Definition 1
:PROPERTIES:
:LATEX_ENV: definition
:END:
This is a definition
*** This title is ignored and very ugly
:PROPERTIES:
:LATEX_ENV: empty
:END:
Some text behind the definition.
** Subsection
This is a new subsection.
Expands to:
\begin{document}\section{First section}
\subsection{First subsection}
Some text before the definition.
\begin{definition}[Definition 1]
This is a definition
\end{definition}
Some text behind the definition.
\subsection{Subsection}
This is a new subsection.
\end{document}
In order to indicate that the body of definition 1 has endend, I needed to create an empty block which is ignored by the exporter.
Is there an elegant way to solve this problem and to "close" a heading?
Maybe in the form of an alternative carriage return character or a multiple line breaks?
Kind regards,
Bob
[-- Attachment #2: Type: text/html, Size: 2954 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Implementing ox-beamer property support in ox-latex.
2022-06-21 12:14 Implementing ox-beamer property support in ox-latex bob--- via General discussions about Org-mode.
@ 2022-06-22 10:22 ` Fraga, Eric
0 siblings, 0 replies; 2+ messages in thread
From: Fraga, Eric @ 2022-06-22 10:22 UTC (permalink / raw)
To: bob--- via General discussions about Org-mode.; +Cc: bob@vergauwen.me
On Tuesday, 21 Jun 2022 at 14:14, bob--- via "General discussions about Org-mode." wrote:
> The problem that I encountered was that you can't easily "close" environments.
> The example below shows what I mean:
You would probably find things easier using special blocks, e.g.
--8<---------------cut here---------------start------------->8---
* First section
** First subsection
Some text before the definition.
#+begin_definition
This is a definition
#+end_definition
Some text behind the definition.
** Subsection
This is a new subsection.
--8<---------------cut here---------------end--------------->8---
--
: Eric S Fraga, with org release_9.5.3-507-g4f0f24 in Emacs 29.0.50
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-22 10:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-21 12:14 Implementing ox-beamer property support in ox-latex bob--- via General discussions about Org-mode.
2022-06-22 10:22 ` 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).