From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Berger Subject: Suggestion: provide more detailed example of :options for LaTeX special blocks Date: Mon, 03 Jul 2017 11:26:28 +0200 Message-ID: <87d19hooqj.fsf@inf-11879.int-evry.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRxcn-0002oK-NP for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 05:26:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRxck-0005oR-Fk for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 05:26:33 -0400 Received: from zproxy130.enst.fr ([137.194.2.194]:39634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRxck-0005m6-9B for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 05:26:30 -0400 Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id B83EF103FBE for ; Mon, 3 Jul 2017 11:26:26 +0200 (CEST) Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id r0-SRi5iL2Y6 for ; Mon, 3 Jul 2017 11:26:26 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id 20547103FB2 for ; Mon, 3 Jul 2017 11:26:26 +0200 (CEST) Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id fkzf1go0KHGQ for ; Mon, 3 Jul 2017 11:26:26 +0200 (CEST) Received: from localhost (inf-11879.int-evry.fr [157.159.110.251]) by zproxy130.enst.fr (Postfix) with ESMTPSA id F4075103FA4 for ; Mon, 3 Jul 2017 11:26:25 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi. 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. Hope this helps. Thanks in advance. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)