From: AW <alexander.willand@t-online.de>
To: emacs-orgmode@gnu.org
Subject: Bug in orgtbl export to LaTeX
Date: Sun, 22 Apr 2012 00:31:09 +0200 [thread overview]
Message-ID: <5504296.eJF9ybqCKQ@linux-nyil.site> (raw)
Dear all,
I guess I found a bug in the export function of orgtbl to LaTeX: The
percentage sign ("%") is not masked, it simply is transfered to LaTeX and thus
destroys the table. Example below, beware, you will get an error, because of
the said bug.
For readers who are not familiar with LaTeX: "%" is the comment sign, after
"%" LaTeX does not compile anything in this line. Here in the example the end
of the current row is marked with "\\", but due to the "%" LaTeX can not find
any eol.
Can the export function be amended? Any "%" inside the table (!) needs to be
exported as "\%".
-------------------------------------------
\documentclass[pagesize, fontsize=12pt, english]{scrartcl}
\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}
\usepackage{babel, comment}
\begin{document}
\begin{tabular}{lr}
% BEGIN RECEIVE ORGTBL percent
\begin{tabular}{lr}
Name & Percent \\
Peter & 75% \\
Paul & 25% \\
Sum & 1. \\
\end{tabular}
% END RECEIVE ORGTBL percent
\end{tabular}
\begin{comment}
#+ORGTBL: SEND percent orgtbl-to-latex :splice nil :skip 0
| Name | Percent |
| Peter | 75% |
| Paul | 25% |
| Sum | 1. |
#+TBLFM: @4$2=@-2+@-1
% $
\end{comment}
\end{document}
--------------------------------------------------------------
Org-version: 7.8.09
Regards,
Alexander
next reply other threads:[~2012-04-21 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-21 22:31 AW [this message]
2012-04-22 6:42 ` Bug in orgtbl export to LaTeX Bastien
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=5504296.eJF9ybqCKQ@linux-nyil.site \
--to=alexander.willand@t-online.de \
--cc=emacs-orgmode@gnu.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 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).