emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: copy title text string from #+TITLE field?
Date: Thu, 13 Feb 2014 07:18:45 -0500	[thread overview]
Message-ID: <878utfgq8q.fsf@gmail.com> (raw)
In-Reply-To: CAE+_6Txk9aD2m1eJ_L=4X9XZ2gr=JpXzC-8H7fGFyuTO=Ed94Q@mail.gmail.com

Peter Salazar <cycleofsong@gmail.com> writes:

> Thanks. I do need it only on export, but even so, it doesn't seem to be working:
>
> http://i.imgur.com/1tMGaHz.png
>
> Again, it's inside an HTML code block. Not sure if there's a way to make it work inside that block?
>

I don't think so. The doc says "...which can be referenced in
paragraphs, verse blocks, table cells and some keywords". I'm not sure
why macro expansion is restricted like that. Maybe Nicolas will chime
in.

> #+BEGIN_HTML 
> ...
> <div class="page-header">
>   <h1>{{{title}}}</h1>
> </div>
> ...
> #+END_HTML 
>
>> {{{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

  reply	other threads:[~2014-02-13 12:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13  5:57 copy title text string from #+TITLE field? Peter Salazar
2014-02-13 12:18 ` Nick Dokos [this message]
2014-02-13 17:38   ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2014-02-10  4:59 Peter Salazar
2014-02-10  6:19 ` Nick Dokos
2014-02-10  6:24   ` Nick Dokos

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878utfgq8q.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 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).