From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: html export of latex table Date: Sun, 19 May 2019 07:31:22 +0100 Message-ID: <875zq7t0p1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSFQn-0005mV-Nj for Emacs-orgmode@gnu.org; Sun, 19 May 2019 02:36:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSFNF-0002lR-2v for Emacs-orgmode@gnu.org; Sun, 19 May 2019 02:32:46 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:50255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSFNE-0002k8-SU for Emacs-orgmode@gnu.org; Sun, 19 May 2019 02:32:45 -0400 Received: by mail-wm1-x32e.google.com with SMTP id f204so10265255wme.0 for ; Sat, 18 May 2019 23:32:43 -0700 (PDT) Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id f126sm2720098wmf.30.2019.05.18.23.32.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 May 2019 23:32:40 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Emacs-orgmode@gnu.org 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_HEAD= ER: \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.9= 4)$ \\ score & $5.03^{***}$ & $5.10^{***}$ & $4.88^{***}$ & $4.88^{***}$ = & $4.88^{***}$ \\ & $(1.16)$ & $(1.19)$ & $(1.24)$ & $(1.21)$ & $(1.2= 2)$ \\ 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.9= 4)$ \\ score & $5.03^{***}$ & $5.10^{***}$ & $4.88^{***}$ & $4.88^{***}$ = & $4.88^{***}$ \\ & $(1.16)$ & $(1.19)$ & $(1.24)$ & $(1.21)$ & $(1.2= 2)$ \\ 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 =E2=80=98=E2=80=98p=E2=80=99=E2=80=99 col= umn... \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