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

2012-08-02 Thread Bastien
Brett Viren writes: > So, I'm satisfied now. Thanks for the nudge! I learned something -- you're welcome, -- Bastien

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

2012-08-01 Thread Brett Viren
Hi Bastien, Bastien writes: > Brett Viren 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: $3\n#+LATEX: \begin

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

2012-08-01 Thread Bastien
Hi Brett, Brett Viren writes: > #+MACRO: himg #+HTML: alt="$3"/> $3 > #+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.)}}} > {{

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

2012-07-31 Thread Brett Viren
Hi, I'm back wanting to specify per-export image formats again. I learned about macros in org-mode and I have found a half-solution: #+MACRO: himg #+HTML: $3 #+MACRO: limg #+LATEX: \begin{figure}\label{$1}\includegraphics[width=\textwidth]{$2.pdf}\caption{$3}\end{figure} I then call each ma

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

2012-06-06 Thread Avdi Grimm
I'm interested in this as well. At present I plan on handling it externally to org-mode with some preprocessing before final org-export; but it would be cool to have it be a built-in feature. Obviously it can be accomplished manually with #+LaTeX: and #+HTML: sections, but some syntax sugar for it

[O] Embed images in formats best suited for HTML and LaTeX export and inline viewing

2012-05-30 Thread Brett Viren
Hi, How can I tell org-mode to use different file formats for an image for different purposes? What I really want is a scalable format to embed "line art" type images (plots) into org-mode documents so that they can display inline and in both HTML and LaTeX exports. SVG seems good for the first