emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "vendo.libri@libero.it" <vendo.libri@libero.it>
To: emacs-orgmode@gnu.org
Subject: tabularx from org to latex not recognized
Date: Mon, 2 May 2016 00:21:12 +0200 (CEST)	[thread overview]
Message-ID: <700165816.12003481462141272553.JavaMail.httpd@webmail-30.iol.local> (raw)

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

Hello Org-mode users' group, 
I'm having trouble with tables, in particular with trying to get Org-mode to understand the attributes in #+ATTR_LATEX. I have a 7x3 (rows x columns) table that has lots of text in the 2 column. This means I can't properly see the table if Emacs' window is reduced rather than in full-screen view. The rows and column are all jumbled up. I've read in the Org online manual (section 3.2) that you must type something like <n> where n is an integer so that the column restricts the number of visible characters in an otherwise overflowing text. I've tried it by placing <10> in the header of the column but it doesn't work. Can someone help me out? 
Furthermore, when I try to get the pdf via LaTeX export (C-c C-e l o), in spite of adding the necessary package to #+LATEX_HEADER and to the add-to-alist within the .emac configuration file, the table gets exported in a "tabular" environment instead of "tabularx" which allows for adaptable columns. In LaTeX it should be:
\begin{table}[htb]  \centering  \begin{tabularx}{\textwidth}{lXX}\toprule    NAME &amp; CHARACTERISTICS &amp; EXAMPLES\\[...]
I've read extensively sec.12.7.5 of the org-manual but I don't know how to get {\textwidth}{lXX} for tabularx recognized by Org-mode. Can someone show me how, with an example specific to my case? 
Here's some of the preamble from my org file. I've since continued to type the document in LaTeX because the org-exported pdf had an overflowing table that I couldn't control. Can someone shed some light into all this matter, please?
#+TITLE: My Title#+AUTHOR: Me#+DATE: April 2016#+STARTUP: nolatexpreview align#+OPTIONS: toc:nil#+LATEX_CLASS: article#+LATEX_CLASS_OPTIONS: [a4paper,10pt]#+ATTR_LATEX: :booktabs :environment tabularx :width textwidth :align lXX[...]
#+LATEX_HEADER: \usepackage{tabularx,booktabs}
#+LATEX_HEADER: \setcounter{secnumdepth}{0}[...]

This is how the table appears if I use TAB to hop from one field to the other.
| NAME              | CHARACTERISTICS                                                                                                                                                                    | EXAMPLES                               ||-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------|| Metals            | <10> metallic bonding: adjacent atoms share electrons in a non-directional way; opaque, shiny, electrically conductive, they reflect photons, light rays from the environment      | a metal pan                            |

Any help is highly appreciated. Thank you.

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

             reply	other threads:[~2016-05-01 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-01 22:21 vendo.libri [this message]
2016-05-02  0:39 ` tabularx from org to latex not recognized Nick Dokos
  -- strict thread matches above, loose matches on Subject: below --
2016-05-03 14:04 vendo.libri
     [not found] <353cd935a9364ccc82fa15105e65d4a5@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-05-03 15:07 ` Eric S Fraga
2016-05-03 15:47   ` Nick Dokos
2016-05-03 20:35     ` Nick Dokos

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=700165816.12003481462141272553.JavaMail.httpd@webmail-30.iol.local \
    --to=vendo.libri@libero.it \
    --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).