From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Problems exporting Org code blocks in LaTeX
Date: Tue, 05 Jun 2012 00:17:14 +0200 [thread overview]
Message-ID: <80bokyvi1h.fsf@somewhere.org> (raw)
Hello,
I want to show (in Beamer slides) how to write an Org table.
I first need to add Org as a language to the listings settings.
Then, I write an Org source block, which is exported to LaTeX... but not
fully... The line "#+ATTR_LaTeX: align=rrl" disappears from the exported code!
See ECM.
--8<---------------cut here---------------start------------->8---
#+TITLE: Org code in slide
#+DATE: 2012-06-04 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation,t]
#+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
#+BEAMER_FRAME_LEVEL: 1
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
#+BEAMER_HEADER_EXTRA: \lstdefinelanguage{org}{%
#+BEAMER_HEADER_EXTRA: morekeywords={:results, :session, :var, :noweb, :exports},
#+BEAMER_HEADER_EXTRA: sensitive=false,
#+BEAMER_HEADER_EXTRA: morestring=[b]",
#+BEAMER_HEADER_EXTRA: morecomment=[l]{\#},
#+BEAMER_HEADER_EXTRA: }
#+BEAMER_HEADER_EXTRA: \lstset{%
#+BEAMER_HEADER_EXTRA: mathescape=false
#+BEAMER_HEADER_EXTRA: }
* Table
Here's a "simple" but already powerful Org table:
#+begin_src org :exports code
,#+ATTR_LaTeX: align=rrl
,| Janvier | 1300 | \EUR |
,| Fevrier | 1280 | \EUR |
,|---------+------+------|
,| Total | 2580 | \EUR |
,#+TBLFM: @3$2=vsum(@1..@2)
#+end_src
--8<---------------cut here---------------end--------------->8---
I can't get it properly exported to LaTeX, because:
- the line ATTR_LaTeX is removed
- even with my mathescape=false, the $ is interpreted as math char
Best regards,
Seb
--
Sebastien Vauban
next reply other threads:[~2012-06-04 22:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 22:17 Sebastien Vauban [this message]
2012-06-05 9:05 ` Problems exporting Org code blocks in LaTeX Sebastien Vauban
2012-06-05 12:07 ` Use [org-latex] or [org-e-latex] for exporter problems Jambunathan K
2012-06-05 12:42 ` Sebastien Vauban
2012-06-05 14:09 ` Jambunathan K
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80bokyvi1h.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.