From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: tabularx from org to latex not recognized Date: Mon, 2 May 2016 00:21:12 +0200 (CEST) Message-ID: <700165816.12003481462141272553.JavaMail.httpd@webmail-30.iol.local> Reply-To: "vendo.libri@libero.it" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1382323_1006255363.1462141272552" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awzk9-0007x8-JE for emacs-orgmode@gnu.org; Sun, 01 May 2016 18:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awzjx-00077S-HH for emacs-orgmode@gnu.org; Sun, 01 May 2016 18:21:32 -0400 Received: from smtp-34.italiaonline.it ([212.48.25.162]:47926 helo=libero.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awzjw-00075v-53 for emacs-orgmode@gnu.org; Sun, 01 May 2016 18:21:25 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org ------=_Part_1382323_1006255363.1462141272552 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 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 & CHARACTERISTICS & 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. ------=_Part_1382323_1006255363.1462141272552 Content-Type: text/html;charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Org-mode users' group, 

I'm having troub= le 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 se= e the table if Emacs' window is reduced rather than in full-screen view. Th= e rows and column are all jumbled up. I've read in the Org online manual (s= ection 3.2) that you must type something like <n> where n is an integ= er so that the column restricts the number of visible characters in an othe= rwise overflowing text. I've tried it by placing <10> in the header o= f 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 t= o the add-to-alist within the .emac configuration file, the table gets expo= rted in a "tabular" environment instead of "tabularx" which allows for adap= table columns. In LaTeX it should be:

\begin{= table}[htb]
  \centering
  \begin{tabularx}{\= textwidth}{lXX}
\toprule
    NAME & CHARA= CTERISTICS & 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 typ= e the document in LaTeX because the org-exported pdf had an overflowing tab= le that I couldn't control. Can someone shed some light into all this matte= r, please?

#+TITLE: My Title
= #+AUTHOR: Me
#+DATE: April 2016
#+STARTUP: nolatexprevi= ew align
#+OPTIONS: toc:nil
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper,10pt]
#+ATTR_LATEX: :bookta= bs :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 t= o hop from one field to the other.

| NAME &nb= sp;            | CHARACTERISTICS    = ;                     &nb= sp;                     &= nbsp;                    =                     &nbs= p;                     &n= bsp;                     =                      = ;          | EXAMPLES         =                      = ; |
|-------------------+----------------------------------------= ---------------------------------------------------------------------------= -----------------------------------------------------------------+---------= -------------------------------|
| Metals       &n= bsp;    | <10> metallic bonding: adjacent atoms share elect= rons in a non-directional way; opaque, shiny, electrically conductive, they= reflect photons, light rays from the environment      | a m= etal pan                   &nb= sp;        |


<= div>Any help is highly appreciated. Thank you. ------=_Part_1382323_1006255363.1462141272552--