emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vikas Rawal <vikaslists@agrarianresearch.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Org to LaTeX export of tables
Date: Mon, 24 Aug 2015 05:06:15 +0530	[thread overview]
Message-ID: <EC1C7B02-1216-4B8A-B503-007E1D508257@agrarianresearch.org> (raw)

Please see the sample org table below, and the way it is exported in LaTeX.

I do not want \begin{center} and \end{center}. Having those results in some extra space between the table and the notes.

How can I get rid of it?

My org version: Org-mode version 8.3 (release_8.3-3-gb5f5d6)

Vikas



#+NAME: table-name
#+CAPTION: Caption of table
#+begin_table
#+begin_threeparttable
#+attr_latex: :environment tabulary :width \textwidth :align LRR
| Col1 | col2 | col3 |
|      |      |      |
|      |      |      |
|      |      |      |
|      |      |      |
#+begin_tablenotes
\item[] \footnotesize /Notes/:

\item[] \footnotesize Note 1 says something

\item[] \footnotesize Note one says something else

\item[] \footnotesize /Source/: Imagined by somebody
#+end_tablenotes
#+end_threeparttable
#+end_table


The LaTeX export:

\begin{table}
\caption{\label{orgspecialblock1}
Caption of table}
\begin{threeparttable}
\begin{center}
\begin{tabulary}{\textwidth}{LRR}
Col1 & col2 & col3\\
 &  & \\
 &  & \\
 &  & \\
 &  & \\
\end{tabulary}
\end{center}
\begin{tablenotes}
\item[] \footnotesize \emph{Notes}:

\item[] \footnotesize Note 1 says something

\item[] \footnotesize Note one says something else

\item[] \footnotesize \emph{Source}: Imagined by somebody
\end{tablenotes}
\end{threeparttable}
\end{table}

             reply	other threads:[~2015-08-23 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 23:36 Vikas Rawal [this message]
2015-08-24  3:51 ` Org to LaTeX export of tables Vikas Rawal
2015-08-24  7:37 ` Marcin Borkowski
2015-08-24 20:11   ` Rasmus
2015-08-24 11:19 ` Michael Strey

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=EC1C7B02-1216-4B8A-B503-007E1D508257@agrarianresearch.org \
    --to=vikaslists@agrarianresearch.org \
    --cc=emacs-orgmode@gnu.org \
    /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).