emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug] org block not correctly exported to LaTeX


From: Bernt Hansen
Subject: Re: [O] [bug] org block not correctly exported to LaTeX
Date: Mon, 25 Jul 2011 13:48:10 -0400
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Thomas Holst <address@hidden> 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

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