From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: copy title text string from #+TITLE field?
Date: Mon, 10 Feb 2014 01:24:53 -0500 [thread overview]
Message-ID: <87vbwnzdqi.fsf@gmail.com> (raw)
In-Reply-To: 8738jr1odj.fsf@gmail.com
Nick Dokos <ndokos@gmail.com> writes:
> Peter Salazar <cycleofsong@gmail.com> writes:
>
>> Next question: is there a way to take the text from the #+TITLE: field
>> of an org file and insert it, as text, somewhere else within the file
>> (i.e. inside an HTML block)?
>>
>> I can't do this manually because my various org files all use an
>> #+INCLUDE: reference to the same org file, which contains some HTML
>> blocks. For each different org file, I'd like to copy the title text
>> string from #+TITLE field and insert it inside an <H1></H1> field in
>> an HTML block in the included file.
>>
>> Is this possible? Thanks!
>>
>
> {{{title}}} should do it. See
>
> (info "(org) Macro replacement")
Actually, I'm not sure it will do: macro replacement takes place during
export, so it may or may not be enough, depending on what you really
want to do.
--
Nick
next prev parent reply other threads:[~2014-02-10 6:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 4:59 copy title text string from #+TITLE field? Peter Salazar
2014-02-10 6:19 ` Nick Dokos
2014-02-10 6:24 ` Nick Dokos [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-02-13 5:57 Peter Salazar
2014-02-13 12:18 ` Nick Dokos
2014-02-13 17:38 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbwnzdqi.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.