emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export errors
@ 2009-05-12 11:35 Robert Hennig
  2009-05-12 13:17 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Hennig @ 2009-05-12 11:35 UTC (permalink / raw)
  To: emacs-orgmode

Dear Org-Mode experts,

I'm using Org-Mode 6.26d on Linux and Emacs 23.0:

The following org-file-snipplet will fail to be
translated to correct LaTeX code:

#+LaTeX: \begin{center}
#+TBLNAME: Test
|  A | B | C |
| 5% | 1 | 2 |
#+TBLFM: @2$3=2*$2
#+LaTeX: \end{center}


Triggered will this by the #+LaTeX: ...
invocation (#+BEGIN_LaTeX has the same effect).
The Error in the generated tex file is that
- #+TBLNAME: Test   will not be removed
- the '%' sign will not be translated to \%

Thanks in Advance,

Robert Hennig

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LaTeX export errors
  2009-05-12 11:35 LaTeX export errors Robert Hennig
@ 2009-05-12 13:17 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-05-12 13:17 UTC (permalink / raw)
  To: Robert Hennig; +Cc: emacs-orgmode

Hi

On May 12, 2009, at 1:35 PM, Robert Hennig wrote:

> Dear Org-Mode experts,
>
> I'm using Org-Mode 6.26d on Linux and Emacs 23.0:
>
> The following org-file-snipplet will fail to be
> translated to correct LaTeX code:
>
> #+LaTeX: \begin{center}
> #+TBLNAME: Test
> |  A | B | C |
> | 5% | 1 | 2 |
> #+TBLFM: @2$3=2*$2
> #+LaTeX: \end{center}

The preprocessor will turn this into

\begin{center}
#+TBLNAME: Test
|  A | B | C |
| 5% | 1 | 2 |
#+TBLFM: @2$3=2*$2
\end{center}

and then the LaTeX exporter will see this as a plain LaTeX environment
and think that all the stuff inside should be exported exactly as is.

You want:

#+begin_center
#+TBLNAME: Test
|  A | B | C |
| 5% | 1 | 2 |
#+TBLFM: @2$3=2*$2
#+end_center

If you want to do the same for other environments, take a look at

http://orgmode.org/worg/org-contrib/org-special-blocks.php

HTH

- Carsten


>
>
> Triggered will this by the #+LaTeX: ...
> invocation (#+BEGIN_LaTeX has the same effect).
> The Error in the generated tex file is that
> - #+TBLNAME: Test   will not be removed
> - the '%' sign will not be translated to \%
>
> Thanks in Advance,
>
> Robert Hennig
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-12 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12 11:35 LaTeX export errors Robert Hennig
2009-05-12 13:17 ` Carsten Dominik

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).