emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode@gnu.org
Subject: Table captions in LaTeX export
Date: Thu, 11 Jun 2015 20:12:10 -1000	[thread overview]
Message-ID: <m2616tmp51.fsf@tsdye.com> (raw)

Aloha all,

With this input:

,----------------------------------------------------------------------------------
| #+begin_margintable                                                              
| #+name: tab:eg                                                                   
| #+attr_latex: :float nil :booktabs t :center nil :caption \caption{Example table}
| | First | Second |                                                               
| |-------+--------|                                                               
| | One   | Two    |                                                               
| | Three | Four   |                                                               
| #+end_margintable                                                                
`----------------------------------------------------------------------------------

On export to LaTeX, I get this, which lacks a caption and a label:

,--------------------
| \begin{margintable}
| \begin{tabular}{ll}
| \toprule           
| First & Second\\   
| \midrule           
| One & Two\\        
| Three & Four\\     
| \bottomrule        
| \end{tabular}      
| \end{margintable}  
`--------------------

It would be good to have :caption and label honored, even when :float
nil, like this:

,--------------------------------------
| \begin{margintable}                  
| \caption{Example table\label{tab:eg}}
| \begin{tabular}{ll}                  
| \toprule                             
| First & Second\\                     
| \midrule                             
| One & Two\\                          
| Three & Four\\                       
| \bottomrule                          
| \end{tabular}                        
| \end{margintable}                    
`--------------------------------------

Is this possible?

All the best,
Tom
-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

             reply	other threads:[~2015-06-12  6:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12  6:12 Thomas S. Dye [this message]
2015-06-12  7:41 ` Table captions in LaTeX export Eric S Fraga
2015-06-12 16:52   ` Thomas S. Dye
2015-06-12 20:09 ` Rasmus
2015-06-12 21:57   ` Thomas S. Dye

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=m2616tmp51.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --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).