emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug? Table caption produces trailing "nil" in pdf export
@ 2010-08-10 19:49 John Hendy
  2010-08-10 21:09 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: John Hendy @ 2010-08-10 19:49 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1841 bytes --]

Drat... some gmail shortcut went off and this thing sent prematurely...
here's the rest...

On Tue, Aug 10, 2010 at 2:36 PM, John Hendy <jw.hendy@gmail.com> wrote:

> Hi,
>
>
> Suddenly I'm getting a line with nothing but "nil" between the caption and
> the table when exporting from org-mode to LaTeX. I swear this not happening.
> I believe I did a git pull on Friday or some time last week. The only reason
> I noticed is that I just set up emacs, org, and LaTeX on a new computer and
> tested an old file to make sure the export was working. I then checked my
> other computer with what I thought was a fine install and it's doing it now,
> too. I originally thought I missed something on the new computer, but now
> I'm wondering if it's from the fresh pull.
>

I tested three identical tables with different options:

1)
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|

2)
#+ATTR_LATEX: align=|l|l|
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|

3)
#+ATTR_LATEX: align=|l|l|
#+CAPTION: Test Caption 1
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|

#3 produces this in the TeX file:

\begin{table}[htb]
\caption{Test Caption 1} nil
\begin{center}
\begin{tabular}{|l|l|}

Note the "nil" after the caption. The LaTeX PDF comes out like this:

Table 1: Test Caption 1
nil
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|


Any ideas where the "nil" is coming from? Is there anything I can provide
that would help? I tried exporting (pdflatex) right from the .tex file in
emacs with no improvement. I also scanned the .log file produced but didn't
see anything of note.

I attached my .org file and resultant pdf.


Thanks,
John

[-- Attachment #1.2: Type: text/html, Size: 2833 bytes --]

[-- Attachment #2: test.org --]
[-- Type: application/octet-stream, Size: 448 bytes --]

#+AUTHOR: Hendy

* Test table 1

|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|



* Test table 2

#+ATTR_LATEX: align=|l|l|
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|

* Test table 3

#+ATTR_LATEX: align=|l|l|
#+CAPTION: Test Caption 1
|--------+--------|
| title1 | title2 |
|--------+--------|
| data   | data   |
|--------+--------|


[-- Attachment #3: test.pdf --]
[-- Type: application/pdf, Size: 63960 bytes --]

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

end of thread, other threads:[~2010-08-10 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-10 19:49 Bug? Table caption produces trailing "nil" in pdf export John Hendy
2010-08-10 21:09 ` David Maus

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