emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX table export issue
@ 2010-07-22 11:46 Bart Bunting
  2010-07-25 16:22 ` David Maus
  2010-08-16 12:36 ` Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Bart Bunting @ 2010-07-22 11:46 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I have found what is possibly a bug in the LaTeX export in org-mode but
I'm not totally sure.

I am no LaTeX expert, in fact I know very little about it.  I have used
a process of ilimination to try and produce the simplest case I can to
demonstrate the issue.

What happens is that if I have a table at the top of my document before
a heading line and use the  #+ATTR_LaTeX: setting it appears that the
settings used in that #+ATTR_LaTeX: line are then used for all
subsequent tables and other #+ATTR_LaTeX: lines are ignored.

If I add a heading line before the first #+ATTR_LaTeX: line then each
table works as expected.

To demonstrate the issue I have created the small org-mode file below. 

Steps to reproduce:

- copy the below text into a .org file.
- remove the "Section One" heading.
- export to pdf.

You will see that the second table inherits the settings from the first.

Next:
- Put the "Section One" heading back.
- Export to pdf again.

You will see that now each table has it's own correct settings.

I hope this makes sense to someone :)

Regards

Bart

--- Sample org file ---
  

* Section One
#+ATTR_LaTeX: align=|p{50mm}|p{50mm}|
|---+------------------+--------------------------|
|   | Reference   | 333 |
|---+------------------+--------------------------|
|   | Document Name:   | wibble           |
|---+------------------+--------------------------|


* Section Two

#+ATTR_LaTeX: align=|p{50mm}|p{40mm}|p{30mm}|
|---------------+------------+-----------|
| Plan          | Contention | Monthly   |
|---------------+------------+-----------|
| 512/256Kbps   |       16:1 | $565.00   |
|---------------+------------+-----------|

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

* Re: LaTeX table export issue
  2010-07-22 11:46 LaTeX table export issue Bart Bunting
@ 2010-07-25 16:22 ` David Maus
  2010-08-16 12:36 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: David Maus @ 2010-07-25 16:22 UTC (permalink / raw)
  To: Bart Bunting; +Cc: emacs-orgmode


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

Bart Bunting wrote:
>Hi all,

>I have found what is possibly a bug in the LaTeX export in org-mode but
>I'm not totally sure.

>I am no LaTeX expert, in fact I know very little about it.  I have used
>a process of ilimination to try and produce the simplest case I can to
>demonstrate the issue.

>What happens is that if I have a table at the top of my document before
>a heading line and use the  #+ATTR_LaTeX: setting it appears that the
>settings used in that #+ATTR_LaTeX: line are then used for all
>subsequent tables and other #+ATTR_LaTeX: lines are ignored.

>If I add a heading line before the first #+ATTR_LaTeX: line then each
>table works as expected.

I can confirm this and think this is should be considered a bug:
Whatever Org does with the element before the first headline it should
not silently ignore the setting for following tables with
a #+ATTR_LaTeX option.

Thanks for reporting,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: 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] 3+ messages in thread

* Re: LaTeX table export issue
  2010-07-22 11:46 LaTeX table export issue Bart Bunting
  2010-07-25 16:22 ` David Maus
@ 2010-08-16 12:36 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2010-08-16 12:36 UTC (permalink / raw)
  To: Bart Bunting; +Cc: emacs-orgmode

Hi Bart,

thanks for the detailed description, this is now fixed (not in a nice  
way, but fixed anyway ...)

- Carsten

On Jul 22, 2010, at 1:46 PM, Bart Bunting wrote:

> Hi all,
>
> I have found what is possibly a bug in the LaTeX export in org-mode  
> but
> I'm not totally sure.
>
> I am no LaTeX expert, in fact I know very little about it.  I have  
> used
> a process of ilimination to try and produce the simplest case I can to
> demonstrate the issue.
>
> What happens is that if I have a table at the top of my document  
> before
> a heading line and use the  #+ATTR_LaTeX: setting it appears that the
> settings used in that #+ATTR_LaTeX: line are then used for all
> subsequent tables and other #+ATTR_LaTeX: lines are ignored.
>
> If I add a heading line before the first #+ATTR_LaTeX: line then each
> table works as expected.
>
> To demonstrate the issue I have created the small org-mode file below.
>
> Steps to reproduce:
>
> - copy the below text into a .org file.
> - remove the "Section One" heading.
> - export to pdf.
>
> You will see that the second table inherits the settings from the  
> first.
>
> Next:
> - Put the "Section One" heading back.
> - Export to pdf again.
>
> You will see that now each table has it's own correct settings.
>
> I hope this makes sense to someone :)
>
> Regards
>
> Bart
>
> --- Sample org file ---
>
>
> * Section One
> #+ATTR_LaTeX: align=|p{50mm}|p{50mm}|
> |---+------------------+--------------------------|
> |   | Reference   | 333 |
> |---+------------------+--------------------------|
> |   | Document Name:   | wibble           |
> |---+------------------+--------------------------|
>
>
> * Section Two
>
> #+ATTR_LaTeX: align=|p{50mm}|p{40mm}|p{30mm}|
> |---------------+------------+-----------|
> | Plan          | Contention | Monthly   |
> |---------------+------------+-----------|
> | 512/256Kbps   |       16:1 | $565.00   |
> |---------------+------------+-----------|
>
>
>
> _______________________________________________
> 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

- Carsten

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

end of thread, other threads:[~2010-08-16 12:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-22 11:46 LaTeX table export issue Bart Bunting
2010-07-25 16:22 ` David Maus
2010-08-16 12:36 ` 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).