From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: Re: tabularx from org to latex not recognized Date: Tue, 3 May 2016 16:04:53 +0200 (CEST) Message-ID: <757902927.12411381462284293847.JavaMail.httpd@webmail-17.iol.local> Reply-To: "vendo.libri@libero.it" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1435002_504749111.1462284293846" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axawv-0003Ne-Ur for emacs-orgmode@gnu.org; Tue, 03 May 2016 10:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axawj-0008ER-HT for emacs-orgmode@gnu.org; Tue, 03 May 2016 10:05:12 -0400 Received: from smtp-33.italiaonline.it ([212.48.25.161]:59946 helo=libero.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axawi-00089v-5a for emacs-orgmode@gnu.org; Tue, 03 May 2016 10:05:05 -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, ndokos@gmail.com ------=_Part_1435002_504749111.1462284293846 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello Nick, Thank you for fixing the <10> character-width problem with the 2nd column of the table in Org-mode problem, your solution worked. Now the table is much more legible, within Emacs' reduced window. Unfortunately the ultimate pdf if still giving problems. The table is too wide and the text overflows well beyond the right page limit. Something's not working in the preamble. Let me post the whole thing here: #+TITLE: MS#+AUTHOR: Me#+DATE: April 2016#+STARTUP: nolatexpreview align#+OPTIONS: toc:nil#+LATEX_CLASS: article#+LATEX_CLASS_OPTIONS: [a4paper,10pt] #+ATTR_LATEX: :environment tabularx :width \textwidth :align lXl #+LATEX_HEADER: \usepackage{esdiff}#+LATEX_HEADER: \usepackage[version=4]{mhchem}#+LATEX_HEADER: \usepackage{amssymb}#+LATEX_HEADER: \usepackage{siunitx}#+LATEX_HEADER: \usepackage{tabularx,booktabs}#+LATEX_HEADER: \setcounter{secnumdepth}{0}#+LATEX_HEADER: \usepackage[margin=1in]{geometry}#+LATEX_HEADER: \frenchspacing \allowdisplaybreaks#+LATEX_HEADER: \usepackage{fancyhdr}#+LATEX_HEADER: \pagestyle{fancy} % choose page-style#+LATEX_HEADER: \fancyhf{} % erase and clean up#+LATEX_HEADER: \fancyhf[HLE,HRO]{\thepage} % H or F=Header or Footer, LCR=Left, Centre, Right#+LATEX_HEADER: \fancyhf[HC]{Materials Science: 10 Things\dots} PS: Say I want to see what's "hidden" in the table due to the <10> (or <20>) character self-imposed limit, how can I do that via keyboard shortcut? Can it be done? --------------------------------------------------------From: Nick Dokos gmail.com>Subject: Re: tabularx from org to latex not recognizedNewsgroups: gmane.emacs.orgmode The specification is on a row of its own, in the same columnthat it is supposed to control. Try the following: --8<---------------cut here---------------start------------->8---#+ATTR_LATEX: :environment tabularx :width \textwidth :align lXl| NAME | CHARACTERISTICS | EXAMPLES ||--------+----------------------+-------------|| | <20> | || Metals | metallic bonding: adjacent atoms share electrons in a non-directional way; opaque, shiny,electrically conductive, they reflect photons, light rays from the Qenvironment | a metal pan | --8<---------------cut here---------------end--------------->8--- --Nick ------=_Part_1435002_504749111.1462284293846 Content-Type: text/html;charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Nick, 

Thank you for fi= xing the <10> character-width problem with the 2nd column of the tabl= e in Org-mode problem, your solution worked. Now the table is much more leg= ible, within Emacs' reduced window.

Unfortunately = the ultimate pdf if still giving problems. The table is too wide and the te= xt overflows well beyond the right page limit. Something's not working in t= he preamble. Let me post the whole thing here:

#+TITLE: MS
#+AUTHOR:  Me
#+DATE: April 2016
#+STARTUP: nolatexpreview align
#+OPTIONS: toc:nil
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper,10pt]

#+ATTR_LATEX: :environment tabularx :width \textwid= th :align lXl

#+LATEX_HEADER: \usepackage{esdiff}<= /div>
#+LATEX_HEADER: \usepackage[version=3D4]{mhchem}
#+LATE= X_HEADER: \usepackage{amssymb}
#+LATEX_HEADER: \usepackage{siunit= x}
#+LATEX_HEADER: \usepackage{tabularx,booktabs}
#+LAT= EX_HEADER: \setcounter{secnumdepth}{0}
#+LATEX_HEADER: \usepackag= e[margin=3D1in]{geometry}
#+LATEX_HEADER: \frenchspacing \allowdi= splaybreaks
#+LATEX_HEADER: \usepackage{fancyhdr}
#+LAT= EX_HEADER: \pagestyle{fancy} % choose page-style
#+LATEX_HEADER: = \fancyhf{}  % erase and clean up
#+LATEX_HEADER: \fancyhf[HL= E,HRO]{\thepage} % H or F=3DHeader or Footer, LCR=3DLeft, Centre, Right
#+LATEX_HEADER: \fancyhf[HC]{Materials Science: 10 Things\dots}

PS: Say I want to see what's "hidden" in the tab= le due to the <10> (or <20>) character self-imposed limit, how = can I do that via keyboard shortcut? Can it be done?

--------------------------------------------------------
From:= Nick Dokos <ndokos <at> gmail.com>
Subject: Re: tabu= larx from org to latex not recognized
Newsgroups: gmane.emacs.org= mode


The <width> specificatio= n is on a row of its own, in the same column
that it is supposed = to control. Try the following:

--8<------------= ---cut here---------------start------------->8---
#+ATTR_LATEX= : :environment tabularx :width \textwidth :align lXl
| NAME  = ; | CHARACTERISTICS      | EXAMPLES    |
|--------+----------------------+-------------|
|     =    | <20>               =   |             |
| Metals | m= etallic bonding: adjacent atoms share electrons in a non-directional way; o= paque, shiny,
electrically conductive, they reflect photons, ligh= t rays from the Qenvironment | a metal pan |

--8&l= t;---------------cut here---------------end--------------->8---

--
Nick
------=_Part_1435002_504749111.1462284293846--