emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeremie Juste <jeremiejuste@gmail.com>
To: emacs-orgmode@gnu.org
Subject: exporting latex table to html as png
Date: Sun, 21 Jun 2020 15:17:03 +0200	[thread overview]
Message-ID: <87eeq85zjk.fsf@gmail.com> (raw)


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	other threads:[~2020-06-21 13:17 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=87eeq85zjk.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).