Re: [Orgmode] [Babel] LaTeX code not exported

2010-12-14 Thread Eric Schulte
Hi Francesco,

The code snippet below *is* exporting however for LaTeX code blocks the
default results type is :results latex, try setting the results type
to :results scalar and you should see the expected export behavior.

Best -- Eric

e.g.

#+begin_src latex :results scalar
\documentclass{article}
#+end_src

Francesco Pizzolante f...@missioncriticalit.com writes:

 Hi,

 LaTeX code blocks are ignored when exporting to HTML or PDF.

 The following Org example:

 #+TITLE: Test export LaTeX
 #+BABEL: :exports code

 #+begin_src latex
 \documentclass{article}
 #+end_src

 Gives the following HTML result:

 body
 div id=content

 h1 class=titleTest export LaTeX/h1


 div id=table-of-contents
 h2Table of Contents/h2
 div id=text-table-of-contents
 ul
 lia href=#sec-11 This is a simple test/a/li
 /ul
 /div
 /div

 div id=outline-container-1 class=outline-2
 h2 id=sec-1span class=section-number-21/span This is a simple 
 test/h2
 div class=outline-text-2 id=text-1


 /div
 /div
 div id=postamble
 p class=author Author: Francesco Pizzolante
 /p
 p class=date Date: 2010-12-09 17:41:54 /p
 /div
 /div
 /body

 Is this a bug? Do I miss an option somewhere?

 Any help is welcome.

 Regards,
 Francesco

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Babel] LaTeX code not exported

2010-12-09 Thread Francesco Pizzolante
Hi,

LaTeX code blocks are ignored when exporting to HTML or PDF.

The following Org example:

--8---cut here---start-8---
#+TITLE: Test export LaTeX
#+BABEL: :exports code

#+begin_src latex
\documentclass{article}
#+end_src
--8---cut here---end---8---

Gives the following HTML result:

--8---cut here---start-8---
body
div id=content

h1 class=titleTest export LaTeX/h1


div id=table-of-contents
h2Table of Contents/h2
div id=text-table-of-contents
ul
lia href=#sec-11 This is a simple test/a/li
/ul
/div
/div

div id=outline-container-1 class=outline-2
h2 id=sec-1span class=section-number-21/span This is a simple 
test/h2
div class=outline-text-2 id=text-1


/div
/div
div id=postamble
p class=author Author: Francesco Pizzolante
/p
p class=date Date: 2010-12-09 17:41:54 /p
/div
/div
/body
--8---cut here---end---8---

Is this a bug? Do I miss an option somewhere?

Any help is welcome.

Regards,
Francesco

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode