From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Help with beamer environments + org-special-blocks! Date: Thu, 27 Jun 2013 18:18:42 +0200 Message-ID: <87a9mbsf19.fsf@gmail.com> References: <20130620080922.GA12128@panahar> <861u7pc723.fsf@somewhere.org> <87obatt068.fsf@gmail.com> <864ncj50qf.fsf@somewhere.org> <87y59vsqkm.fsf@gmail.com> <867ghf7eos.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsEuI-0000R6-EL for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 12:18:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsEuG-0003cK-Ct for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 12:18:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:40971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsEuF-0003bp-Si for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 12:18:48 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UsEuD-0005E2-W4 for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 18:18:45 +0200 In-Reply-To: <867ghf7eos.fsf@somewhere.org> (Sebastien Vauban's message of "Thu, 27 Jun 2013 17:31:47 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > With what you say below, we then have 3 different solutions (at least) for new > environments: > > - the one above, where you add a new environment definition (but, then, it's > kind of private for your own files; difficult to share) If you use advanced features of Org, you're more or less bound to share your documents with a config file anyway. [...] > > - the Org special blocks, new way, with the OPTIONS > > #+LaTeX_ATTR: :options {2cm} > #+begin_myenv{2cm} > Contents... > #+end_myenv Correction: #+attr_latex: :options {2cm} #+begin_myenv Contents... #+end_myenv > Now, a big question: outside the fact that some such "standards" (like > "texpos1") would have to be added IMHO as default Beamer environments, what > about standard LaTeX? > > I think normal, then, to wanna get that same behavior in the LaTeX backend. > How to do that? I'm a bit puzzled by the differences to get some similar > results... > > - In LaTeX, you have the inline tasks which can be used to insert blocks, but > not the system where you create blocks by adding an "ignoreheading" heading, > right? > > - In Beamer, we have both? And, for whatever reason (which must escape me), > we tend to prefer the "ignoreheading" for closing a block. I don't understand your question. Equivalent blocks do not exist in standard LaTeX, do they? Also, this has nothing to do with inlinetasks. In Beamer export, headlines can generate blocks. This is handy because they can be easily nested, accept properties through drawers, etc. Special blocks are more limited. Though, you cannot close a headline, so the "ignoreheading" trick was implemented. In LaTeX export, headlines generate headlines. > In my latest slides, I've been quite disturbed by how much "pure LaTeX" I've > finally inserted in my slides, for inserting TikZ nodes to render boxes. I had > the impression to write LaTeX inside an Org file; and that's not the right > approach: > > - too much LaTeX tag overload, > > - no HTML equivalent for the contents of my boxes -- while, as presented here > above for the "textpos", even in HTML, it'd be quite nice. > > - no Org syntax usable: inside my boxes (TikZ nodes), I had to use \textbf for > bold, not the stars... I think you are asking too much for Org syntax. > Now, there are, once again, other extra solutions: MACRO and Org Babel > calls. Indeed. Regards, -- Nicolas Goaziou