Thomas Holst <thomas.ho...@de.bosch.com> writes:

> Hi Bastien,
>
> thanks for your answer. 
>
>>> when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
>>> and #+END_ORG is inserted in the tex-file.
>>
>> You surely want
>> #+begin_src org
>> #+end_src org
>> "#+begin_org" doesn't exist.
>
> #+BEGIN_ORG 
> #+END_ORG
>
> gets inserted by org-babel. Here is the relevant part of ob.el lines
> 1620 ff.
>
> #+srcname: ob.el
> #+begin_src emacs-lisp
>   ;; ....
>   ((member "org" result-params)
>    (wrap "#+BEGIN_ORG" "#+END_ORG"))
>   ;; ...
> #+end_src emacs-lisp
>
> Here is an example which shows the issue.
>
> #+begin_src org
> * Testing org-babel perl
>   
>   #+srcname: TestingPerl
>   #+begin_src perl :exports results :results output org
>     print("#+CAPTION: A caption\n");
>     print("#+LABEL: tbl:dvi\n");
>     print("#+ATTR_LaTeX: placement[H]\n");
>     print("| *bold/T* |\n");
>     print("|--------|\n");
>     print("| normal |\n");
>   #+end_src
>   #+results: TestingPerl
>   #+BEGIN_ORG
>   #+CAPTION: A caption
>   #+LABEL: tbl:dvi
>   #+ATTR_LaTeX: placement[H]
>   | *bold/T* |
>   |--------|
>   | normal |
>   #+END_ORG
> #+end_src org

Hi Thomas,

You have nested #+begin_src / #+end_src in this example.  I'm not sure
that is supported.

Fontification of this example seems to indicate that the
second #+begin_src perl is invalid and the first #+end_src terminates
the #+begin_src org

-Bernt

Reply via email to