emacs-orgmode
[Top][All Lists]
Advanced

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

exporting latex table to html as png


From: Jeremie Juste
Subject: exporting latex table to html as png
Date: Sun, 21 Jun 2020 15:17:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

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}



reply via email to

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