From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: Table latex exporting ignores #+ATTR_LATEX: Date: Mon, 26 Mar 2018 08:13:06 +0200 Message-ID: <20180326081306.2312c946@lt70.mpip-mainz.mpg.de> References: <1521549805.14645.12.camel@gmail.com> <87fu4owerz.fsf@gmail.com> <1521995033.9799.14.camel@phystech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0LNj-0005IC-Nn for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 02:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0LNe-0005Jo-Dr for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 02:13:22 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:51217) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0LNe-0005JW-3v for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 02:13:18 -0400 In-Reply-To: <1521995033.9799.14.camel@phystech.edu> 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: Peter Mukhachev Cc: emacs-orgmode@gnu.org Hi, On Sun, 25 Mar 2018 19:23:53 +0300 Peter Mukhachev wrote: > $ cat table-source.org > #+ATTR_LATEX: :align lp{2cm}l > | Name | Text | Rationale | > | height | 18 m | ATC requriment | > > # Here I export with M-x org-table-export RET org-table-export- > result.tex RET orgtbl-to-latex RET > > It gives the following (note the alignment string is "lll") > $ cat org-table-export-result.tex > \begin{tabular}{lll} > Name & Text & Rationale\\ > height & 18 m & ATC requriment\\ > \end{tabular} > > However, when I dispatch it via M-x org-latex-export-to-latex, the > output is the following (alignment stirg is the same as in org file) > $ tail -n 6 table_source.tex > \begin{tabular}{lp{2cm}l} > Name & Text & Rationale\\ > height & 18 m & ATC requriment\\ > \end{tabular} > \end{center} > \end{document}% > > Can you use body-only export? (That is, is your table the only content of your document?) In elisp (org-latex-export-to-latex nil nil nil t), or interactively C-c C-e C-b . Best regards Robert > > On Sun, 2018-03-25 at 12:55 +0100, Eric S Fraga wrote: > > On Tuesday, 20 Mar 2018 at 15:43, Peter Mukhachev wrote: > > > (org-table-export) can probably do the thing I want. However, > > > dispatching it with latex backend ends up with #+ATTR_LATEX: line > > > ignored and exports bare table only in its tabular environment. > > > However, I would like to be able to control the alignment either > > > at my > > > .org file with #+ATTR_LATEX (preferred) or at my top-level .tex > > > file > > > using tabular environment. > > > > Maybe show us a minimal example that does not work? Ideally, you > > should > > have something along the lines of > > > > #+attr_latex: ... > > > a | table | > > > > >