Re: [O] Equation references in HTML export

2018-01-19 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > Nicolas Goaziou writes: >> Could you write a short entry in ORG-NEWS to advertise it? > Done in the attached patch. Applied. Thank you. Regards, -- Nicolas Goaziou0x80A93738

Re: [O] Equation references in HTML export

2018-01-18 Thread Eric S Fraga
On Thursday, 18 Jan 2018 at 22:09, Thibault Marin wrote: > Thanks, if there is a mechanism to alter the preamble when creating the > image, that may be a preferable approach. I'll try to look into this. Have a look at org-format-latex-header. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.6

Re: [O] Equation references in HTML export

2018-01-18 Thread Thibault Marin
> To avoid having to hack the code, you could try using the mathtools > package and ask it to only number equations that are referenced: > > \usepackage{mathtools} > \mathtoolsset{showonlyrefs} Thanks, if there is a mechanism to alter the preamble when creating the image, that may be

Re: [O] Equation references in HTML export

2018-01-17 Thread Thibault Marin
Nicolas Goaziou writes: > Could you write a short entry in ORG-NEWS to advertise it? Done in the attached patch. Thanks >From 7c59f34ccd19278f10be399645f641b791e7f41b Mon Sep 17 00:00:00 2001 From: thibault Date: Wed, 17 Jan 2018 21:08:59 -0600 Subject: [PATCH] ORG-NEWS: Add note about links to

Re: [O] Equation references in HTML export

2018-01-17 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > I left the math check in the attached patch for now. Please let me know > if you would like me to remove it. I have no strong opinion about it. For the time being we can keep it, and remove it later if it ever gets in the way. I applied your patch. Thank you.

Re: [O] Equation references in HTML export

2018-01-16 Thread Eric S Fraga
On Tuesday, 16 Jan 2018 at 19:09, Nicolas Goaziou wrote: > Thibault Marin writes: [...] >> - In non-MathJax modes, I currently pre-process the latex environment to >> change equation environments to their * version, >> e.g. "\begin{equation}" -> "\begin{equation*}". This is to prevent >>

Re: [O] Equation references in HTML export

2018-01-16 Thread Thibault Marin
Hi, thanks for the review. Please find attached an updated patch. > I guess so. OTOH, I assume latex environments are always math > environments. One can use LaTex export blocks for "regular" LaTeX. I left the math check in the attached patch for now. Please let me know if you would like me to

Re: [O] Equation references in HTML export

2018-01-16 Thread Nicolas Goaziou
Hello, Thibault Marin writes: >> You may be right. In this case, we may use \eqref if MathJax is >> going to be used (like your initial patch did), and do the above >> otherwise. > > OK, I think that would work. To summarize, here are the different > outputs under MathJax and the other modes: >

Re: [O] Equation references in HTML export

2018-01-10 Thread Thibault Marin
Hi, > You may be right. In this case, we may use \eqref if MathJax is > going to be used (like your initial patch did), and do the above > otherwise. OK, I think that would work. To summarize, here are the different outputs under MathJax and the other modes: - MathJax mode: - Environment:

Re: [O] Equation references in HTML export

2018-01-09 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > To make sure I understand the desired HTML output, do you mean that > instead of producing this HTML: > , > | \begin{align} > | \label{eq:orgbfedefe} > | 1 + 1 = 0 > | \end{align} > ` > and relying on MathJax to manage references, we should produce somethi

Re: [O] Equation references in HTML export

2018-01-07 Thread Thibault Marin
Hi, thank you for the review. > I'm not convinced that inserting label and, more importantly, > caption within the environment is the way to go. For example, that > will not work when `org-html-with-latex' is set `verbatim'. Couldn't > we simply wrap a HTML label and caption above, or below, the

Re: [O] Equation references in HTML export

2018-01-06 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > From 094df613ec5fd05b6d2124bc45e6f9a8cbef92e5 Mon Sep 17 00:00:00 2001 > From: thibault > Date: Thu, 4 Jan 2018 21:23:59 -0600 > Subject: [PATCH] ox-html.el: Add MathJax label and reference to equations in > HTML export Thank you. Some comments follow. > * lis

[O] Equation references in HTML export

2018-01-04 Thread Thibault Marin
>From 094df613ec5fd05b6d2124bc45e6f9a8cbef92e5 Mon Sep 17 00:00:00 2001 From: thibault Date: Thu, 4 Jan 2018 21:23:59 -0600 Subject: [PATCH] ox-html.el: Add MathJax label and reference to equations in HTML export * lisp/ox-html.el (org-html-format-latex): Add "\label" to latex environment as don