emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Table captions in LaTeX export
@ 2015-06-12  6:12 Thomas S. Dye
  2015-06-12  7:41 ` Eric S Fraga
  2015-06-12 20:09 ` Rasmus
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas S. Dye @ 2015-06-12  6:12 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2015-06-12 21:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12  6:12 Table captions in LaTeX export Thomas S. Dye
2015-06-12  7:41 ` 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

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