emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting latex table to html as png
@ 2020-06-21 13:17 Jeremie Juste
  0 siblings, 0 replies; only message in thread
From: Jeremie Juste @ 2020-06-21 13:17 UTC (permalink / raw)
  To: emacs-orgmode


Hello,

I would like to export the following table as a png in an html page. But
it seams that the latex table requires multiple compilations. I can
achieve this when I export to latex by customizing the
org-latex-pdf-process as follows


(setq org-latex-pdf-process (quote ("texi2dvi --pdf --build=local --verbose --batch %f"
				    "bibtex %b"
				    "texi2dvi --pdf  --verbose --batch %f"
				    "texi2dvi --pdf  --verbose --batch %f")))


But it seems that when the table is compiled only once when I export to
html. As a result the table notes end up being badly formatted.

Do you have a way to solve this problem?

Best regards,
Jeremie


* latex preambule
#+LATEX_HEADER:\usepackage[flushleft]{threeparttablex}
#+LATEX_HEADER: \usepackage{dcolumn}
#+LATEX_HEADER:\usepackage{siunitx}
#+LATEX_HEADER:\usepackage{longtable,tabularx,ltablex}
 

* 
 
 \begin{ThreePartTable}
      \sisetup{table-format=-2.3, table-space-text-post=***, table-number-alignment=center}
 \keepXColumns
 \begin{TableNotes}\footnotesize
  \item[\hspace{-\fontdimen2\font}]\emph{Note:}   This table reprensents the results of the models 1 2 3, 4, 
 on page 12. Standard errors are shown in parenthesis.
 $^{***}p<0.01$, $^{**}p<0.05$, $^*p<0.1$ \end{TableNotes}
 \begin{tabularx}{\textwidth}{l *{6}{c}}
   \toprule
     &Pooled & Ind & Ind+Time & Mundlak &Within\\
   \midrule
  Intercept & 18.60$^{***}$ & 22.25$^{***}$ & 24.08$^{***}$ & -5.55$^{**}$ & 53.03$^{***}$ \\ 
     & (0.91) & (1.09) & (0.60) & (2.40) & (1.98) \\ 
    score & 6.34$^{***}$ & 5.97$^{***}$ & 5.11$^{***}$ & 5.11$^{***}$ & 5.11$^{***}$ \\ 
     & (0.29) & (0.27) & (0.13) & (0.23) & (0.64) \\ 
    $\overline{score_i}$ &  &  &  & 3.72$^{***}$ &  \\ 
     &  &  &  & (0.59) &  \\ 
    $\overline{score_t}$ &  &  &  & 5.54$^{***}$ &  \\ 
     &  &  &  & (0.58) &  \\ 
     \midrule 
  N.obs & 100 & 100 & 100 & 100 & 100 \\ 
    $R^{2}$ & 0.83 & 0.88 & 0.98 & 0.92 & 0.40 \\ 
    $Adj R^2$ & 0.83 & 0.87 & 0.97 & 0.92 & 0.39 \\ 
    LogL & -235.71 & -218.37 & -133.63 & -196.29 & -299.50 \\ 
     \bottomrule
 \insertTableNotes
 \end{tabularx}
 \end{ThreePartTable}


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

only message in thread, other threads:[~2020-06-21 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-21 13:17 exporting latex table to html as png 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).