emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to create a macro that inserts multiline text with :B_ignoreheading: tag?
@ 2021-04-30 15:19 Richard Stanton
  2021-04-30 20:40 ` Juan Manuel Macías
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stanton @ 2021-04-30 15:19 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

I’m using org mode to create Beamer presentations, also using beamerarticle so I can create an article version of my slides with extra text. This article by James Harkins was very helpful in getting started:

https://orgmode.org/worg/exporters/beamer/beamer-dual-format.html <https://orgmode.org/worg/exporters/beamer/beamer-dual-format.html>

One issue, noted in the article, is that text you want to have appear in article mode but not in a slide needs to be outside the frame environment, which means you need to tell org to end one slide without starting another. This can be achieved by inserting a header like this into the org file before the article text:

*** More explanation coming                                 :B_ignoreheading:
    :PROPERTIES:
    :BEAMER_env: ignoreheading
    :END:

I’d like to define a macro called, say, articletext, to insert this header into my document before exporting to LaTeX, so the org file would look something like this:

{{{article text}}}
This text appears only in the article version.

However, I can’t find any way to actually define this macro and get it to work as I want. From my experiments so far, it seems that including :B_ignoreheading: in the macro definition causes problems, but I’m not 100% sure. Anyway, I’d be very grateful if anyone can see an obvious way to get this to happen.

Thanks for any suggestions!

Richard Stanton

[-- Attachment #2: Type: text/html, Size: 2772 bytes --]

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

end of thread, other threads:[~2021-04-30 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 15:19 How to create a macro that inserts multiline text with :B_ignoreheading: tag? Richard Stanton
2021-04-30 20:40 ` Juan Manuel Macías
2021-04-30 23:40   ` Richard Stanton

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