emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giuseppe Lipari <giulipari@gmail.com>
To: Giuseppe Lipari <giulipari@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Possible bug in export of table in latex
Date: Thu, 8 Jan 2015 09:40:01 +0100	[thread overview]
Message-ID: <CABHo5SCxbuLaTUr2yOCNDgo5n79c=PLHM9CeeSLMuyrLfzYw4g@mail.gmail.com> (raw)
In-Reply-To: <87k30za6c0.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 2352 bytes --]

Hi,

thanks for responding.
As a matter of fact, I think the :width option for latex tables should be
disabled, because it is not so simple to implement.
While it is possible to reduce the width with Eric's trick, it is not so
easy to enlarge the width without using the :align option and appropriate
latex code, so the simplest approach would be to either give an error upon
exportin, or to ignore the width option altogether.

On the other hand, I guess :width makes sense for other exporters, like
e.g. html or ODT, so it should stay.

Just my two cents.

Giuseppe Lipari




2015-01-06 23:32 GMT+01:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:

> Hello,
>
> Giuseppe Lipari <giulipari@gmail.com> writes:
>
> > I am preparing some slides using org-beamer mode. Here is the snippet of
> a
> > table I have in my file:
> >
> >
> >    #+ATTR_LATEX: :float t :width 4cm
> >    | /Single node app/ | /Distributed app/           |
> >    |-------------------+-----------------------------|
> >    | Operating System  | Distributed OS              |
> >    | Network           | Network programming libs    |
> >    | Progr. language   | Distributed Progr. language |
> >    |-------------------+-----------------------------|
> >
> > If I understand well from the documentation, the "width" option should
> set
> > the width of the table. However, the exporter produces the following
> latex
> > snippet:
> >
> >
> > \begin{table}[htb]
> > \centering
> > \begin{tabular}{4cm}{ll}
> > \emph{Single node app} & \emph{Distributed app}\\
> > \hline
> > Operating System & Distributed OS\\
> > Network & Network programming libs\\
> > Progr. language & Distributed Progr. language\\
> > \hline
> > \end{tabular}
> > \end{table}
> > \end{frame}
> >
> >
> > Clearly, the lenght specification went in the wrong place, as the first
> > parameter of tabular should not be the width of the table, but the column
> > alignment.
>
> This should be fixed. Thank you for reporting it.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>



-- 
Giuseppe Lipari
LIFL
Université de Lille 1
blogs: http://scacciamennule.blogspot.com  (Italian)
<http://scacciamennule.blogspot.com>
          http://okpanico,wordpress.com          (Italian)
          http://algoland.wordpress.com           (English)

[-- Attachment #2: Type: text/html, Size: 3553 bytes --]

  reply	other threads:[~2015-01-08  8:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 13:03 Possible bug in export of table in latex Giuseppe Lipari
2015-01-06 18:15 ` Eric S Fraga
2015-01-06 22:32 ` Nicolas Goaziou
2015-01-08  8:40   ` Giuseppe Lipari [this message]
2015-01-08 16:47     ` Nicolas Goaziou
2015-01-08 16:57       ` Andreas Leha

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='CABHo5SCxbuLaTUr2yOCNDgo5n79c=PLHM9CeeSLMuyrLfzYw4g@mail.gmail.com' \
    --to=giulipari@gmail.com \
    --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).