all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Latex export of tables
@ 2013-04-12  8:06 Vikas Rawal
  2013-04-14 23:29 ` Suvayu Ali
  0 siblings, 1 reply; 24+ messages in thread
From: Vikas Rawal @ 2013-04-12  8:06 UTC (permalink / raw)
  To: emacs-orgmode

I am using org-mode version 8.0-pre (release_8.0-pre-247-gbc3ccd @
/home/vikas/lisp/org-mode/lisp/).

I have a table generated by a source block in a document that I would
like to export to latex. In the exported tex file, I would like org to
insert a line like the following between \end(tabular} and \end{table}

\begin{minipage}{\textwidth} \tiny Note: Some descriptive text here. \end{minipage}

Can somebody suggest what I could do to insert this?

I have been playing with something like the following but am not able
to get it right.

#+LATEX: {
#+NAME: table-name-out
#+CAPTION: Average gross value of output and net income from cultivation of wheat intercropped with rapeseed, by class, Mahatwar (Rupees per acre, 2005-06 prices)
#+attr_latex: :environment tabulary :width 15cm :align l|RRR 
#+RESULTS: source_code_name
| A | B | C |
|---+---+---|
| 1 | 1 | 1 |
| 1 | 2 | 3 |
| 2 | 2 | 4 |
#+LATEX: \begin{minipage}{} \tiny Note: Some descriptive text here.#\end{minipage}  }

Vikas

^ permalink raw reply	[flat|nested] 24+ messages in thread
* LaTeX export of tables
@ 2009-10-13 10:35 Francesco Pizzolante
       [not found] ` <873a5nr379.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Francesco Pizzolante @ 2009-10-13 10:35 UTC (permalink / raw)
  To: mailing-list-org-mode

Hi,

When exporting tables to LaTeX, I think it would be good to have the following
options to be able to define:

  - the table environment to be used: now we have the option to have tabular
    and longtable, but I could also use array, tabular*, tabularx, tabulary,
    etc.

    The general rule is:

    \begin{TABLEENV}{WIDTH}[VPOS]{COLS}
    ROWS
    \end{TABLEENV}

    TABLEENV can be any of tabular, array, tabular*, tabularx, etc., depending
    on the type of table I want.

    Some types of table need a WIDTH to be specified; in this case, I would
    add a WIDTH option. An extra vertical position VPOS option can also be
    added to some types of table.

    The COLS parameter already receives the value from the "align" org
    attribute.

    The following options

    #+ATTR_LATEX: tabularx width=\textwidth align=lX vpos=tb

    would generate the following LaTeX code:

    \begin{tabularx}{\textwidth}[tb]{lX}
    ROWS
    \end{tabularx}


  - the rule to be used as hline (similar option as in
    #+ORGTBL: :hline="\\midrule"):

    #+ATTR_LATEX: hline=midrule or #+ATTR_LATEX: hline="\\midrule"


  - define the top and bottom rules:

    #+ATTR_LATEX: toprule="\\toprule" bottomrule="\\bottomrule"


Does it make sense? Would it be possible to have these new options in a future
orgmode release?

Thanks a lot.
Francesco


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-04-21 17:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12  8:06 Latex export of tables Vikas Rawal
2013-04-14 23:29 ` Suvayu Ali
2013-04-16 11:56   ` Vikas Rawal
2013-04-16 13:13     ` Thomas Alexander Gerds
2013-04-16 17:39     ` Suvayu Ali
2013-04-16 20:07       ` Thomas S. Dye
2013-04-16 21:39         ` Suvayu Ali
2013-04-16 23:45           ` Thomas S. Dye
2013-04-17 10:21           ` Myles English
2013-04-16 22:10         ` Best practices for literate programming [was: Latex export of tables] Vikas Rawal
2013-04-17  0:06           ` Thomas S. Dye
2013-04-18 16:53             ` Rasmus
2013-04-18 17:59               ` Aaron Ecay
2013-04-18 18:25                 ` Rasmus
2013-04-18 19:48                 ` Achim Gratz
2013-04-18 19:42               ` Thomas S. Dye
2013-04-21 17:25                 ` Rasmus Pank Roulund
2013-04-17  6:39           ` Suvayu Ali
2013-04-17  9:55             ` Rainer M. Krug
2013-04-17 10:10               ` Suvayu Ali
  -- strict thread matches above, loose matches on Subject: below --
2009-10-13 10:35 LaTeX export of tables Francesco Pizzolante
     [not found] ` <873a5nr379.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
2009-10-19 11:58   ` Francesco Pizzolante
2009-10-19 18:05     ` Darlan Cavalcante Moreira
2009-10-20  8:17     ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.