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: Bastien
Subject: Re: [O] Embed images in formats best suited for HTML and LaTeX export and inline viewing
Date: Wed, 01 Aug 2012 15:24:38 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Hi Brett,

Brett Viren <address@hidden> 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



reply via email to

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