emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mime-buffer-htmlize with BEGIN_EXPORT latex
@ 2017-03-14  9:35 Jérémie Juste
  2017-03-14  9:44 ` Jérémie Juste
  0 siblings, 1 reply; 2+ messages in thread
From: Jérémie Juste @ 2017-03-14  9:35 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]

Hello,

I'm trying the org-mime-buffer-htmlize function but notice that it does
not convert latex codes to image if they are in between export blocks.
It is possible to have this feature enabled ?

#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t tex:imagemagick
#+LATEX_HEADER: \usepackage [margin=1in]{geometry}
#+LATEX_CLASS: myclass
#+LATEX_HEADER:
\newcommand\numberEq{\addtocounter{equation}{1}\tag{\theequation}}
#+LATEX_HEADER:\usepackage{setspace}
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usepackage{longtable}
#+LATEX_HEADER: \usepackage{bbm}
#+LATEX_HEADER: \usepackage{rotating}
#+LATEX_HEADER: \doublespace

Does not work

#+BEGIN_EXPORT latex
\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{table}
#+END_EXPORT

work

\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{table}


Best regards,
Jeremie

[-- Attachment #2: Type: text/html, Size: 2524 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-mime-buffer-htmlize with BEGIN_EXPORT latex
  2017-03-14  9:35 org-mime-buffer-htmlize with BEGIN_EXPORT latex Jérémie Juste
@ 2017-03-14  9:44 ` Jérémie Juste
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Juste @ 2017-03-14  9:44 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]

The previous latex codes don't run. My apologies should have checked the
latex code first. Now it does.

#+BEGIN_EXPORT latex
\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r }

  1 & 2 & 3 \\

  4 & 5 & 6 \\
  7 & 8 & 9 \\
\end{tabluar}

\end{table}
#+END_EXPORT

work

\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r }

  1 & 2 & 3 \\

  4 & 5 & 6 \\
  7 & 8 & 9 \\
\end{tabular}

\end{table}

work as well

#+BEGIN_latex
\begin{table}
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{tabular}
\end{table}
#+END_latex

Best,

Jeremie


On Tue, Mar 14, 2017 at 10:35 AM, Jérémie Juste <jeremiejuste@gmail.com>
wrote:

>
> Hello,
>
> I'm trying the org-mime-buffer-htmlize function but notice that it does
> not convert latex codes to image if they are in between export blocks.
> It is possible to have this feature enabled ?
>
> #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t tex:imagemagick
> #+LATEX_HEADER: \usepackage [margin=1in]{geometry}
> #+LATEX_CLASS: myclass
> #+LATEX_HEADER: \newcommand\numberEq{\addtocounter{equation}{1}\tag{
> \theequation}}
> #+LATEX_HEADER:\usepackage{setspace}
> #+LATEX_HEADER: \usepackage{tikz}
> #+LATEX_HEADER: \usepackage{longtable}
> #+LATEX_HEADER: \usepackage{bbm}
> #+LATEX_HEADER: \usepackage{rotating}
> #+LATEX_HEADER: \doublespace
>
> Does not work
>
> #+BEGIN_EXPORT latex
> \begin{table}[!htbp]
> \centering
> \caption{Descriptive statistics}
> \begin{tabular}{ l c r }
>
>   1 & 2 & 3 \\
>
>   4 & 5 & 6 \\
>   7 & 8 & 9 \\
>
> \end{table}
> #+END_EXPORT
>
> work
>
> \begin{table}[!htbp]
> \centering
> \caption{Descriptive statistics}
> \begin{tabular}{ l c r }
>
>   1 & 2 & 3 \\
>
>   4 & 5 & 6 \\
>   7 & 8 & 9 \\
>
> \end{table}
>
>
> Best regards,
> Jeremie
>
>


-- 
Jérémie Juste

[-- Attachment #2: Type: text/html, Size: 6011 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14  9:35 org-mime-buffer-htmlize with BEGIN_EXPORT latex Jérémie Juste
2017-03-14  9:44 ` Jérémie 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).