emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* html export of latex table
@ 2019-05-19  6:31 Jeremie Juste
  0 siblings, 0 replies; only message in thread
From: Jeremie Juste @ 2019-05-19  6:31 UTC (permalink / raw)
  To: Emacs-orgmode

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
  \begin{longtable}{@{*}r||p{1in}@{*}}
KILLED & LINE!!!! \kill
\caption[An optional table caption ...]{A long table\label{long}}\\
\hline\hline
\multicolumn{2}{@{*}c@{*}}%
{This part appears at the top of the table}\\
\textsc{First}&\textsc{Second}\\
\hline\hline
\endfirsthead
\caption[]{(continued)}\\
\hline\hline
\multicolumn{2}{@{*}c@{*}}%
{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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-19  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-19  6:31 html export of latex table Jeremie Juste

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