[tex4ht] [bug #429] htlatex: Does not delete intermediate files

2019-07-03 Thread Michal Hoftich
Follow-up Comment #2, bug #429 (project tex4ht): Hi Hilmar, as Karl and Nasser said, there is no cleanup performed by htlatex or other tex4ht scripts by default. The auxilary files are in fact quite important for the correct conversion, so it is not a good idea to delete them after every compilati

[tex4ht] [bug #425] Conflicts between babel and new-accents

2019-06-06 Thread Michal Hoftich
Follow-up Comment #1, bug #425 (project tex4ht): You are right, there should be \:CheckOption{new-accents}\if:Option\else before \Configure{accent}. I've fixed this in the sources. The updated unicode.4ht file is attached. Thanks for the report. (file #314) __

[tex4ht] [bug #426] htlatex mathjax option breaks references

2019-06-06 Thread Michal Hoftich
Follow-up Comment #1, bug #426 (project tex4ht): This is something that is not easily solvable. The labels inside math are not processed by LaTeX at all, so the labels are not saved. MathJax itself supports some form of referencing, when \eqref command is found in the HTML code. So one possible so

[tex4ht] [bug #423] \left and \right inside caption with label cause TeX capacity exceeded when used with hyperref

2019-05-29 Thread Michal Hoftich
Follow-up Comment #3, bug #423 (project tex4ht): The problem is, you may want to expand some macros, while others not. It is possible to disable all expansion, but you cannot automatically detect which macros should be expanded and which not. __

[tex4ht] [bug #423] \left and \right inside caption with label cause TeX capacity exceeded when used with hyperref

2019-05-26 Thread Michal Hoftich
Follow-up Comment #1, bug #423 (project tex4ht): Dear Joel, this issue is caused by the nameref support, which is loaded automatically by hyperref. Each caption, section title and similar stuff is then saved to the auxilary file, in order to be available for the \nameref command. There can be exp

Re: [tex4ht] Presentation at BachoTeX

2019-05-22 Thread Michal Hoftich
Hi all, > I will go to BachoTeX this year, I will have a presentation about > TeX4ht. The registration is still open, I think, so if anybody wants > to see that, or have a face to face conversation, it will be possible. So BachoTeX is over :) I hope my presentation was interesting, I was super n

Re: [tex4ht] How to best find cause of Illegal storage address?

2019-05-16 Thread Michal Hoftich
On Thu, May 16, 2019 at 6:29 PM Nasser M. Abbasi wrote: > > > > > This document has lots of Latex code generated by Maple, > > which still use very old latex font commands, and that is why I > > needed to use enabledeprecatedfontcommands. The strange thing, > > it only failed with tex4ht and not w

Re: [tex4ht] How to best find cause of Illegal storage address?

2019-05-16 Thread Michal Hoftich
Hi Nasser, > --- error --- Illegal storage address > Make4ht: Fatal error. Command tex4ht returned exit code 256 > Isn't it possible to make a smaller example? I think this error should be related to the tex4ht.env processing, so it should happen even

Re: [tex4ht] Bold index entries

2019-05-07 Thread Michal Hoftich
Hi Jürgen, > Now, as far as I can tell, if I just press on each instance the > ebook still has a hyperlinked index with bold entries at the right places - > but it is annoying to have to do this each and every time I compile. Does > anyone know a way around this? Do you still use the workflow

Re: [tex4ht] is it possible to use KaTex with tex4ht?

2019-05-07 Thread Michal Hoftich
Hi Nasser, > Since tex4ht now supports mathjax mode, I was just wondering, > if it is even possible to make tex4ht also support katex mode > as well? i.e. compile the latex file so that the HTML > generated uses Katex for math rendering instead of mathjax. yes, it is possible to support KaTeX. T

[tex4ht] [bug #422] error from pgflibraryfadings when adding tcolorbox with new tex4ht tikz driver. TL 2019

2019-05-03 Thread Michal Hoftich
Follow-up Comment #1, bug #422 (project tex4ht): Hi Nasser. this issue had been fixed by the current version of the dvisvgm4ht driver. It should work for most documents now. Best, Michal ___ Reply to this item at:

Re: [tex4ht] Why tex4ht produces ", for \, instead of space in mathjax mode only?

2019-04-21 Thread Michal Hoftich
Hi Nasser, this is caused by redefinition of commands that caused issues in the TOC. I've changed that to redefine these commands only on the moment something is being written to TOC, so they should work as usual in the normal text. Try the attached mathjax-latex-4ht.4ht file. Best regards, Micha

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-11 Thread Michal Hoftich
Hi Deimi, I've found the issue - it was necessary to insert tex4ht hooks in \AtBeginDocument. The sample on TeX.sx now works with the updated driver. I haven't tested the results with TikZ manual yet. Best, Michal

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-10 Thread Michal Hoftich
Hi Deimi, > > Does it help if you set: > 1. 'dvilualatex' compiler instead of 'latex' (probably you'll need > \usepackage[T1]{fontenc} for TL2019) > 2. \usepackage{luatex85} (for compatibility: pgfsys-dvips.def driver uses > \pdfsavepos macro, while in luatex it's \savepos)? Thanks for the sug

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-10 Thread Michal Hoftich
> > Ah, there seems to be lot of issues. The compilation fails with fatal > error, but most of the document had been generated, up to section "94 > Mathematical Expressions". I've found that when I commented out all math-operator environments containing "`" character in pgfmanual-en-math-parsing.

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-10 Thread Michal Hoftich
> I would really appreciate that! The main difficulty I have is that TeX4ht > hooks into all kinds of macros which results in altered expansion behaviour > which blows up all over the place. For the xcolor problems I have found some > workarounds, prior to your patches, which can be found on my t

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-09 Thread Michal Hoftich
> Thank you very much. Does that also fix the > \AtBeginDocument{\definecolor{...}} issue? Unfortunately the PGF/TikZ manual > still doesn't build with TeX4ht, but that is not related to xcolor now. > It should fix that. The main issue was the color name anyway. But I am sure there are other iss

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-09 Thread Michal Hoftich
Hi Henri, > There is a bug in tex4ht color support which causes a compilation > error when the color name is same as a color scheme name. You would > get the same error with \textcolor{rgb} for example. I hope to fix > that tomorrow. I hopefully fixed the issues. I've updated the sources, the upd

Re: [tex4ht] BUG: xcolor tex4ht

2019-04-08 Thread Michal Hoftich
Hi Henri > > \documentclass{article} > \usepackage{xcolor} > \begin{document} > \textcolor{gray!100}{Lorem ipsum.} > \end{document} > There is a bug in tex4ht color support which causes a compilation error when the color name is same as a color scheme name. You would get the same error with \text

Re: [tex4ht] underline math does not work in tex4ht when in mathjax mode

2019-04-07 Thread Michal Hoftich
Hi Nasser, Bill, > This sounds like a good solution. I do not know if those in the know-how > could implement this in ex4ht if it not too hard. > > I also do not know if I could do what you described using some configuration > in my .cfg. You can put this \Css command to your config file: \Css{s

Re: [tex4ht] underline math does not work in tex4ht when in mathjax mode

2019-04-06 Thread Michal Hoftich
Hi Nasser, > Is this a mathjax issue itself or make4ht is not doing > something right? It is definitely MathJax issue, but I am not sure if they can fix that. Only commands in math are being passed to MathJax, so it would need to detect font properties of the surrounding text to detect if the cur

[tex4ht] Presentation at BachoTeX

2019-04-03 Thread Michal Hoftich
Hi all, I will go to BachoTeX this year, I will have a presentation about TeX4ht. The registration is still open, I think, so if anybody wants to see that, or have a face to face conversation, it will be possible. Best regards, Michal

Re: [tex4ht] about \dag and \ddag in tex4ht with mathjax

2019-04-03 Thread Michal Hoftich
Hi Nasser, > > My question is why \renewcommand did not work, I > remember seeing something like this before, something > to do with order how things are processed? > no, \renewcommand cannot work as it is not preserved during the conversion, so MathJax cannot see that. You must use the configu

[tex4ht] [bug #411] reversemarginpar is ignored

2019-03-25 Thread Michal Hoftich
Follow-up Comment #1, bug #411 (project tex4ht): I've added a support for \reversemarginpar in the HTML format. It will produce the "reversemarginapar" class, which can be styled using CSS. Modified version of the CSS code is used by default, but the result is quite ugly. Better solution is to use

Re: [tex4ht] several bugs and a query

2019-03-25 Thread Michal Hoftich
Dear Alex, > Many thanks for this fix -- and for posting it ahead of time! It works > perfectly as far as I can tell. I've just fixed the issue with footnote anchor in the same size as the footnote text. I hope it was the last bigger issue :) Best regards, Michal

Re: [tex4ht] several bugs and a query

2019-03-19 Thread Michal Hoftich
Dear Alexandre, > I just noticed that TeX Live 2018 has been frozen. I am hoping to submit a > Word document to a publisher before the end of the month. If there is a fix > for the superscript/subscript-in-footnotes bug before then, will there be > some way to patch my version of tex4ht before

[tex4ht] [bug #412] tex4ht \Css code works using standard document class but has no effect using koma-script class

2019-03-15 Thread Michal Hoftich
Follow-up Comment #1, bug #412 (project tex4ht): Hi Nasser, I don't think it was a bug, it was just the fact that different elements were used in configurations for Komascript and base classes. Anyway, since HTML5 provides and elements, the configurations for floats, figures and captions will

Re: [tex4ht] tex4ht Digest, Vol 109, Issue 6

2019-03-15 Thread Michal Hoftich
Dear Alex, > PS - I just noticed another small bug: the Unicode character for a verticle > line (|) is being rendered as a dash (—) in the ODT/DOCX output. > I am finally back from the hiatus. Do you have an example for this behaviour? The following code seems to work correctly: --

Re: [tex4ht] ! Bad register code (65536)., \__regex_query_set:nnn ... \l__regex_curr_pos_int MATHJAX mode

2019-03-13 Thread Michal Hoftich
Hi Nasser, > I know the problem is due to large size of the equation. > Editor tells me it is 208,987 characters long so I have > to remove it. But the question is why this error in mathjax > only? Because l3regex is used to clean-up the math. There are spaces before brackets and other issues o

[tex4ht] [bug #420] The CSS "white-space" property has no value "wrap"

2019-03-13 Thread Michal Hoftich
Follow-up Comment #2, bug #420 (project tex4ht): Thanks for the report, I've updated the sources. Your test file seems to work correctly after the update. ___ Reply to this item at:

Re: [tex4ht] %%~ expands to $TEXMFDIST

2019-03-11 Thread Michal Hoftich
Hi Karl, > TL19, including this change, is currently being pretested -- > https://tug.org/texlive/pretest.html. If anyone has patches to be > included, please let me know asap. I've just installed TL19 pretest and it seems to work well. I was bit worried about Lua 5.3, which has some backward inc

Re: [tex4ht] several bugs and a query

2019-02-18 Thread Michal Hoftich
Dear Alex, I've been busy in the last week, so I was not able to take a look at these issues yet. I hope that things will settle down soon, I will start to process the issue queue then. No need to worry about the number of issues. Best regards, Michal > Just a follow-up about the bug reports/fea

Re: [tex4ht] several bugs and a query

2019-02-09 Thread Michal Hoftich
Dear Alex, could you please add MWEs to questions where it is missing? It will make it easier for us to replicate the issues. I hope to take a look at all of this in next few days. Best regards, Michal

Re: [tex4ht] fyi, few problems with tex4ht and tables

2019-02-03 Thread Michal Hoftich
Hi Karl, > https://tex.stackexchange.com/questions/472629/how-to-make-tex4ht-center-a-long-table-as-it-does-with-table > https://tex.stackexchange.com/questions/472628/how-to-remove-lines-added-above-and-below-table-when-using-tex4ht > https://tex.stackexchange.com/questions/472625/how-to-make-cap

Re: [tex4ht] Problem with mathjax mode rendering \noalign{\medskip} inside math

2019-01-23 Thread Michal Hoftich
Hi Nasser, > I give up. I have no idea what is the problem. I will just compile > this file with SVG. That always works, even if little slower :) I've tested the strange_error.zip on another computer and the compilation ran correctly as well. So the issue remains mysterious. Best, Michal

Re: [tex4ht] Problem with mathjax mode rendering \noalign{\medskip} inside math

2019-01-22 Thread Michal Hoftich
Hi Nasser, > Here is the zip file, it is in this folder > > https://www.12000.org/tmp/012119/ > > Again, the error goes away when I delete some unrelated files from the > folder itself. I kept them all in there for now, since I could not > find out which specific file(s) causing this. And I have n

Re: [tex4ht] Problem with mathjax mode rendering \noalign{\medskip} inside math

2019-01-22 Thread Michal Hoftich
Hi Nasser, > > Is this a mathjax mode issue and it might just need > additional configuation changes in mathjax style file? > > As this is auto-generated code by Maple (which is known to > generate not the best latex), I have no control over it. You just need to provide some definitions for these

Re: [tex4ht] another problem with mathjax mode: Forbidden control sequence found while scanning use of \AltlDisplay

2019-01-22 Thread Michal Hoftich
Hi Bill, > Maybe something in your local system must causing you trouble. tex4ht now provides two native ways to involve MathJax. First one is using MathML, this method is basically the same as what you use. It can be requested using "mathml,mathjax" options. The second keeps LaTeX math unexpande

Re: [tex4ht] another problem with mathjax mode: Forbidden control sequence found while scanning use of \AltlDisplay

2019-01-22 Thread Michal Hoftich
Hi Nasser, I think this is the same issue as the one you had earlier: https://tug.org/pipermail/tex4ht/2018q4/002099.html The modification of source files seems like a best fix to me. Best, Michal

Re: [tex4ht] tex4ht web in Google

2019-01-21 Thread Michal Hoftich
Hi all, I've tested tex4ht page using Google Search Console. It reported the page as "Not mobile friendly", with issues listed as "Text too small", "Viewport not set" and "Clickable elements too close together". I've added the element to tex4ht web and increased the line-height CSS property for t

Re: [tex4ht] problem with mathjax

2019-01-19 Thread Michal Hoftich
> > Thanks for all replies on this. Yes, I ended up editing the latex > by hand and actually removed the bold all together and cleaned it > a little until it compiled. As I did not know what was the problem. > > Most of this code is auto-generated from Scientific Word, which > I use to do my HW's.

Re: [tex4ht] problem with mathjax

2019-01-19 Thread Michal Hoftich
Hi Nasser, > > \[ > {B\boldsymbol{\tau}=}\boldsymbol{b}_{1}{\tau}_{1}\boldsymbol{+b}_{1}{\tau}_{1}% > \boldsymbol{+\cdots+b}_{N}\ {\tau}_{N}% > \] > It seems that the issue is caused by "\ ". I am not sure if it is correct spacing command for math, the correct command for large space is probably

Re: [tex4ht] tex4ht web in Google

2019-01-18 Thread Michal Hoftich
Hi Karl, > Independent of search results, it would be good to keep the wikipedia > page up to date, in a general way (that does not require ongoing > maintenance). Can you make a pass over it with your recent-ish changes > in mind? > Yes, I've added info about HTML5 and corrected math output opti

Re: [tex4ht] tex4ht web in Google

2019-01-17 Thread Michal Hoftich
Hello Wojtek, On Thu, Jan 17, 2019 at 3:53 PM Wojciech Myszka wrote: > > Searching for “tex4ht home page” returns TUG as a first result. > > On the other hand trying to find git page I'm searching simply for tex4ht. It > used to work. yes "tex4ht home page" includes the main tex4ht page (but on

[tex4ht] tex4ht web in Google

2019-01-17 Thread Michal Hoftich
Hi all, I've just found that main tex4ht page (https://www.tug.org/tex4ht/) is not included in the search results when I search for "tex4h" in Google or Duckduckgo. I tried it on several machines, logged in and logged out, I even changed the search language. At first three positions I get the old

Re: [tex4ht] macro containing a Unicode character

2019-01-16 Thread Michal Hoftich
Dear Alex, > Now two and a half years later, I would like to reopen this question, in > particular to ask whether it is possible to keep using a XeLaTeX document > that uses Unicode macros (rather than switching to LuaTeX). Given the amount > of work that has gone into tex4ht in the last couple

[tex4ht] [bug #404] Using label/ref seems to be broken with opendocument export

2019-01-15 Thread Michal Hoftich
Update of bug #404 (project tex4ht): Status:None => Fixed ___ Follow-up Comment #3: The recent make4ht update which should be already included in TeX distributions should fix this is

Re: [tex4ht] Conversion to ODT missing several features

2019-01-09 Thread Michal Hoftich
Hi Paulo, > Is this something I should put in a tex4ht config file? > No, it would need to be included in the main TeX file, so it is not an option. I've found another issue with the angled brackets around the mail. LibreOffice seems to render it incorrectly even if correct characters are used, i

Re: [tex4ht] Conversion to ODT missing several features

2019-01-08 Thread Michal Hoftich
Hi Paulo, > > If you look at the results there are a few issues: > 1. Strange image artifacts at beginning of document; > 2. No colors > 3. Chapter heading lacking proper formatting > > Also, I noticed a few issues on the command line: > Execute script `test.lg' > > > I couldn't find much docume

[tex4ht] [bug #406] The optional argument for \chapter is ignored in TOC with Memoir class

2019-01-06 Thread Michal Hoftich
Follow-up Comment #2, bug #406 (project tex4ht): Thanks Deimi, it seems to do the trick :) ___ Reply to this item at: ___ Message sent via/by Puszcza

Re: [tex4ht] problems using mathjax mode with siunitx package

2019-01-05 Thread Michal Hoftich
Hi Nasser, > I am trying the new mathjax mode with some old latex files > that make heavy use of \usepackage{siunitx} > > None of the siunitx code works in mathjax but works OK > in lualatex and in png or svg for math with make4ht. there is a package that tries to emulate Siutnitx for MathJax:

[tex4ht] [bug #407] Support for the `svg` package

2018-12-27 Thread Michal Hoftich
Follow-up Comment #2, bug #407 (project tex4ht): I've renamed the svg.4ht file to svg-option.4ht and added basic support for the Svg.sty package. I hope everything works. Best, M. ___ Reply to this item at:

[tex4ht] [bug #407] Support for the `svg` package

2018-12-25 Thread Michal Hoftich
URL: Summary: Support for the `svg` package Project: tex4ht Submitted by: michal_h21 Submitted on: Tue 25 Dec 2018 08:17:58 PM EET Category: None Priority: 5 - Normal

[tex4ht] [bug #406] The optional argument for \chapter is ignored in TOC with Memoir class

2018-12-25 Thread Michal Hoftich
URL: Summary: The optional argument for \chapter is ignored in TOC with Memoir class Project: tex4ht Submitted by: michal_h21 Submitted on: Tue 25 Dec 2018 06:00:49 PM EET Category: No

Re: [tex4ht] Very strange problem with tex4ht using mathjax mode. Problem with \ followed by \] on new line. CR being stripped causing problem.

2018-12-20 Thread Michal Hoftich
Hi Nasser, On Thu, Dec 20, 2018 at 8:57 AM Nasser M. Abbasi wrote: > > Problem solved. > > I use filezilla FTP software. Been using it for years with > Its default for AUTO for file type transfer. > > I now changed the file type to be explicit BINARY > and now when I upload the HTML generated, th

Re: [tex4ht] \def does not seem to work in mathjax mode.

2018-12-10 Thread Michal Hoftich
Hi Nasser, > The problem is in the use of \def\st{\sin\theta(t)} > > The latex code might not be the best, but it works > in the other systems. Just add the macro definition to the MathJax configuration as in http://tug.org/pipermail/tex4ht/2018q4/002129.html Best, Michal

Re: [tex4ht] on eqnarray in mathjax mode

2018-12-10 Thread Michal Hoftich
Hi Nasser, > > The question is, is eqnarray supposed to work in mathjax? > googling around I see examples where it works in mathjax on > the net. I've added configurations for eqnarray to MathJax config, thanks for the report. Best, Michal

Re: [tex4ht] MathJax support

2018-12-09 Thread Michal Hoftich
> > But this is severe restriction now that users can no longer > use \Configure{@HEAD} in their .cfg files? > You can use \Configure{@HEAD}{some code}, just not \Configure{@HEAD}{}, because it removes all additions to @HEAD before that point. This is also why you use all those \Configure{@HEAD}{\

Re: [tex4ht] MathJax support

2018-12-09 Thread Michal Hoftich
> May be the order is now messed up from before when it worked? > > Because I am doing additional MathJax.Hub.Config({ in my .cfg, > which does show in HTML, something now went wrong? This all worked > before. I need these additional fixes in my .cfg. > > I am attaching my .cfg file. Can you please

Re: [tex4ht] MathJax support

2018-12-09 Thread Michal Hoftich
> I looked at the HTML generated and see no place where it loads mathjax. > > ie. I see no > > \Configure{@HEAD}{\HCode{ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/

Re: [tex4ht] MathJax support

2018-12-09 Thread Michal Hoftich
> = > (/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/html4-math.4ht) > (/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/html5.4ht)) > (./foo1.aux) > ! Misplaced \cr. > \math@cr@@@ ->\cr > > l.11 \end{align*} > > ? x > == > > It compiles OK using m

Re: [tex4ht] MathJax support

2018-12-09 Thread Michal Hoftich
Hi Nasser, > It looks new updated broke something in tex4ht as I am using same > command as before the updates which always worked. I've forgot to anounce that I updated also latex.4ht, which contains \NewConfigure{MathjaxSource}. It cannot work without this definition. The correct version of lat

Re: [tex4ht] MathJax support

2018-12-06 Thread Michal Hoftich
> I've (finally) updated TL, but I missed tonight's rebuild, so it'll be > yet another day. Sorry for the delay. -k Karl, thanks as always! There is no need to hurry. Best, Michal

Re: [tex4ht] MathJax support

2018-12-04 Thread Michal Hoftich
Hi Nasser,, > Am I doing something wrong? Or may be the updates are not > there yet? It is only in the source, I think Karl will say when it is available in TL. It may take few days. Best regards, Michal

[tex4ht] MathJax support

2018-12-04 Thread Michal Hoftich
Hi all, I've just added new literate source to tex4ht, tex4ht-mathjax.tex. It is a modified version of mathjax-latex-4ht.sty from the Helpers4ht project [1]. I've also added the "mathjax" option to `html4-math.4ht`, so it should be possible to require the MathJax rendering of math using this opti

[tex4ht] [bug #405] Using adjustbox in tex4ht does not work. Is this known limitation?

2018-12-04 Thread Michal Hoftich
Follow-up Comment #1, bug #405 (project tex4ht): I've posted an answer on TeX.sx. I will copy it here as well: You are right, small piece of CSS can fix that: \Preamble{xhtml} \Css{li img{vertical-align:middle;}} \begin{document} \EndPreamble tex4ht doesn't try to match visual appearance of

Re: [tex4ht] multiline equation displays blank when compiling tex4ht using mathjax mode.

2018-12-04 Thread Michal Hoftich
Hi Nasser, > If mathjax does not support multiline environment, is there a way > to configure this using mathjax-latex-4ht.sty somehow? any other > suggestions what to do? It was a bug in mathjax-latex-4ht, I didn't know that images are requested for these environments, so the \VerbMath{multline*

[tex4ht] New features

2018-11-29 Thread Michal Hoftich
Hi all, I've added some new features to tex4ht. They are available in the HTML output mode. The first feature is simpler way to include external CSS and JavaScript files. Two new configurations are available: AddJs and AddCss. They can be used as follows: \Configure{AddJs}{hello.js} \Configure{A

Re: [tex4ht] why \newcommand has no effect when compiling to HTML using mathjax mode, why?

2018-11-21 Thread Michal Hoftich
Hi Nasser, > But my question is: Why \newcommand inside Latex had no effect > when compiling to mathjax but it work in SVG? Because the \newcommand isn't included in HTML so MathJax cannot see it. Moreover, it is quite possible that you will need different command declarations for LaTeX and MathJ

Re: [tex4ht] Problem rendering operator name in HTML when using mathjax mode.

2018-11-18 Thread Michal Hoftich
Hi Nasser, > > I tried to do same Trick like Michal showed and changed my .cfg > to use > > \Configure{@HEAD}{\HCode{ > >MathJax.Hub.Config({ > TeX: { >Macros: { > \unexpanded{ > sc : "\\small\\rm", > sl: "\\it", > LommelS1: "\\LommelS1 ", >

Re: [tex4ht] problem using \sl and \sc in tex4ht when using matghjax mode

2018-11-18 Thread Michal Hoftich
Hi Nasser, > Maplesoft seems to have abandoned working maintaining its > Latex export for some other exotic math rendering software > so no chance this will fixed by them. That's unfortunate! > > I also tried using this class istead > > \documentclass[11pt,enabledeprecatedfontcommands]{scrartc

Re: [tex4ht] Automatic HTF file generation

2018-11-17 Thread Michal Hoftich
> I will parse the .pfb files only when no enc is available. We will see > how it is useful. Worse thing is large number of non-standard glyph > names used in TeX fonts. We need to map each glyph to Unicode, it is > not always easy to find a correct mapping. It turned quite well, it works even for

Re: [tex4ht] Automatic HTF file generation

2018-11-15 Thread Michal Hoftich
> > Encoding vector is always embedded in Type1 font. > > Usually the /Encoding vector in a given Type 1 is only a subset of the > characters available in the font. The only way to know what is there is > to parse the entire file. But there are lots of utilities in this area; > I suspect someth

[tex4ht] Automatic HTF file generation

2018-11-12 Thread Michal Hoftich
Hi all, I've finally finished the Htfgen project [1]. It's objective is to automatize the creation of the HTF font mapping files. These files are used by tex4ht to map character codes in the DVI files to Unicode. There are two new scripts: scanfdfile and dvitohtf. The first one searches for decla

[tex4ht] [bug #404] Using label/ref seems to be broken with opendocument export

2018-11-01 Thread Michal Hoftich
Follow-up Comment #2, bug #404 (project tex4ht): I've added the hyperlink fixing filter to the make4ht ODT format. It is available on Github. It requires updated LuaXML library, where I fixed one critical issue. ___ Reply to this item at:

Re: [tex4ht] big problem with table of content when section titles contain math using mathjax

2018-11-01 Thread Michal Hoftich
Hi Nasser, > If I found one I missed, will email you so you can add it to you > master style file on git. Thanks. I've added the missing commands to the master. Please keep me informed about anything you will find. Best, Michal

Re: [tex4ht] big problem with table of content when section titles contain math using mathjax

2018-10-30 Thread Michal Hoftich
> Your new style file fixed some of the problems in the TOC, > but I see few other entries in the TOC still have problems > when I run it on my main file (not the MWE I gave) > I am sure there will be lot of such commands. > I guess these needs to be added to \fixmathjaxtoc. > Yes > btw, I did

Re: [tex4ht] big problem with table of content when section titles contain math using mathjax

2018-10-30 Thread Michal Hoftich
Hi Nasser, > Does one need to modify something in the mathjax-latex-4ht.sty to > make the TOC show OK? Do I need to modify something in my Latex to > make it work with mathjax? This is the same issue as you had with \left and \right in TOC some time ago. The \int and \, commands must be redefined

[tex4ht] [bug #404] Using label/ref seems to be broken with opendocument export

2018-10-27 Thread Michal Hoftich
Follow-up Comment #1, bug #404 (project tex4ht): It seems that post-processing by Xtpipes haven't been executed on the content.xml file, because it should replace tags with valid OpenDocument elements. Anyway, on my machine Xtpipes replace only some links, they doesn't replace the destinations i

Re: [tex4ht] another strange error when using make4ht with mathjax mode

2018-10-27 Thread Michal Hoftich
Hi Nasser, > > Why place "tabular" inside math, especially inline math? > > > > I use Scientific word. This is very old document for a HW. May be > 10 years old. I must have selected the table in the GUI and then > pressed math mode button. This made SW put a $$ around the table. > > The point is,

[tex4ht] [bug #172] oolatex: Spurious spaces after cross references and citations

2018-10-25 Thread Michal Hoftich
Follow-up Comment #2, bug #172 (project tex4ht): Thank you for the report, the original issue indeed seems to be fixed. The footnote issue can be fixed without need to use sed. I cannot find the source of the spurious spaces, but tex4ht can be instructed to ignore spaces using the \special{t4ht@

[tex4ht] [bug #403] tex4ht fails with scrartcl class when defining \rm command. Argument of \popthree has an extra

2018-10-20 Thread Michal Hoftich
Follow-up Comment #1, bug #403 (project tex4ht): tex4ht patches the old font commands in the code for basic classes. configuration for scrartcl class duplicates this code, otherwise the compilation fails. I don't really understand this patching in the first place, I cannot see any difference whe

Re: [tex4ht] Another problem compiling tex4ht to HTML using mathjax mode. Forbidden control sequence found while scanning use of \AltMathOne.

2018-10-15 Thread Michal Hoftich
Hi Nasser, > Thanks Michal for looking at this. I've just changed the code > as you showed in the file I have, (there were more cases > like the one in the example above). So I added {} around all of them > and now it compiles ok with mathjax. > Fine :) > But what I do not understand, is that yo

Re: [tex4ht] Another problem compiling tex4ht to HTML using mathjax mode. Forbidden control sequence found while scanning use of \AltMathOne.

2018-10-15 Thread Michal Hoftich
Hi Nasser, > > This code comes from auto-generated Latex code. But as I said > above, it compiles OK, except when using mathjax. So it seems > some conflict with may be the style file used or something > mathjax does not like? the issue is with & characters in your inline math. It is not MathJax

Re: [tex4ht] new problem with tex4ht and matjax, table of content with math in section titles

2018-10-11 Thread Michal Hoftich
> And it worked very well. TOC looks OK now with mathjax. > > I hope in texlive 2019 these style files will become part of > texlive. I will add it eventually, even in TL 2018. I have just too long ToDo list :( Best, Michal

Re: [tex4ht] new problem with tex4ht and matjax, table of content with math in section titles

2018-10-11 Thread Michal Hoftich
Hi Nasser, > The problem is in the table of content that shows up. It looks > like this > > https://www.12000.org/tmp/101018/toc.jpg > > The command used to compile it is > > It seems related to mathjax, since when I compile > the same file using my old .cfg file, which does > not use mathjax but

Re: [tex4ht] Question on using .cfg and \DeclareGraphicsExtensions

2018-10-10 Thread Michal Hoftich
Hi Nasser, > The use of \DeclareGraphicsExtensions{.svg,.png} is needed > to allow the code below it to work. > > The above works well, as long as I make sure to > add > > \usepackage{graphicx} > > in each Latex file which is being compiled by make4ht, > otherwise will get an error you can use \@

Re: [tex4ht] problem using "\" inside verbatim in make4ht mathjax mode

2018-09-29 Thread Michal Hoftich
Hi Nasser, > > "There are two exception to this rule. First, > MathJax supports the \ref macro outside of math-mode" > > The good thing, it seems this is limited to this only. > > something must be special about "\ref". > MathJax supports cross-references, so it is understandable. Best, Michal

Re: [tex4ht] problem using "\" inside verbatim in make4ht mathjax mode

2018-09-27 Thread Michal Hoftich
Hi Nasser, > Is there a way to resolve this issue? May be use different > verbatim class when using mathjax than not? > > There is no such problem when using make4ht with svg or > png. Only when using mathjax. > > This will be a problem if mathjax would look inside verbatim > and try to interpret

Re: [tex4ht] trying to understand how to use mathjax in tex4ht

2018-09-27 Thread Michal Hoftich
Hi Nasser, > I do not know if Michal wanted to also add this to his > style file or not. At least if this could be made an option, > that will be good. > I've added that option to the mathjax package, hope it works. Best regards, Michal

Re: [tex4ht] Epub index entries with umlauts (and other special characters)

2018-09-19 Thread Michal Hoftich
Hello Jürgen, > > It did work - thanks! I've implemented it in my actual ebook file (not just > the test file): > > https://drive.google.com/open?id=1gt7eQDAciKNx_n1eqktKX0TGd1jNb5nQ > > For comparison, here is the PDF version: > > https://drive.google.com/open?id=11bjQXdV5Mm79Z0voGxvaKWkDTsmbdvQ

Re: [tex4ht] Epub index entries with umlauts (and other special characters)

2018-09-19 Thread Michal Hoftich
Hello Jürgen, > So... what am I still doing wrong? The issue is of course with the diacritics. The text used in the index entry is used in command definition used for cross-referencing. Because you use TeX commands for diacritics (like \"o), it produces an error. It works with direct Unicode char

Re: [tex4ht] How to change the dvisvgm magnification option with the new make4ht hashing mode?

2018-09-16 Thread Michal Hoftich
Hi Nasser > Make4ht will end making calls such as > > dvisvgm -v4 -n --exact -c 1.15,1.15 -p 2-7,9-21,23-26,etc... > > And I want to change the -c option above to make the math little > larger. > you can pass options to filter using `filter_settings` function in the .mk4 file. Like this: filter

Re: [tex4ht] tex4ebook and imakeidx - no hyperlinked index

2018-09-16 Thread Michal Hoftich
> Thanks for the advice. > > However, I am using MiKTeX on a Windows 10 machine (using cygwin for the > occasional Linux commands), and the installation instructions don't seem to > work using either the Windows command terminal or cygwin (neither finds a > "TEXMFHOME" directory, and they cannot

Re: [tex4ht] using -d folder with make4ht issue

2018-09-14 Thread Michal Hoftich
Hi Nasser, >> >> Since the whole point of using -d is to keep the current folder >> where the latex file is clean and move all the generated files >> during the compile to the child folder, it is possible to change >> this behaviour to make it use "mv" instead of "cp" ? No, the point of the -d op

Re: [tex4ht] tex4ebook and imakeidx - no hyperlinked index

2018-09-12 Thread Michal Hoftich
Hello Jurgen, > I am new to this list and can at best be described as "casual LaTeX user" - I > use it every year or two for some minor writing project, and then put it > aside again (promptly forgetting many of the technical details in the > process). For my current writing project, I need to

Re: [tex4ht] two additional issues converting latex to HTML with mathjax.

2018-09-11 Thread Michal Hoftich
Hi Nasser. > So If I can learn how to make one work in the .cfg file so that mathjax > renders it OK, I'll add the rest myself. Here is an example of two > such cases: MathJax has in contrast to tex4ht extensive documentation, so I am sure you should be able to find some examples here. The trick

Re: [tex4ht] make4ht with mathjax and \setlength{\fboxsep} problem

2018-09-10 Thread Michal Hoftich
Hi Nasser, On Mon, Sep 10, 2018 at 5:37 PM, Nasser M. Abbasi wrote: > Does make4ht support for mathjax include \setlength{\fboxsep}? > > This MWE does not render correctly using mathjax but it does > when not using mathjax: This is the same issue as in the previous mail. MathJax supports just s

Re: [tex4ht] adding support for \relax to make4ht mathjax style?

2018-09-10 Thread Michal Hoftich
Hi Nasser, > I found small problem. > > Auto generated latex code sometimes uses \relax, and this seems > not to be supported by the mathjax make4ht style file. this is a MathJax issue, tex4ht just passes the literal LaTeX math input to the HTML and it is then up to MathJax how it proceeds it. In

Re: [tex4ht] trying to understand how to use mathjax in tex4ht

2018-09-08 Thread Michal Hoftich
> > Well done Michal. The new mathjax-latex-4ht.sty you posted > fixed the problem. > > I will start testing make4ht and mathjax on other larger latex > files I have. Will let you know if I find any new problems. Great! I hope it will work on your files, I will add it to the sources if everything

<    2   3   4   5   6   7   8   9   10   11   >