emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Francesco Pizzolante <fpz@missioncriticalit.com>
Cc: mailing-list-org-mode <emacs-orgmode@gnu.org>
Subject: Re: [Babel] LaTeX code not exported
Date: Tue, 14 Dec 2010 01:56:13 -0700	[thread overview]
Message-ID: <87fwu0pwb6.fsf@gmail.com> (raw)
In-Reply-To: <87y67yhp6q.fsf@mundaneum.com> (Francesco Pizzolante's message of "Thu, 09 Dec 2010 17:43:41 +0100")

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 <fpz@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="title">Test export LaTeX</h1>
>
>
> <div id="table-of-contents">
> <h2>Table of Contents</h2>
> <div id="text-table-of-contents">
> <ul>
> <li><a href="#sec-1">1 This is a simple test</a></li>
> </ul>
> </div>
> </div>
>
> <div id="outline-container-1" class="outline-2">
> <h2 id="sec-1"><span class="section-number-2">1</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

      reply	other threads:[~2010-12-14  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09 16:43 [Babel] LaTeX code not exported Francesco Pizzolante
2010-12-14  8:56 ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwu0pwb6.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fpz@missioncriticalit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).