Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-21 Thread Michal Hoftich
Hi Nasser, > > Or may be becuase on VBox, only one core can be used (as far as I know) > and make4ht checked for this, and that is why it used j1 while on > windows linux subsystem more cores can be used and it used all available > there? > > My PC happens to have 6 cores actually. > > In this ca

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-21 Thread Michal Hoftich
> > The speed is AMAZING !! minutes now instead of hours. It might be due to > the use of > > make -j6 -f try-images.mk > > or something else. I do not know what magic Michal did, but now > svg is generated so fast and not only that, the math issue I saw before, are > gone now (may be the pic-al

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-21 Thread Michal Hoftich
> > I checked today at work. Cygwin inherits the environment from > Windows. Don't know whether it works with other releases than > Windows 7. > Thanks Reinhard, I've added this code to the make4ht extension. Best, Michal

Re: [tex4ht] Where to put .lua files so that make4ht sees them?

2018-08-21 Thread Michal Hoftich
Hi Nasser, On Tue, Aug 21, 2018 at 8:10 AM, Nasser M. Abbasi wrote: > I've been trying to integrate new make4ht build process using hashing > to my makefiles. > > But I can't figure where to put dvireader.lua and dvisvgm-hashes.lua > so that they will be seen by make4ht. > You can also just us

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-20 Thread Michal Hoftich
Hi Nasser, > > Thank you again Michal; > > I do not understand why it works for you and it hangs for me. > > I made a small movie so you can see. This is animated GIF file, > so please click on this in your browser to see the movie > > https://www.12000.org/tmp/hangs/movie.gif > > > When I compil

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-20 Thread Michal Hoftich
Hi Martin > > Just a first observation: If I understand the dvireader script correctly, it > reads all bytes following a "bop" command until the "eop" value 140 is > reached. Since many DVI commands require additional parameters, it's likely > that one of these bytes is 140 as well so that the MD5

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-20 Thread Michal Hoftich
> I got the chance now to try it. > > It still hangs for me. Does it not hang on your system? > > I've put a zip file with all you code, using your new dvisvgm-hashes.lua > and a large latex file to try it on. The zip contains: > I was able to compile this file and even the first one (index.tex) (

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-20 Thread Michal Hoftich
Hi Reinhard, > > The advantage of make is not only that it can run processes in > parallel but that it only invokes a program when the source is newer > than the target. If pages can be processed separately, this saves an > enourmous amount of time. The processing is much slower when separate c

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-19 Thread Michal Hoftich
Hi Reinhard, > Hi Michal, > if you use -j without an argument make will try to do everything at > the same time. This leads to zillions of processes and open > files. It's better to specify the number of available CPUs: > Ah, this explains why my computer freeze for 20 minutes when I tried Nasse

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-19 Thread Michal Hoftich
> When "-p 1-5"? instead of "-p 1-" only? > > Is that becuase you know only 5 pages in each of these files > you are processsing? Just wondering. > We are using only pages that are really needed for the compilation. In the subsequent compilations only changed images should be requested. > > I was

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-19 Thread Michal Hoftich
> > It might be a linux shell piping issue, since your are second large > number of file using > destination file I noticed. > > I made sure the input latex file I gave it try_1.tex is not too > large, so not to run into the dvisvgm overflow problem. This file > has only 1,000 pages and may be 5,0

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-18 Thread Michal Hoftich
> However, technically it shouldn't be necessary to convert all math fragments > every time the document is processed. In the (proprietary) infrastructure at > our university we only convert the portions that have actually changed. This > is simply done by using md5-based file names computed from t

Re: [tex4ht] DVI error: page count in postamble doesn't match actual number of pages

2018-08-18 Thread Michal Hoftich
On Sat, Aug 18, 2018 at 12:52 PM, Nasser M. Abbasi wrote: > > I tried max_count=10, it still failed. Tried max_count=50, it still failed, > then tried max_count=100, it still failed. How large can this counter be > and still be safe? > Sorry, I missed that in this case no images were generated,

Re: [tex4ht] DVI error: page count in postamble doesn't match actual number of pages

2018-08-18 Thread Michal Hoftich
Hi Nasser, >> >> The reason for the mentioned error is a limitation of the DVI format. >> The field in the postamble holding the total number of pages is a 16-bit >> value, i.e. if the document consists of more than 65535 pages, there's a >> number overflow resulting in a mismatch between this val

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-17 Thread Michal Hoftich
Hi Nasser, > --- foo.tex- > \documentclass[11pt]{article} > \usepackage{amsmath,mathtools,amssymb} > > %fix for Maple bad latex generated > %see > https://tex.stackexchange.com/questions/191479/how-to-automatically-convert-cases-to-begincases-endcases > > \let\amscases\cases > \makeatlett

Re: [tex4ht] what is the fastest way to convert large document to HTML?

2018-08-16 Thread Michal Hoftich
Hi Nasser, > I am still struggling with very slow latex to HTML conversion > for large document with lots of math. > > using svg for math, the bottleneck is always dvisvgm. > > For a document of 4,000 pages, with about 50,000 math expressions, it > takes 8 hrs on Linux in a Vbox and 2.5 hrs on PC

[tex4ht] ODT fixes

2018-07-04 Thread Michal Hoftich
Hi all, I am playing with the ODT output and the OdfValidator [1]. The validator reported lot of bugs for the tex4ht output. Main issue were wrong DTD declarations, missing mimetype file and lot of issues with Math - wrong mime type, issues caused by math: prefix etc. I hope that I fixed all of th

Re: [tex4ht] %%~ => $TEXMFDIST

2018-06-29 Thread Michal Hoftich
Thanks Karl, that looks great! > > I know that this would be a big/incompatible change (diff below, not > committed anywhere yet). However, I'm guessing that no one but Eitan > ever created significant personal tex4ht.env files, especially ones > relying on %%~. > I think I've created few customi

Re: [tex4ht] TikZ drivers

2018-06-29 Thread Michal Hoftich
> Tikz is (sort of) still maintained. Have/can you submit patches to make > the default driver work better? --thanks, karl. There is an old bug report about broken tex4ht TikZ driver: https://sourceforge.net/p/pgf/bugs/327/ It still wasn't fixed :/ I will make a pull request, but I would like to

[tex4ht] TikZ drivers

2018-06-28 Thread Michal Hoftich
Hello all, I've set up a Github repo with two alternative drivers for TikZ: https://github.com/michal-h21/dvisvgm4ht The default driver distributed with TikZ has some issues, most notably it produces compilation errors when it is loaded, but it can also break the text formatting in the document

Re: [tex4ht] [bug #394] Support for oolatex on Debian

2018-06-27 Thread Michal Hoftich
>> >> I didn't follow (or understand) which path you need to >> find but kpsewhich -expand-var=$TEXMFDIST gives the main >> miktex root on my system. > Thanks Ulrike, $TEXMFDIST seems to work in Miktex. I've found that I had broken Miktex installation on a test machine, so it reported wrong path,

Re: [tex4ht] [bug #394] Support for oolatex on Debian

2018-06-26 Thread Michal Hoftich
On Tue, Jun 26, 2018 at 1:36 AM, Reinhard Kotucha wrote: > On 2018-06-25 at 20:59:26 GMT, Karl Berry wrote: > > > Follow-up Comment #4, bug #394 (project tex4ht): > > > > Using SELFAUTOPARENT at all will not work on Debian, as things > > stand. It's easiest to hardwire it to /usr/share/texlive

[tex4ht] [bug #394] Support for oolatex on Debian

2018-06-25 Thread Michal Hoftich
Follow-up Comment #3, bug #394 (project tex4ht): OK, it was quite easy, so the development version of make4ht now completely bypass t4ht for the ODT output. It can be requested using make4ht -f odt filename.tex It also fixes other things, like translation of character XML entities to Unicod

[tex4ht] [bug #394] Support for oolatex on Debian

2018-06-25 Thread Michal Hoftich
Follow-up Comment #2, bug #394 (project tex4ht): Thanks Karl. I am working on a new ODT support in make4ht, I've already replaced the code for packing the ODT file. I can also find a correct path using kpse.var_value("SELFAUTOPARENT") from Lua and call xtpipes directly, without need to involve t4h

[tex4ht] [bug #396] Issue with nested tables, array package and ooffice output

2018-06-15 Thread Michal Hoftich
URL: Summary: Issue with nested tables, array package and ooffice output Project: tex4ht Submitted by: michal_h21 Submitted on: Fri 15 Jun 2018 03:51:52 PM EEST Category: None

[tex4ht] [bug #395] Possible issues with \write16

2018-06-11 Thread Michal Hoftich
Follow-up Comment #5, bug #395 (project tex4ht): OK, I've changed the number to 9, I hope it is high enough :) Only in tex4ht.sty, because other definitions are used only in the build. ___ Reply to this item at:

[tex4ht] [bug #395] Possible issues with \write16

2018-06-11 Thread Michal Hoftich
Follow-up Comment #3, bug #395 (project tex4ht): So I hopefully fixed \write16 in .4ht files used in the document compilation. Some still remain, but only in the build files, so it should be OK. I've created a macro: \def\writesixteen#1{\immediate\write1616{#1}} I had to add its definition to

[tex4ht] [bug #395] Possible issues with \write16

2018-06-11 Thread Michal Hoftich
Follow-up Comment #2, bug #395 (project tex4ht): Thanks Karl. It seems that it is intended to print to both the terminal and the log file. It prints for example this message: :: TeX4ht info is available in the log file

[tex4ht] [bug #395] Possible issues with \write16

2018-06-08 Thread Michal Hoftich
URL: Summary: Possible issues with \write16 Project: tex4ht Submitted by: michal_h21 Submitted on: Fri 08 Jun 2018 03:50:05 PM EEST Category: None Priority: 5 - Normal

[tex4ht] [bug #394] Support for oolatex on Debian

2018-05-29 Thread Michal Hoftich
URL: Summary: Support for oolatex on Debian Project: tex4ht Submitted by: michal_h21 Submitted on: Mon 28 May 2018 02:40:33 PM EEST Category: None Priority: 5 - Normal

Re: [tex4ht] what would cause " Can't close file `index.tmp' (file is not open)" --- error --- Illegal storage address

2018-05-29 Thread Michal Hoftich
Hi Nasser, > Thank you Reinhard for trying it and confirming. I am glad > the bug, whatever caused it, is fixed in TL 2018. I > should updgrade to TL 2018 also. > I can confirm that I don't get this error with TL 2018 as well. I don't know what could cause this issue to be fixed, to be honest. I

Re: [tex4ht] what would cause " Can't close file `index.tmp' (file is not open)" --- error --- Illegal storage address

2018-05-25 Thread Michal Hoftich
Hi Nasser, > Found the problem ! > > It is > \usepackage{pdfpages} > > The funny thing I knew about this issue with this > package and tex4ht long time ago, but I forgot about it > earlier today when I added the pdfpages package > in order to use it in non-tex4ht mode. > I was working on

[tex4ht] XeTeX support

2018-05-08 Thread Michal Hoftich
Hi al, I've just updated Unicode support for XeTeX. I've changed quite a lot of things under the hood, but the good thing is that Unicode characters used in macros defined in the preamble or in the included packages should now work. There was a issue that strings defined by Babel or Polyglossia

[tex4ht] [bug #392] make4ht crashes, error code 256, when using arev with bold font

2018-04-16 Thread Michal Hoftich
Follow-up Comment #1, bug #392 (project tex4ht): I've posted an answer with at TeX.sx. I've also updated the sources. There is one huge issue, it seems that spaces aren't recognized by tex4ht, I think this must be an issue with some parameters in the font file. _

[tex4ht] make4ht and tex4ebook v0.2 released

2018-04-09 Thread Michal Hoftich
Hello all, I've just uploaded make4ht and tex4ebook version 0.2 to CTAN. They will be available in TL 2018. There is a lot of new features: make4ht: - Added support for output format selection. Supported formats: html5 (default), xhtml, odt. - Added support for extensions. They can modify the b

Re: [tex4ht] "page is empty" messages. But nothing seems wrong in the HTML

2018-04-08 Thread Michal Hoftich
Hi Nasser, I am glad that you've found a solution for speed up of the process. I am still curious why the compilation time on Windows is so insanely slower. Best regards, Michal

Re: [tex4ht] Problem with biblatex, htlatex and TeXlive 2018

2018-04-06 Thread Michal Hoftich
Hello Phillipe, > > I'm using TeXlive 2018 for testing and I've found a problem with htlatex and > biblatex. Attached file is an example. Commmand htlatex doc3 products the > message : > > (/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/biblatex.4ht > ! Argument of \blx@bibliography has an

Re: [tex4ht] "page is empty" messages. But nothing seems wrong in the HTML

2018-04-06 Thread Michal Hoftich
> Are you saying it should be > > Make:htlatex{} > Make:htlatex{} > #Make:htlatex{} --> remove this? > Make:tex4ht{} > Make:t4ht{} > Yes. There is another Make:htlatex {} before this block. Or even if mode=="draft" then Make:htlatex {} else Make:htlatex {} Make:htlatex {} Make:htlatex {} end Mak

Re: [tex4ht] "page is empty" messages. But nothing seems wrong in the HTML

2018-04-06 Thread Michal Hoftich
Hi Nasser, > May be I just have to switch to Linux. But I have apps > I need to use on windows, that is why I am stuck on windows. one slight issue I've found with your setup is that you use Make:htlatex {} four times in your setup, which is more than necessary, you need three compilations on the

Re: [tex4ht] "page is empty" messages. But nothing seems wrong in the HTML

2018-04-05 Thread Michal Hoftich
> It took me about one week to compile 205 latex files. Some are > few thousands of pages with lots of math. I have 16 GB RAM PC, > intel i7-3930k CPU running windows 7. Using cygwin to build now. > > Lualatex finishes very fast. may be Few minutes. But tex4ht is > the one that takes sooo long. >

Re: [tex4ht] "page is empty" messages. But nothing seems wrong in the HTML

2018-04-05 Thread Michal Hoftich
Hi Nasser, On Thu, Apr 5, 2018 at 2:43 AM, Nasser M. Abbasi wrote: > I am just curious, why sometimes I see, when compiling > with tex4ht, using SVG for math, messages that says > > processing page n > page is empty --> > > I see so many of them. Interspersed between not empty page

Re: [tex4ht] why can't this one line in pgfsys-tex4ht.def be corrected after so many years?

2018-04-03 Thread Michal Hoftich
Hi Nasser, > I read your post before, many times, but I do not understand > it. I do not understand how to use it and where and to replace > what with it. I am taking about the second part of your > post under "Edit 2017/11/11.". i.e. where you show > the file pgfsys-tex4ht.def. But what is one su

Re: [tex4ht] DVI error: stack empty at pop command, with tex4ht, only when using \usepackage[libertine]{newtxmath}

2018-04-02 Thread Michal Hoftich
Hi Nasser, On Mon, Apr 2, 2018 at 7:24 AM, Nasser M. Abbasi wrote: > I just found new problem. Using tex4ht on TL 2017. > > On one file I have, I can get tex4t to show this error > > > .. > processing page 183 > graphic size: 63.8874pt x 26.5726pt (22.4538mm x 9.33921mm) > ou

Re: [tex4ht] htlatex dvipng including cmr-10-10.png on working dir

2018-04-02 Thread Michal Hoftich
Hello Carlos, > > I ran the above with different conf files but the result was always the same > with utf8 and \maketitle > > Of course, on the above example the most noticeable difference with other > documents that exhibit the same problem, is the image itself , which in this > case is cmr-10-10

Re: [tex4ht] why can't this one line in pgfsys-tex4ht.def be corrected after so many years?

2018-03-31 Thread Michal Hoftich
Hi Nasser, > THis issue is known since June 2014. > Is there any technical reason why this one line can't be changed after > almost 4 years? This file is distributed with TikZ, we cannot fix it ourselves. Maybe the issue in their issue tracker is too old and the new messages here aren't visible.

Re: [tex4ht] should nameref.4ht be TL sources for tex4ht?

2018-03-31 Thread Michal Hoftich
Hi Nasser, > > I just did fresh install-tl on new cygwin system (under windows) and > found this one file is missing, but should it have been in TL > source tree? Since the above post is from 2016. > > So I put a copy I had of nameref.4ht in this folder (cygwin) > >/usr/local/texlive/2017/tex

[tex4ht] [bug #390] problem using new added support for package{bera} in tex4ht

2018-03-27 Thread Michal Hoftich
Follow-up Comment #1, bug #390 (project tex4ht): There was a missing htf file for monospaced bera font in T1 encoding. I've added it to the tex4ht sources and added its contents to your TeX.sx question. ___ Reply to this item at:

[tex4ht] MathJax-node-page

2018-02-20 Thread Michal Hoftich
Dear all, I've added a new feature to the development version of make4ht (it works in tex4ebook as well). MathJax provides tool named MathJax-node-page [1] for Node.js which can pre-compile a HTML document containing MathML or raw LaTeX to SVG or pure HTML+CSS. This means that the resulting HTML l

Re: [tex4ht] \TeX -> TeX

2018-02-18 Thread Michal Hoftich
On Mon, Feb 19, 2018 at 12:06 AM, Karl Berry wrote: > Does anyone know if there is an easy way to make htlatex generate a > plain text "TeX" for \TeX, ditto "LaTeX" for \LaTeX? I mean, a "native" > way at the tex4ht level, rather than redefining the macros in TeX or > postprocessing the HTML with

Re: [tex4ht] bera support

2018-02-18 Thread Michal Hoftich
Hi Karl, > > https://tex.stackexchange.com/q/415418/2891 > > Reading that, Nasser apparently had trouble with these new files. > Is it settled? Should I push them to TL? > yes, you can push it. The issue was caused by Markdown rendering on TeX.sx, the blank lines at the end of the files were

[tex4ht] [bug #378] Wrong MathML output for numbers

2018-02-14 Thread Michal Hoftich
Follow-up Comment #3, bug #378 (project tex4ht): I've created a new library for make4ht, `make4ht-domfilter`. It can modify the document's DOM using Lua functions. The as well as issue can be fixed using `joincharacters` filter: local domfilter = require "make4ht-domfilter" local process = d

[tex4ht] [bug #387] New commands for semantic elements

2018-02-07 Thread Michal Hoftich
URL: Summary: New commands for semantic elements Project: tex4ht Submitted by: michal_h21 Submitted on: Wed 07 Feb 2018 03:45:13 PM EET Category: None Priority: 5 - Nor

Re: [tex4ht] Getting correct MathML for multi-character symbols

2018-02-02 Thread Michal Hoftich
Hi Bill, On Thu, Feb 1, 2018 at 10:04 PM, William F Hammond wrote: > The discussion about correct MathML output for numbers bring this old issue > back to me. Take, for example, the common math (though not engineering) > symbol "Hom". Let's assume we want it to become -- although some may > wi

Re: [tex4ht] [bug #378] Wrong MathML output for numbers

2018-02-02 Thread Michal Hoftich
Hi Deimi, > There is a section "Digits into Numbers" > in tex4ht-xhtmml-xtpipes.tex file. > If I read it correctly, the code deals with > merging "mn" nodes. Apparently Eitan's approach > was to postprocess html file with xtpipes (and not to fix c-code). that's great observation! I can see

[tex4ht] [bug #378] Wrong MathML output for numbers

2018-02-01 Thread Michal Hoftich
Follow-up Comment #2, bug #378 (project tex4ht): It comes from tex4ht-mathml.tex, line 3149: \Configure{MathClass}{7}{*}{<\a:mathml mn>}{}{0123456789} This configuration creates template that is passed to the DVI file and tex4ht applies it to math class 7. I don't know what \Configure{FormulaCla

Re: [tex4ht] [bug #378] Wrong MathML output for numbers

2018-02-01 Thread Michal Hoftich
> (Of course, you meant to say "$15$ produces".) > Sure, it was too late when I wrote that yesterday :( > But, yes, this is a significant error that should have a high priority for > correction. > This kind of error does not normally show upon rendering in a browser. It's > important, > however,

[tex4ht] [bug #378] Wrong MathML output for numbers

2018-01-31 Thread Michal Hoftich
URL: Summary: Wrong MathML output for numbers Project: tex4ht Submitted by: michal_h21 Submitted on: Thu 01 Feb 2018 01:40:06 AM EET Category: None Priority: 5 - Normal

Re: [tex4ht] \usepackage{niceverb} conflicts with tex4ht

2018-01-16 Thread Michal Hoftich
> This made think of some idea: It will be nice if we > can have place on the internet, which has the current > "official" unmodified texlive installation running, where > one can go to web page, and paste a file and compile it > there. > Doesn't Overleaf use the relative up to date TL? It is poss

Re: [tex4ht] \usepackage{niceverb} conflicts with tex4ht

2018-01-15 Thread Michal Hoftich
Hi Nasser, > I found another strange problem that only shows in > tex4ht. > I cannot reproduce your issue, but I think that the cause may be that niceverb package makes some characters active. The apostrophe might be among them. This happens at the beginning of the document, after the preamble

Re: [tex4ht] Why tex4ht changes apostrophe to Right Single Quotation Mark?

2018-01-15 Thread Michal Hoftich
> Thanks Michal. I did a quick test on my main makefile > and it works now. > > Changed the file > > /usr/local/texlive/2017/texmf-dist/tex4ht/ht-fonts/unicode/lm/lm-ts1.htf > > With the file you attached. Problem seems to be fixed now. Fine, the fix should be in TL soon :) > > ps. for some

Re: [tex4ht] Why tex4ht changes apostrophe to Right Single Quotation Mark?

2018-01-15 Thread Michal Hoftich
Hi Nasser, > upquote works. It fixes ' in verbatim. _but_ when adding > the --lua option, it no longer works. something breaks. it seems that upquote loads different fonts with LuaTeX, it requires the textcomp package. The tex4ht configuration contained wrong character for \textquotesingle, it i

Re: [tex4ht] superscript with tex4ht

2018-01-11 Thread Michal Hoftich
Dear Alex, > When I have `\textsuperscript{r}` in my document, tex4ht produces output > that elevates the "r" not by using Word's "superscript" feature (Format > > Font... > Effects > Superscript). Instead it seems to decrease the font size > manually (from 12pt to 9.5pt) and elevate it some othe

Re: [tex4ht] Why tex4ht changes apostrophe to Right Single Quotation Mark?

2018-01-09 Thread Michal Hoftich
Hi Nasser, >> What do I need to do to keep apostrophe as apostrophe >> in the HTML? this is the default LaTeX behavior, you will get the quotation mark even in PDF. You may try to use the `upquote` package, which will fix this issue in verbatim. Best regards, Michal

[tex4ht] [bug #376] Biblatex 3.10

2018-01-08 Thread Michal Hoftich
URL: Summary: Biblatex 3.10 Project: tex4ht Submitted by: michal_h21 Submitted on: Mon 08 Jan 2018 10:02:27 AM EET Category: None Priority: 5 - Normal S

Re: [tex4ht] Problem with hyperref

2017-12-22 Thread Michal Hoftich
Dear Guido, you may also try the Markdown package, it enables direct Markdown support in TeX and it works quite well with tex4ht. It also supports mixing Markdown and LaTeX macros, so you can use all the Markdown shortcuts for basic formatting and use LaTeX for more advanced stuff. Back to your a

[tex4ht] [bug #375] htlatex fails in Ubuntu Bash on Windows 10

2017-12-14 Thread Michal Hoftich
Follow-up Comment #1, bug #375 (project tex4ht): Hi Vincent, do you use TeXLive? Can you try to run make4ht instead of htlatex? It shouldn't have such issues, as it uses Lua instead of shell scripts. Best, Michal ___ Reply to this item at

Re: [tex4ht] Some news

2017-12-06 Thread Michal Hoftich
I am sorry, I send the previous message too early. This happens when one use the Gmail web interface instead of proper MUA. Anyway, I will continue where I stopped. Extensions can be requested using similar method to Pandoc: make4ht -uf html5+tidy filename.tex The above command will create a HTM

[tex4ht] Some news

2017-12-06 Thread Michal Hoftich
Hello everybody, the mailing list has been quiet lately, so it might seem that there was not huge activity. It is not actually true, so I want to post some interesting things we've been dealing with lately: - I will hopefully release new versions of make4ht and tex4ebook soon. The biggest changes

Re: [tex4ht] Frenchb space before double punctuation (OpenOffice)

2017-10-22 Thread Michal Hoftich
Hello Thierry, > I use the babel package with the frenchb option. > > In LaTeX, this option inserts unbreakable thin spaces before all double > punctuations: ":", ";", "!", "?", "«", "»" > (for "«" and "»" you have to declare \frenchbsetup{og=«,fg=»} in the preamble) > > When I produce an Open

Re: [tex4ht] font choice in OpenOffice

2017-10-21 Thread Michal Hoftich
Hello Thierry, > You are right about the default settings in OpenOffice (I use LibreOffice, > but it doesn't matter here). > I have managed to change the default font using a personal "ooffice.4ht" file > (I have copied the original one in my working folder) and I have added > elements like Yo

Re: [tex4ht] font choice in OpenOffice

2017-10-20 Thread Michal Hoftich
Hello Thierry, > I am new to tex4ht and I have to convert a pdflatex document to OpenOffice. > Using the command "mk4ht oolatex myfile.tex" I get a correct odt file. > The problem is that whatever font I install in the latex file, the text in > the OpenOffice file is composed in "Liberation Seri

Re: [tex4ht] Fwd: [bug #371] TikZ externalization and PDF images

2017-10-19 Thread Michal Hoftich
HI Nasser, > Thanks. It was not clear from your message if it was or not, so > I did full update before trying. Any idea when your changes > will be in TL so one can do full update again to pick it up? > I hope in a few days? > > > And I was hoping your changes will let me get rid of this > con

[tex4ht] [bug #371] TikZ externalization and PDF images

2017-10-18 Thread Michal Hoftich
Follow-up Comment #1, bug #371 (project tex4ht): Here are modified usepackage.4ht and html4.4ht files, if anybody want to test them. I had to zip the html4.4ht, because it is too large. (file #288, file #289) ___ Additional Item Attachment:

Re: [tex4ht] [bug #371] TikZ externalization and PDF images

2017-10-18 Thread Michal Hoftich
> > btw, it compiles with no error with > > pdflatex --shell-escape sample.tex > > but not with > > lualatex --shell-escape sample.tex > It seems to be known issue, see https://tex.stackexchange.com/a/365784/2891 Best regards, Michal

[tex4ht] Fwd: [bug #371] TikZ externalization and PDF images

2017-10-18 Thread Michal Hoftich
Hi Nasser, > Thank you Michal for all of this. I am trying to test > this, but keep getting an error with the .cfg > > It might be useful to make a template complete .cfg file for > users to use? Or a small example folder with the > commands you used and put them in zip file to download > and use

[tex4ht] [bug #371] TikZ externalization and PDF images

2017-10-16 Thread Michal Hoftich
URL: Summary: TikZ externalization and PDF images Project: tex4ht Submitted by: michal_h21 Submitted on: Mon 16 Oct 2017 03:52:24 PM EEST Category: None Priority: 5 - N

[tex4ht] [bug #370] Unsupported fonts

2017-10-01 Thread Michal Hoftich
Follow-up Comment #1, bug #370 (project tex4ht): Anton, thanks for reporting these issues. I've updated the sources to incorporate the proposed changes. ___ Reply to this item at: __

[tex4ht] [bug #368] Tabularx package makes \\[...] to produce faulty code inside array

2017-09-09 Thread Michal Hoftich
Follow-up Comment #1, bug #368 (project tex4ht): This issue was fixed in the sources, but it seems that it isn't in the TL yet. Please try the attached html-mml.4ht file. (file #282) ___ Additional Item Attachment: File name: html-mml.4ht

Re: [tex4ht] .css generation from .cls file not from the .cfg file

2017-07-25 Thread Michal Hoftich
> Subject: [tex4ht] .css generation from .cls file not from the .cfg file > > I'm sorry, I have no idea. Michal? I've provided the answer here: https://tex.stackexchange.com/a/380156/2891 Best, Michal

Re: [tex4ht] tex4ht gives package amsmath error tag not allowed here

2017-07-25 Thread Michal Hoftich
Hi Nasser, > > > Not sure if this is known or not? Should I create a bug report? > > There was a related issue > > https://puszcza.gnu.org.ua/bugs/?225 > > But it does not look they are same error, Or may be they are > the same? I think they are the same error, at least the attached test.tex

Re: [tex4ht] dependencies, new and incomplete

2017-05-05 Thread Michal Hoftich
Hi Karl, I've just added basic support for skak package, so I could test whether the html4.4ht contains configurations for skak.4ht. It doesn't : > > 2) Nevertheless, by grepping the logs, I see that nearly everything > depends on mktex4ht.4ht and tex4ht.sty. I just added those as common > depen

Re: [tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-05-05 Thread Michal Hoftich
I am sorry, I sent the previous mail before it was done, here is the continuation: > > Thanks for the clarification. So I think best thing to do is to > compile every hook seeding files (tex4ht-html4.tex, > tex4ht-ooffice.tex, etc.) twice. The other question is, whether they > should depend The

Re: [tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-05-05 Thread Michal Hoftich
Hi Deimi, On Thu, May 4, 2017 at 10:25 PM, Deimantas Galcius wrote: > Hi Michal, > > If I recall it right: > > 1. when you introduce a new entry to mktex4ht-cnf.tex file, you need to > process it > in order to get '\lit{}' record in > mktex4ht.4ht file. > > 2. you need to process tex4ht-html4.t

[tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-04-28 Thread Michal Hoftich
Follow-up Comment #6, bug #217 (project tex4ht): I've tested it now on another computer with a new example and found some issues with my initial code, so I've commited fixes for that. BTW, I've also found that tex4ht-html4.tex needs to be compiled twice after new package is added to mktex4ht-cnf.

[tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-04-28 Thread Michal Hoftich
Follow-up Comment #5, bug #217 (project tex4ht): Thanks Karl. I think it can be closed now. ___ Reply to this item at: ___ Message sent via/by Puszcza

[tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-04-27 Thread Michal Hoftich
Follow-up Comment #3, bug #217 (project tex4ht): Today I've added basic support for Mdframed package, with support for for border thickness and color and background and text colors. ___ Reply to this item at:

[tex4ht] [bug #360] Issues with unpaired brackets

2017-04-20 Thread Michal Hoftich
URL: Summary: Issues with unpaired brackets Project: tex4ht Submitted by: michal_h21 Submitted on: Thu 20 Apr 2017 11:45:50 AM EEST Category: None Priority: 5 - Normal

[tex4ht] [bug #217] Errors using mdframed and framed packages with tex4ht

2017-04-18 Thread Michal Hoftich
Follow-up Comment #1, bug #217 (project tex4ht): I've just added basic support for Framed package. It just print 1p border around contents of each supported framing environment, but it also add unique id for each of them, so one can configure them in the custom config file. _

Re: [tex4ht] Recent updates

2017-04-18 Thread Michal Hoftich
Hi Karl, > > Ok, I'll ask CTAN to update the README to the text below. > Let me know if you think more should be said. > (Or if the web page could use tweaking.) > Thanks, it seems nice to me. > if we can't update the tex4ht_all.zip on CTAN. This file is quite > messy, by the way :( > >

Re: [tex4ht] Issues with unpaired brackets

2017-04-13 Thread Michal Hoftich
> in the hope that it may be useful, I think that the following is > something that is mathematically/semantically correct but that > produces similar problems: > > \documentclass{article} > \begin{document} > $R^{a[bc}G^{cb]g}$ > \end{document} > It also works with `mathml-` option. One issue I f

Re: [tex4ht] Issues with unpaired brackets

2017-04-13 Thread Michal Hoftich
Thanks Bill, On Thu, Apr 13, 2017 at 1:16 AM, William F Hammond wrote: > > I regard this as nonsensical source. With real mathematical expressions > things > like $f(x$) and things like $a(b(c(d(e)))$ are common author mistakes. I > think they should be trapped at source level. Using a suitabl

[tex4ht] Issues with unpaired brackets

2017-04-12 Thread Michal Hoftich
Hi all, incidentally, I found one issue in documents compiled to MathML, from two independent sources. Meaningless MWE: \documentclass{article} \begin{document} [this is for test $a+b=c]$ \end{document} What is important is `]` at the end of inline math. It produces the followin

[tex4ht] Recent updates

2017-04-12 Thread Michal Hoftich
Hi all, we fixed some issues in past few weeks. Most of the issues were found in private mails or on TeX.sx and they haven't been posted on tex4ht issue tracker, so I will sum some of these fixes here: - Babel: - Russian and Greek should work with LuaLaTeX and XeLaTeX. It is possible that

Re: [tex4ht] Inline math conversion

2017-03-24 Thread Michal Hoftich
> > If I use the option "pic-m" as you suggested, then the inline math are > turned as images, but I require the HTML tagging, here is my code: > Ah, in this case you should use `mathml` and `MathJax` for rendering. It isn't easily possible to display math correctly in plain HTML. See http://tex.

Re: [tex4ht] Inline math conversion

2017-03-24 Thread Michal Hoftich
Hi MadYuv, > Tagging $x+y\times c=f$ produces the output with operator space before and > after for the characters + \times and =, I require the same output in HTML > out also. Please help... > I get a spaces around these characters in both HTML and PDF. Do you use the "pic-m" option? Best regar

Re: [tex4ht] Inline math conversion

2017-03-24 Thread Michal Hoftich
Hi MadYuv, > In LaTeX output, I got roman output for the text "const." $dx/dt = +v_{0} = > {\rm const.}$, but the same text came in italic tag in HTML conversion, how > can I fix the same? you can use $dx/dt = +v_{0} = {\mathrm{const.}}$., or \usepackage{amsmath} and \text instead of \mathrm. I t

[tex4ht] [bug #352] LuaLaTeX and XeLaTeX broken again

2017-03-20 Thread Michal Hoftich
Follow-up Comment #9, bug #352 (project tex4ht): I've fixed some issues with Babel, notably Russian support and some text encoding issues. There are more issues though. Greek is broken and accents are lost with LuaLaTeX if you use `\selectlanguage{russian}` and then select some other language.

Re: [tex4ht] Inline math conversion

2017-03-20 Thread Michal Hoftich
Hi MadYuv, you can try the `-p` option for t4ht: htlatex filename "xhtml,charset=utf-8,pic-m" " -utf8 -cunihft" "-cvalidate -p" or make4ht -u filename "pic-m" "" " -cvalidate -p" Best regards, Michal On Mon, Mar 20, 2017 at 10:08 AM, Saravanan Murugaiah wrote: > Hi All, > > In my

Re: [tex4ht] Inline math conversion

2017-03-16 Thread Michal Hoftich
Hi MadYuv, > In my document, I need all math (both inline and display) as in HTML format, > for this, I used the below commands for conversion: > > htlatex filename "xhtml" " -cunihft" "-cvalidate" > > Everything works fine, but when the fraction commands comes with some arabic > numbers then the

Re: [tex4ht] curiosity about unicode.4hf

2017-03-15 Thread Michal Hoftich
> Only to be precise, > > from (MWE): > \documentclass{article} > \usepackage{textcomp} > \usepackage[T1]{fontenc} > \begin{document} > \textquotesingle > ' > ` > " > \end{document} > > > you get: > > ' > ’ > ‘ > " > > > In the event one decides to modify unicode.4hf, I would suggest to > modify in

<    3   4   5   6   7   8   9   10   11   >