emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Embed images in formats best suited for HTML and LaTeX export an


From: Brett Viren
Subject: Re: [O] Embed images in formats best suited for HTML and LaTeX export and inline viewing
Date: Wed, 01 Aug 2012 13:05:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Hi Bastien,

Bastien <address@hidden> writes:

> Brett Viren <address@hidden> writes:
>
>> Can they have newlines?
>
> I don't think so -- did you try?

Now, there is an idea!  I had not tried, but yes, the are accepted and a
"multiline" macro can be defined using '\n' characters like:

#+MACRO: mimg #+HTML: <a name="$1"><center><img width="100%" src="$2.svg" 
alt="$3"/> $3</center></a>\n#+LATEX: 
\begin{figure}\label{$1}\includegraphics[width=\textwidth]{$2.pdf}\caption{$3}\end{figure}

I can now call this macro with a single line like:

{{{mimg(fig-overview,dataflow,Overview of the data flow.)}}}

and both HTML and LaTeX/PDF export produces correct output.  I give up
the "fig:" style prefix for the label, but that is a small detail.


So, I'm satisfied now.  Thanks for the nudge!

-Brett.

Attachment: pgp1rs7Luk0CJ.pgp
Description: PGP signature


reply via email to

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