Re: [O] HTML export for math markup

2017-01-11 Thread Eric S Fraga
On Tuesday, 10 Jan 2017 at 13:12, Lawrence Bottorff wrote:
> Yes, I tested all my header lines and found that was the 'offender."
> It got there on someone's suggestion it was needed for proper TikZ. Or
> was it bibtex? Or does a ton of pngs come if you choose Latex preview?
> No time for further investigation. Confusion will be my epitaph. . . .

I think, IIUC, the tex: option is for inline LaTeX and maybe (maybe not)
exported LaTeX.  If you want to use mathjax for this, then tikz et
al. need to be done differently, e.g. using src blocks with a :file
output.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676


signature.asc
Description: PGP signature


Re: [O] HTML export for math markup

2017-01-10 Thread Lawrence Bottorff
Yes, I tested all my header lines and found that was the 'offender." It got
there on someone's suggestion it was needed for proper TikZ. Or was it
bibtex? Or does a ton of pngs come if you choose Latex preview? No time for
further investigation. Confusion will be my epitaph. . . .

On Tue, Jan 10, 2017 at 3:21 AM, Eric S Fraga  wrote:

> On Tuesday, 10 Jan 2017 at 00:13, Lawrence Bottorff wrote:
> > This is the entirety of my header section. I'm sure there are
> > redundancies etc. But again, the clean vanilla of Emacs 25.1.1 and
> > org-mode 9.0.2 is defaulting to producing png's.
>
> [...]
>
> > #+OPTIONS: tex:imagemagick
>
> Maybe this is the problem?
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676
>


Re: [O] HTML export for math markup

2017-01-10 Thread Eric S Fraga
On Tuesday, 10 Jan 2017 at 00:13, Lawrence Bottorff wrote:
> This is the entirety of my header section. I'm sure there are
> redundancies etc. But again, the clean vanilla of Emacs 25.1.1 and
> org-mode 9.0.2 is defaulting to producing png's.

[...]

> #+OPTIONS: tex:imagemagick

Maybe this is the problem?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676


signature.asc
Description: PGP signature


Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
org-html-with-latex is t and org-export-with-latex is also t. I don't have
a org-html-format-latex, or at least nothing comes up with C-h
v org-html-format-latex. Also, how does edebug work as you, Nick, described?

On Mon, Jan 9, 2017 at 7:13 PM, Lawrence Bottorff  wrote:

> This is the entirety of my header section. I'm sure there are redundancies
> etc. But again, the clean vanilla of Emacs 25.1.1 and org-mode 9.0.2 is
> defaulting to producing png's.
>
> #+TITLE: \zwnj^{147}Pm SAGA
> #+AUTHOR: 147Pm
> #+EMAIL: borg...@sdf.org
> # date ... will set (change) each time (if remembered)
> #+DATE: <2015-05-09 Sat 07:53>
> #+FILETAGS: :CompleteReWrite:
> #+LANGUAGE:  en
> #+INFOJS_OPT: view:showall ltoc:t mouse:underline path:
> http://orgmode.org/org-info.js
> #+HTML_HEAD:  type="text/css">
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+OPTIONS: H:10 num:4 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t
> #+OPTIONS: prop:t
> #+OPTIONS: tex:imagemagick
> #+LATEX_CLASS: article
> #+LATEX_CLASS_OPTIONS: [american]
> # Setup tikz package for both LaTeX and HTML export:
> #+LATEX_HEADER: \usepackage{tikz}
> #+LaTeX_HEADER: \usepackage{pgfplots}
> #+LaTeX_HEADER: \usepackage{sansmath}
> #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
> #+PROPERTY: header-args:latex+ :packages '(("" "tikz"))
> #
> #+PROPERTY: header-args:latex+ :imagemagick (by-backend (latex nil) (t
> "yes"))
> #+PROPERTY: header-args:latex+ :exports results :fit yes
> #
> #+STARTUP: showall
> #+STARTUP: align
> #+STARTUP: indent
> #+STARTUP: entitiespretty
> #+STARTUP: logdrawer
>
> On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel 
> wrote:
>
>> Le 09/01/2017 16:28, Lawrence Bottorff a écrit :
>>
>> I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I
>> export this to HTML, it produces png files for each markup and puts them in
>> a subfolder ltximg. Is there any way to skip this translating to pictures
>> and just use MathJax directly. I've seen this
>> , but my
>> setup seems to be defaulted to png picture production, not direct MathJax
>> rendering via "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config
>> =TeX-AMS_HTML. I understand that what's happening is this
>> , but
>> that's not MathJax. What am I doing (thinking) wrong?
>>
>> LB
>>
>>
>> I use
>> #+HTML_MATHJAX: align: left etc...
>> Works well.
>>
>> Then you can control appearance through CSS. For instance:
>> .MathJax_Display {
>> color: #080;
>> margin: 0;
>> }
>>
>> Have fun
>>
>>
>


Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
This is the entirety of my header section. I'm sure there are redundancies
etc. But again, the clean vanilla of Emacs 25.1.1 and org-mode 9.0.2 is
defaulting to producing png's.

