[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Feature request: creating separate tables on same rows
From: |
Rainer M Krug |
Subject: |
Re: [O] Feature request: creating separate tables on same rows |
Date: |
Fri, 06 Jun 2014 11:19:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
Aldric Giacomoni <address@hidden> writes:
> Understood, thank you very much for explaining it :)
Well - you could define it as one huge table, where the first x columns
belong to the first table, and the last x belong to the second table -
but using this table as an input for further calculations might be
tricky.
Cheers,
Rainer
>
>
> On Thu, Jun 5, 2014 at 7:06 PM, Jorge A. Alfaro-Murillo <
> address@hidden> wrote:
>
>> Thorsten Jolitz <address@hidden> writes:
>>
>> > In Org-mode that would be (at least) very strange, but Org-mode uses
>> > backends for the final docs, so you might want to look at e.g. LaTeX
>> > multi-column styles and if Org-mode supports them somehow. But even if
>> > so, it might get complicated and using AucTex directly might be the
>> > better choice in such cases.
>>
>> I agree, in such cases I use AucTeX directly. You can use orgtbl-mode in
>> your tex file to build the main data of the table in LaTeX in Org form,
>> check: (info "(org) A LaTeX example"). Then add your multi-columns with:
>>
>> #+BEGIN_LaTeX
>> \multirow{''num_rows''}{''width''}{''contents''}
>> #+END_LaTeX
>>
>> If you want multi-rows:
>> #+BEGIN_LaTeX
>> \usepackage{multirow}
>> \multirow{''num_rows''}{''width''}{''contents''}
>> #+END_LaTeX
>>
>> A complete example, from a recent paper I was working on:
>>
>> #+BEGIN_LaTeX
>> \documentclass{article}
>> \usepackage{multirow}
>> \usepackage{booktabs}
>> \begin{document}
>>
>> \begin{table}
>> \centering
>> \begin{tabular}{cccccc}
>> \toprule
>> \multirow{2}{*}{Age-group} & \multirow{2}{*}{$L-a$} &
>> \multirow{2}{*}{$p_{d}$} & \multirow{2}{*}{$p_{h}$} &
>> \multicolumn{2}{c}{Likelihood} \\
>> \cmidrule(lr){5-6}
>> & & & & Mean & 95\% CI \\
>> \midrule
>> 0-5 & 83.73 & 0.00004 & 0.0141 & 0.38009 &
>> $[0.24024,\,0.53638]$\\
>> 5-17 & 74.78 & 0.00001 & 0.0006 & 0.19399 &
>> $[0.10497,\,0.31382]$\\
>> 18-49 & 52.52 & 0.00009 & 0.0042 & 0.12682 &
>> $[0.07216,\,0.20166]$\\
>> 50-64 & 30.10 & 0.00134 & 0.0193 & 0.12682 &
>> $[0.07216,\,0.20166]$\\
>> 65+ & 14.19 & 0.01170 & 0.0421 & 0.17229 &
>> $[0.09871,\,0.26994]$\\
>> \bottomrule
>> \end{tabular}
>> \caption{Age-dependent health effect parameters.}
>> \end{table}
>>
>> \end{document}
>> #+END_LaTeX
>>
>> Everything between \midrule and \bottomrule is easier written with
>> orgtbl-mode.
>>
>> Best,
>>
>> Jorge.
>>
>>
>>
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: address@hidden
Skype: RMkrug
PGP: 0x0F52F982
pgp5enDIQw13j.pgp
Description: PGP signature
- [O] Feature request: creating separate tables on same rows, Aldric Giacomoni, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Thorsten Jolitz, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Omid, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Aldric Giacomoni, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Omid, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Aldric Giacomoni, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Thorsten Jolitz, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Jorge A. Alfaro-Murillo, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows, Aldric Giacomoni, 2014/06/05
- Re: [O] Feature request: creating separate tables on same rows,
Rainer M Krug <=