emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] html export of latex table


From: Jeremie Juste
Subject: [O] html export of latex table
Date: Sun, 19 May 2019 07:31:22 +0100

Hello,

I noticed that the html export does not export correctly the following
table, although it does if I wrap it in a table environment. I also
tried some other table environment such a longtable and noticed that
somehow the environment name gets hijacked \begin{longtable}
becomes \begin{longtable*}.

I you are struggling with the same issue you can get away with #+LATEX_HEADER:
\newenvironment{longtable*}[][]{\begin{longtable}}{\end{longtable}}
for the time being. :-).

Best regards,
Jeremie



** export go through not correctly.
 #+begin_src latex :results  raw
 \begin{tabular}{l c c c c c }
 \toprule
  & pooled & ind & ind+time & mundlak & within \\
 \midrule
 Intercept  & $43.95^{***}$ & $37.48^{***}$ & $36.35^{***}$ & $34.41$      & 
$87.96^{***}$ \\
            & $(5.68)$      & $(7.47)$      & $(9.08)$      & $(39.06)$    & 
$(5.94)$      \\
 score      & $5.03^{***}$  & $5.10^{***}$  & $4.88^{***}$  & $4.88^{***}$ & 
$4.88^{***}$  \\
            & $(1.16)$      & $(1.19)$      & $(1.24)$      & $(1.21)$     & 
$(1.22)$      \\
 score-i    &               &               &               & $-2.30$      &    
           \\
            &               &               &               & $(6.94)$     &    
           \\
 score-t    &               &               &               & $4.60$       &    
           \\
            &               &               &               & $(5.50)$     &    
           \\
 \midrule
 R$^2$      & 0.16          & 0.18          & 0.19          & 0.17         & 
0.14          \\
 Adj. R$^2$ & 0.15          & 0.14          & 0.11          & 0.14         & 
0.13          \\
 Num. obs.  & 100           & 100           & 100           & 100          & 
100           \\
 RMSE       & 23.90         & 24.13         & 24.55         & 24.04        & 
24.20         \\
 \bottomrule
 \end{tabular}
#+end_src


** exports correctly
#+begin_src latex :results  raw
\begin{table}
 \begin{tabular}{l c c c c c }
 \toprule
  & pooled & ind & ind+time & mundlak & within \\
 \midrule
 Intercept  & $43.95^{***}$ & $37.48^{***}$ & $36.35^{***}$ & $34.41$      & 
$87.96^{***}$ \\
            & $(5.68)$      & $(7.47)$      & $(9.08)$      & $(39.06)$    & 
$(5.94)$      \\
 score      & $5.03^{***}$  & $5.10^{***}$  & $4.88^{***}$  & $4.88^{***}$ & 
$4.88^{***}$  \\
            & $(1.16)$      & $(1.19)$      & $(1.24)$      & $(1.21)$     & 
$(1.22)$      \\
 score-i    &               &               &               & $-2.30$      &    
           \\
            &               &               &               & $(6.94)$     &    
           \\
 score-t    &               &               &               & $4.60$       &    
           \\
            &               &               &               & $(5.50)$     &    
           \\
 \midrule
 R$^2$      & 0.16          & 0.18          & 0.19          & 0.17         & 
0.14          \\
 Adj. R$^2$ & 0.15          & 0.14          & 0.11          & 0.14         & 
0.13          \\
 Num. obs.  & 100           & 100           & 100           & 100          & 
100           \\
 RMSE       & 23.90         & 24.13         & 24.55         & 24.04        & 
24.20         \\
 \bottomrule
 \end{tabular}
\end{table}
#+end_src


** long table export crash


  #+begin_src latex :results raw
  address@hidden||address@hidden
KILLED & LINE!!!! \kill
\caption[An optional table caption ...]{A long table\label{long}}\\
\hline\hline
address@hidden@{*}}%
{This part appears at the top of the table}\\
\textsc{First}&\textsc{Second}\\
\hline\hline
\endfirsthead
\caption[]{(continued)}\\
\hline\hline
address@hidden@{*}}%
{This part appears at the top of every other page}\\
\textbf{First}&\textbf{Second}\\
\hline\hline
\endhead
\hline
This goes at the&bottom.\\
\hline
\endfoot
\hline
These lines will&appear\\
in place of the & usual foot\\
at the end& of the table\\
\hline
\endlastfoot
\env{longtable} columns are specified& in the \\
same way as in the \env{tabular}& environment.\\
...
\multicolumn{2}{||c||}{This is a ...}\\
...
Some lines may take...&
\raggedleft This last column is a ā€˜ā€˜pā€™ā€™ column...
\tabularnewline
...
Lots of lines& like this.\\
...
\hline
Lots\footnote{...} of lines& like this.\\
Lots
of
lines& like this\footnote{...}\\
\hline
Lots of lines& like this.\\
...
\end{longtable}
  #+end_src



reply via email to

[Prev in Thread] Current Thread [Next in Thread]