#+TITLE: \zwnj^{147}Pm SAGA
#+AUTHOR: 147Pm
#+EMAIL: borg...@sdf.org
# date ... will set (change) each time (if remembered)
#+DATE: <2015-05-09 Sat 07:53>
#+FILETAGS: :CompleteReWrite:
#+LANGUAGE:  en
#+INFOJS_OPT: view:showall ltoc:t mouse:underline path:
http://orgmode.org/org-info.js
#+HTML_HEAD: 
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+OPTIONS: H:10 num:4 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t
#+OPTIONS: prop:t
#+OPTIONS: tex:imagemagick
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [american]
# Setup tikz package for both LaTeX and HTML export:
#+LATEX_HEADER: \usepackage{tikz}
#+LaTeX_HEADER: \usepackage{pgfplots}
#+LaTeX_HEADER: \usepackage{sansmath}
#+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
#+PROPERTY: header-args:latex+ :packages '(("" "tikz"))
#
#+PROPERTY: header-args:latex+ :imagemagick (by-backend (latex nil) (t
"yes"))
#+PROPERTY: header-args:latex+ :exports results :fit yes
#
#+STARTUP: showall
#+STARTUP: align
#+STARTUP: indent
#+STARTUP: entitiespretty
#+STARTUP: logdrawer

On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel  wrote:

> Le 09/01/2017 16:28, Lawrence Bottorff a écrit :
>
> I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I export
> this to HTML, it produces png files for each markup and puts them in a
> subfolder ltximg. Is there any way to skip this translating to pictures and
> just use MathJax directly. I've seen this
> , but my
> setup seems to be defaulted to png picture production, not direct MathJax
> rendering via "http://cdn.mathjax.org/mathjax/latest/MathJax.js?
> config=TeX-AMS_HTML. I understand that what's happening is this
> , but
> that's not MathJax. What am I doing (thinking) wrong?
>
> LB
>
>
> I use
> #+HTML_MATHJAX: align: left etc...
> Works well.
>
> Then you can control appearance through CSS. For instance:
> .MathJax_Display {
> color: #080;
> margin: 0;
> }
>
> Have fun
>
>


Re: [O] HTML export for math markup

2017-01-09 Thread Nick Dokos
Lawrence Bottorff  writes:

> The default behavior with a plain vanilla installation is, indeed, to use png 
> files and create the
> ltximg subdirectory. It's not a huge problem, but I'd prefer it not doing 
> that; instead, using MathJax.
> Anyone know how to switch this behavior?

No, the default with a plain vanilla install is MathJax. In your minimal init 
environment,
what is the value of org-html-with-latex? What about org-export-with-latex? 
Both of these
should be t by default.

If they are, I would edebug org-html-format-latex, run the export and,
when it stops at org-html-format-latex, look at its arguments: the
second argument is the processing-type and it *should* be mathjax.

