emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeremie Juste <jeremiejuste@gmail.com>
To: Emacs-orgmode@gnu.org
Subject: html export of latex table
Date: Sun, 19 May 2019 07:31:22 +0100	[thread overview]
Message-ID: <875zq7t0p1.fsf@gmail.com> (raw)

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

                 reply	other threads:[~2019-05-19  6:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=875zq7t0p1.fsf@gmail.com \
    --to=jeremiejuste@gmail.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).