emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a macro that inserts multiline text with :B_ignorehead


From: Richard Stanton
Subject: Re: How to create a macro that inserts multiline text with :B_ignoreheading: tag?
Date: Fri, 30 Apr 2021 16:40:28 -0700

That works. Thanks Juan Manuel!

> On Apr 30, 2021, at 1:40 PM, Juan Manuel Macías <maciaschain@posteo.net> 
> wrote:
> 
> Hi Richard,
> 
> Richard Stanton <rhstanton@berkeley.edu> writes:
> 
>> 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.
> 
> Macro definitions do not allow spaces.
> 
> You can try something like:
> 
> #+MACRO: article_text (eval (concat "*** More explanation coming" "\s" 
> ":B_ignoreheading:\n:PROPERTIES:\n:BEAMER_env: ignoreheading\n:END:"))
> 
> {{{article_text}}}
> 
> Best regards,
> 
> Juan Manuel 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]