From: Bastien <bzg@gnu.org>
To: Brett Viren <bv@bnl.gov>
Cc: emacs-orgmode@gnu.org
Subject: Re: Embed images in formats best suited for HTML and LaTeX export and inline viewing
Date: Wed, 01 Aug 2012 15:24:38 +0200 [thread overview]
Message-ID: <87a9yepwx5.fsf@gnu.org> (raw)
In-Reply-To: <ir44noo5ap5.fsf@lycastus.phy.bnl.gov> (Brett Viren's message of "Tue, 31 Jul 2012 09:20:22 -0400")
Hi Brett,
Brett Viren <bv@bnl.gov> writes:
> #+MACRO: himg #+HTML: <a name="$1"><center><img width="100%" src="$2.svg" alt="$3"/> $3</center></a>
> #+MACRO: limg #+LATEX: \begin{figure}\label{$1}\includegraphics[width=\textwidth]{$2.pdf}\caption{$3}\end{figure}
>
> I then call each macro explicitly:
>
> {{{limg(fig:overview,dataflow,Overview of the data flow.)}}}
> {{{himg(fig-overview,dataflow,Overview of the data flow.)}}}
>
> It works but has a few warts:
>
> 0) It totally subverts org-mode's figure markup.
>
> 1) So far I think I must use two macro calls thus annoyingly repeating
> data. Can macros be nested?
No.
> Can they have newlines?
I don't think so -- did you try?
--
Bastien
next prev parent reply other threads:[~2012-08-01 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 13:26 Embed images in formats best suited for HTML and LaTeX export and inline viewing Brett Viren
2012-06-07 3:47 ` Avdi Grimm
2012-07-31 13:20 ` Brett Viren
2012-08-01 13:24 ` Bastien [this message]
2012-08-01 17:05 ` Brett Viren
2012-08-02 15:11 ` Bastien
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=87a9yepwx5.fsf@gnu.org \
--to=bzg@gnu.org \
--cc=bv@bnl.gov \
--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.