Re: [O] Can special blocks be nested?

2014-11-28 Thread Nicolas Goaziou
Hello,

Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 this seems to work when exporting:

 #+BEGIN_BLOCK1
 Lorem ipsum
 #+BEGIN_BLOCK2
 dolor sit amet
 #+END_BLOCK2
 #+END_BLOCK1

 but font locking does not (the inner block begin/end markers are not
 colorized properly).

 Is this construction legal?

It is legal. You can nest special blocks, as long as they don't have the
same type.


Regards,

-- 
Nicolas Goaziou



Re: [O] Can special blocks be nested?

2014-11-28 Thread Marcin Borkowski

On 2014-11-28, at 23:16, Nicolas Goaziou wrote:

 It is legal. You can nest special blocks, as long as they don't have the
 same type.

Thanks!

 Regards,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Can special blocks be nested?

2014-11-27 Thread Rasmus
Hi,

I'm not an expert, so what I write could be wrong.

Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 this seems to work when exporting:

 #+BEGIN_BLOCK1
 Lorem ipsum
 #+BEGIN_BLOCK2
 dolor sit amet
 #+END_BLOCK2

 #+END_BLOCK1

 but font locking does not (the inner block begin/end markers are not
 colorized properly).

 Is this construction legal?  May I depend on it being exported
 correctly, or is it just an undefined behavior or something like that?

The one you quote is fine.  This one is not:

#+BEGIN_BLOCK1
Lorem ipsum
#+BEGIN_BLOCK1
dolor sit amet
#+END_BLOCK1
#+END_BLOCK1

See the Org syntax for further details.  In particular:

 * Greater Elements
 [...] Unless specified otherwise, greater elements can contain directly any 
 other element or greater element excepted:
 - elements of their own type, 
 - [...]

http://orgmode.org/worg/dev/org-syntax.html

—Rasmus

-- 
C is for Cookie







[O] Can special blocks be nested?

2014-11-26 Thread Marcin Borkowski
Hello list,

this seems to work when exporting:

#+BEGIN_BLOCK1
Lorem ipsum
#+BEGIN_BLOCK2
dolor sit amet
#+END_BLOCK2
#+END_BLOCK1

but font locking does not (the inner block begin/end markers are not
colorized properly).

Is this construction legal?  May I depend on it being exported
correctly, or is it just an undefined behavior or something like that?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University