emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Fabrice Popineau <fabrice.popineau@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Export and links
Date: Wed, 04 Sep 2013 14:06:23 +0200	[thread overview]
Message-ID: <87zjrs3i68.fsf@gmail.com> (raw)
In-Reply-To: <CAFgFV9N2aNxhdwAuS6RnLGF=LngquS4tbwtP9s+NfPBE7MkCkA@mail.gmail.com> (Fabrice Popineau's message of "Wed, 4 Sep 2013 13:56:21 +0200")

Hello,

Fabrice Popineau <fabrice.popineau@gmail.com> writes:

> If I export this to html :
>
> -----------------------------------------------------------------------
> #+TITLE: FOO
>
> #+macro: huge @@html:<h1>$1</h1>@@
> #+macro: large @@html:<h2>$1</h2>@@
>
> * Foo page
>
> {{{large([[http:test.html][FOO]])}}}
> -----------------------------------------------------------------------
>
> I get :
>
> <p>
> <h2>[[http:test.html][FOO]]</h2>
> </p>
>
>
> The link is not honoured.

It happens because you enclose it within an export snippet, where
nothing is interpreted. You may use instead:

  #+macro: large @@html:<h2>@@$1@@html:</h2>@@


> - is there a way to avoid the "spurious" <p> ? Sometimes, you may want to
> avoid <p> around paragraphs because there are already others tags.
>
> - exporting the org text above, I also get this :
>
> <div class="figure">
> <p>
> </p>
> </div>
>
> in the midlle of the generated html. It seems to be the translation of the
> blank line between the heading and the text. Is there a way to avoid
> it?

I cannot reproduce it with the example above.


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2013-09-04 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 11:56 Export and links Fabrice Popineau
2013-09-04 12:06 ` Nicolas Goaziou [this message]

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=87zjrs3i68.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    /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).