>
> On Mon, Jan 9, 2017 at 12:30 PM, Nick Dokos  wrote:
>
> Lawrence Bottorff  writes:
>
> > I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I 
> export this to HTML, it
> produces png
> > files for each markup and puts them in a subfolder ltximg. Is there any 
> way to skip this
> translating to
> > pictures and just use MathJax directly. I've seen this, but my setup 
> seems to be defaulted to png
> > picture production, not direct MathJax rendering via 
> "http://cdn.mathjax.org/mathjax/latest/
> MathJax.js?
> > config=TeX-AMS_HTML. I understand that what's happening is this, but 
> that's not MathJax. What am I
> doing
> > (thinking) wrong?
> >
>
> Have you tried exporting with a minimal init file and none of your 
> customizations?
>
> --
> Nick
>

-- 
Nick




Re: [O] HTML export for math markup

2017-01-09 Thread Thierry Banel

  
  
Le 09/01/2017 16:28, Lawrence Bottorff
  a écrit :


  I've got an org file with Latex math markup, e.g.
$x_2/y^3$. When I export this to HTML, it produces png files for
each markup and puts them in a subfolder ltximg. Is there any
way to skip this translating to pictures and just use MathJax
directly. I've seen this,
but my setup seems to be defaulted to png picture production,
not direct MathJax rendering via "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML.
I understand that what's happening is this,
but that's not MathJax. What am I doing (thinking) wrong?


LB
  


I use
#+HTML_MATHJAX: align: left etc...
Works well.

Then you can control appearance through CSS. For instance:
.MathJax_Display {
    color: #080;
    margin: 0;
}

Have fun

  




Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
The default behavior with a plain vanilla installation is, indeed, to use
png files and create the ltximg subdirectory. It's not a huge problem, but
I'd prefer it not doing that; instead, using MathJax. Anyone know how to
switch this behavior?

On Mon, Jan 9, 2017 at 12:30 PM, Nick Dokos  wrote:

> Lawrence Bottorff  writes:
>
> > I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I
> export this to HTML, it produces png
> > files for each markup and puts them in a subfolder ltximg. Is there any
> way to skip this translating to
> > pictures and just use MathJax directly. I've seen this, but my setup
> seems to be defaulted to png
> > picture production, not direct MathJax rendering via "
> http://cdn.mathjax.org/mathjax/latest/MathJax.js?
> > config=TeX-AMS_HTML. I understand that what's happening is this, but
> that's not MathJax. What am I doing
> > (thinking) wrong?
> >
>
> Have you tried exporting with a minimal init file and none of your
> customizations?
>
> --
> Nick
>
>
>


Re: [O] HTML export for math markup

2017-01-09 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I export
> this to HTML, it produces png files for each markup and puts them in a
> subfolder ltximg. Is there any way to skip this translating to pictures and
> just use MathJax directly. I've seen this
> , but my
> setup seems to be defaulted to png picture production, not direct MathJax
> rendering via "
> http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML. I
> understand that what's happening is this
> , but that's
> not MathJax. What am I doing (thinking) wrong?

MathJax should be the default behaviour. See `org-html-with-latex'.

Regards,

-- 
Nicolas Goaziou



Re: [O] HTML export for math markup

2017-01-09 Thread Nick Dokos
Lawrence Bottorff  writes:

> I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I export 
> this to HTML, it produces png
> files for each markup and puts them in a subfolder ltximg. Is there any way 
> to skip this translating to
> pictures and just use MathJax directly. I've seen this, but my setup seems to 
> be defaulted to png
> picture production, not direct MathJax rendering via 
> "http://cdn.mathjax.org/mathjax/latest/MathJax.js?
> config=TeX-AMS_HTML. I understand that what's happening is this, but that's 
> not MathJax. What am I doing
> (thinking) wrong?
>

Have you tried exporting with a minimal init file and none of your 
customizations?

-- 
Nick