[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
Moved from https://bugs.launchpad.net/yade/+bug/1814286 to https://gitlab.com/yade-dev/trunk/issues/51 -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols missing

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Robert Caulk
It’s ok to merge that full commit including flowboundingsphere. I will make a new merge request with the periodic insertion images. Le mar. 5 févr. 2019 à 19:15, Janek Kozicki <1814...@bugs.launchpad.net> a écrit : > I think rebasing will work now :) Unless Robert will happen to have a >

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
agreed. Let's merge it. It will be useful in my branch where I add more text to documentation ;) -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols missing in Yade

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
I think rebasing will work now :) Unless Robert will happen to have a conflict in lib/triangulation/FlowBoundingSphereLinSolv.ipp which is in the first commit in this branch. Let us know! -- You received this bug notification because you are a member of Yade developers, which is subscribed to

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Bruno Chareyre
I think we can merge the branch now (without deleting it) since it fixes a number of problem online already. Right? We can keep working on the same branch for further improvement. That's where the rebase question surfaces again maybe? ;) -- You received this bug notification because you are a

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
in formula (3) and (4) I guess that the problem is with \rm, not something else... https://yade- dev.gitlab.io/-/trunk/-/jobs/156658986/artifacts/public/formulation.html in further formulas there is also \curraccel, \nnextvel and \leq By examining

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Bruno Chareyre
[1] replaces \vec by \boldsymbol using Robert's trick in layout's preamble. To me it sounds like a dirty trick to define latex conventions in the layout of web pages but there seem to be no other option. We could not see a problem with \rm, if there is one we can replace it with \text or

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
It looks better and better! :) https://yade- dev.gitlab.io/-/trunk/-/jobs/156522519/artifacts/public/formulation.html now problem is with \ensuremath \sortlines \vec and {\rm ..}. If I recall correctly \rm is deprecated in latex and used to set roman font.

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Janek Kozicki
aah, so it's entire preamble. No wonder that my simple \newcommand replacement did not work. Congrats on finding this! :) -- Janek Kozicki -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Bruno Chareyre
Ok, let us know Robert. @Anton, do you mean that on some recent version at least the equations compile correctly? -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-05 Thread Robert Caulk
Alright, I think I figured out the problem. See [1] and the solution [2]. He adds the latex macros (\def, \let, \newcommand, etc) to his layout.html. I will try this today and report back :-) [1]https://github.com/sphinx-doc/sphinx/issues/726

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
Bruno Chareyre said: (by the date of Mon, 04 Feb 2019 18:39:36 -) > It sounds like the pragmatic move is to replace the macros by what they mean. Search & replace should work, and I think there are very few pages where those macros are used (if not just one page). I've seen an error not

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
Just have a look at errors produced by imgmath https://yade- dev.gitlab.io/-/trunk/-/jobs/156037536/artifacts/public/formulation.html from what I saw they occur in exactly the same places as errors in mathjax (and where pngmath worked). The only difference is that they are more informative, and

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Bruno Chareyre
It sounds like the pragmatic move is to replace the macros by what they mean. Search & replace should work, and I think there are very few pages where those macros are used (if not just one page). Bruno -- You received this bug notification because you are a member of Yade developers, which is

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
I checked on debian Buster (inside chroot). The problem is also present there. -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols missing in Yade documentation

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
Robert Caulk said: (by the date of Mon, 04 Feb 2019 17:07:16 -) > Have you tried replacing \def with \newcommand locally Janek? yes, it did not help. -- Janek Kozicki -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade.

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Anton Gladky
Sorry for causing those problems. Yes, I did not check this change on older distributions. Anyway, the pngmath is deprecated in sphinx_1.8, so this change is necessary for the newer distributions, where 1.8 is used. If imgmath is not working properly, we need to investigate the problem deeper.

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Robert Caulk
>>Hmm, this search in Buster indicates that pngmath is still there, am I missing something? I guess it exists without support based on this warning thrown by make doc: "WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead." Have you tried replacing \def with

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
Yes, I had the same errors locally with imgmath: https://yade- dev.gitlab.io/-/trunk/-/jobs/156037536/artifacts/public/formulation.html -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title:

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-04 Thread Janek Kozicki
Anton Gladky said: (by the date of Fri, 01 Feb 2019 17:46:29 -) > I committed those changes. pngmath is not part of sphinx any more, > so the change is really necessary Hmm, this search in Buster indicates that pngmath is still there, am I missing something?

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Robert Caulk
Strange, I tried reverting that commit [1] and the problem persisted. [1] https://gitlab.com/yade-dev/trunk/commit/34fb5ffef -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Janek Kozicki
Hm, maybe this means that switching to mathjax breaks build on all older ubuntus. I wonder if it is possible to make this switch dependable on python-sphinx version? -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade.

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Janek Kozicki
Anton did this when preparing for debian relelase, and there python- sphinx is 1.7.9. Maybe that is related? -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Janek Kozicki
it was this commit actually: https://gitlab.com/yade- dev/trunk/commit/34fb5ffef7b235274b838583cf8da1b149123e3e -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Robert Caulk
I am unable to identify the source of the problem. I tried reverting [1] and [2], but the problem persists. I tried changing delimiters, I tried replacing \def with \newcommand (despite the fact that we should not have to, see #12), but the problem persists. It is worth reiterating that all PDF

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-03 Thread Robert Caulk
According to [1], \def and \let should both work fine with mathjax [1]http://docs.mathjax.org/en/latest/tex.html#tex-commands I think this has something more to do with the the delimiters [2]. Testing now, will report back. [2] http://docs.mathjax.org/en/latest/tex.html#defining-tex-macros --

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Janek Kozicki
Right of course. I am doing this right now every 15 minutes, and I forgot to tell Robert about that ;) There is also `make doc/fast` but I didn't notice any difference. Chareyre said: (by the date of Fri, 01 Feb 2019 19:25:57 -) > This is not website-related. You can simply «make doc»

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Chareyre
This is not website-related. You can simply «make doc» locally and check html output. It is a good opportunity to play with gitlab pipeline, still, but it will also imply ~8min of full recompile time... B Le ven. 1 févr. 2019 18:20, Robert Caulk <1814...@bugs.launchpad.net> a écrit : > Yes,

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Anton Gladky
Hi guys, I committed those changes. pngmath is not part of sphinx any more, so the change is really necessary Anton Am Fr., 1. Feb. 2019 um 18:25 Uhr schrieb Robert Caulk <1814...@bugs.launchpad.net>: > > Yes, Mathjax seems cleaner. Does it result in better resolution of math > on the web.

