[Top][All Lists]

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

Re: [O] Suggestion: provide more detailed example of :options for LaTeX

From: Nicolas Goaziou
Subject: Re: [O] Suggestion: provide more detailed example of :options for LaTeX special blocks
Date: Tue, 25 Jul 2017 10:06:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)


Olivier Berger <address@hidden> writes:

> May I suggest to improve the docs of
> [[http://orgmode.org/manual/Special-blocks-in-LaTeX-export.html][Special
> blocks in LaTeX export]] to make it more explicit that the special
> blocks :options can contain both options or arguments of the LaTeX 
> environment.
> Here's an example:
> #+ATTR_LATEX: :options [logo=\bcattention]{The warning}
> #+BEGIN_bclogo
> Attention, this is a warning
> #+END_bclogo
> This requires or course:
> #+LaTeX_HEADER: \usepackage[tikz]{bclogo}
> I've been struggling with trying to do this, until I read the sources of
> ox-latex and noticed that it wasn't limited to the '[...]'
> options... and much later re-read the manual to finally notice the
> "appends as-is to that environment's opening string" ;-)
> Maybe providing an example that uses both the '[...]' and the '{...}'
> would save others' time.
> Unfortunately, I'm not fluent enough in LaTeX to suggest a more
> "generic" environment than bclogo, readily available in an article, for a
> direct patch proposal to the manual sources.

I think minipage environment fits the bill. Would the following example,
used to put two pictures side by side, clear enough?

  #+ATTR_LATEX: :options [t]{.5\textwidth}
  #+ATTR_LATEX: :options [t]{.5\textwidth}

Nicolas Goaziou

reply via email to

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