emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Klein <roklein@roklein.de>
To: Peter Mukhachev <mukhachev@phystech.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Table latex exporting ignores #+ATTR_LATEX:
Date: Mon, 26 Mar 2018 08:13:06 +0200	[thread overview]
Message-ID: <20180326081306.2312c946@lt70.mpip-mainz.mpg.de> (raw)
In-Reply-To: <1521995033.9799.14.camel@phystech.edu>

Hi,

On Sun, 25 Mar 2018 19:23:53 +0300
Peter Mukhachev <mukhachev@phystech.edu> 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 <ENTER>.



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 |  
> > 
> >   
> 

  reply	other threads:[~2018-03-26  6:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 12:43 Table latex exporting ignores #+ATTR_LATEX: Peter Mukhachev
2018-03-25 11:55 ` Eric S Fraga
2018-03-25 16:23   ` Peter Mukhachev
2018-03-26  6:13     ` Robert Klein [this message]
2018-04-03 11:14       ` Peter Mukhachev
2018-04-03 12:07       ` Peter Mukhachev

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=20180326081306.2312c946@lt70.mpip-mainz.mpg.de \
    --to=roklein@roklein.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=mukhachev@phystech.edu \
    /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).