Re: [Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Janek Kozicki
> Is there a way to test changes and their effect on the website without > merging to develop branch? Yes, a merge request performs a build, then you can click "artifacts" in the finished build, and then click "browse". So you can examine output before approving the MR. Good find, thanks. if I

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Robert Caulk
Yes, Mathjax seems cleaner. Does it result in better resolution of math on the web. The old equations used to look grainy with pngmath iirc. Is there a way to test changes and their effect on the website without merging to develop branch? -- You received this bug notification because you are a

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Bruno Chareyre
Maybe http://docs.mathjax.org/en/latest/misc/faq.html#does-mathjax- support-tex-macros -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX symbols missing in Yade

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Bruno Chareyre
Before 34fb5ffef all equations in the html were retrieved from png files. With "mathjax instead of pngmath" they are replaced by inline code, which actually works for some of them, but not all of them. You probably found why (#1). -- You received this bug notification because you are a member

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Bruno Chareyre
The problem appeared in [1]. Maybe it fixed the new sphinx while breaking the older one? B [11] https://gitlab.com/yade-dev/trunk/commit/34fb5ffef -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade.

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Robert Caulk
Ah, it is probably worth moving away from pngmath. I guess we just need to rewrite the \defs to accommodate mathjax? -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1814286 Title: Various LaTeX

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Robert Caulk
Ok, after downloading the artifacts from the build, the PDF is built perfectly fine. This must be an issue on the HTML decoding webside, or something like that. -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade.

[Yade-dev] [Bug 1814286] Re: Various LaTeX symbols missing in Yade documentation

2019-02-01 Thread Robert Caulk
In fact, it looks like the compiler is ignoring \defs. For example: \Dtcr [1] is defined by: \def\Dtcr{\Dt_{\rm cr}} Meanwhile other typical latex symbols are printing fine. https://yade-dev.gitlab.io/trunk/formulation.html#estimation-of-by-wave-propagation-speed -- You received this bug