From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Mukhachev Subject: Re: Table latex exporting ignores #+ATTR_LATEX: Date: Sun, 25 Mar 2018 19:23:53 +0300 Message-ID: <1521995033.9799.14.camel@phystech.edu> References: <1521549805.14645.12.camel@gmail.com> <87fu4owerz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f08R8-0007FI-Dd for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 12:24:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f08R4-00078A-C9 for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 12:24:02 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f08R4-00077Z-1v for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 12:23:58 -0400 Received: by mail-lf0-x234.google.com with SMTP id x205-v6so24745759lfa.0 for ; Sun, 25 Mar 2018 09:23:57 -0700 (PDT) In-Reply-To: <87fu4owerz.fsf@gmail.com> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org $ 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}% 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 | > >