Re: [tex4ht] Double headings in table of contents

2021-04-16 Thread Michal Hoftich
Hello Lorenzo, I see many (not all) entries of my TOC in HTML as duplicated. The elements are: 1.1.1 Undisclosed text 1.1.1 Undisclosed text of course I don't see this in pdfLaTeX. I'm working on a rather complex setting including some confidential content, so I can't produce a MVE, but pe

Re: [tex4ht] Can’t find/open file ‘xxx.dvi’ or ‘xxx.lg’

2021-04-11 Thread Michal Hoftich
It seems like a wrong make4ht installation. It cannot load any extensions. You may try instead this: tex4ebook -c mycfg.cfg draft "svg" It should still produce SVG images for PDF files, but the compilation will be slower. The generated Epub file is quite large, here is a link: https://www.t

Re: [tex4ht] Can’t find/open file ‘xxx.dvi’ or ‘xxx.lg’

2021-04-11 Thread Michal Hoftich
I've originally sent my reply only to OP, so here it is again. Sorry for the noise. Hi, I get the same error as you with this TeX file, so the issue is not caused by a wrong installation of teX4ebook or make4ht. I've found that the fatal error is caused by this line at the beginning of the TeX fi

Re: [tex4ht] Can’t find/open file ‘xxx.dvi’ or ‘xxx.lg’

2021-04-10 Thread Michal Hoftich
Hello, hello, I got this error when i try to use tex4ebook to convert arxiv paper source to epub. I found a solution in https://www.tug.org/tex4ht/doc/mn3.html, which sugget install htcmd.c. But I could not find htcmd, could you give me some advice? by the way my system is ubuntu14. Morever,

Re: [tex4ht] MathML errors using TeX4ht

2021-04-03 Thread Michal Hoftich
Dear Francis, these are the common issues that I mentioned in one of my previous e-mails. TeX4ht doesn't support \mathbf{xxx}^x. Valid input is {\mathbf{xxx}}^x. The {}_x issue is something different, this is really known bug that I don't know how to fix. Here are some other known issues: h

Re: [tex4ht] Problem using mjcli on Cygwin

2021-04-02 Thread Michal Hoftich
Dear Francis, ah I see. It seems that I was wrong, mjcli uses MathML by default. When you use the "mathjax" option, it uses the LaTeX math syntax for the command line MathJax, but it doesn't remove the MathJax

Re: [tex4ht] Problem using mjcli on Cygwin

2021-04-01 Thread Michal Hoftich
What problems do happen? MathML shouldn't be used unless you explicitly use the "mathml" option. There are some notorious issues with sub and super scripts with the MathML option, TeX4ht needs to enclose the base and exponent in {} in order to work correctly, for example. I am sure there are ma

Re: [tex4ht] Problem using mjcli on Cygwin

2021-03-31 Thread Michal Hoftich
You don't need to use the "mathjax" option with mjcli extension, it loads the necessary code automatically, but without the JavaScript inclusion. Best regards, Michal > I have switched from using the version of TeX Live provided by Cygwin to the > version available directly from CTAN, which is m

[tex4ht] [bug #504] tex4ht does not scale math font along with text when using mathjax

2021-03-31 Thread Michal Hoftich
Update of bug #504 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #2: The answer on TeX.sx was accepted so I think we can close this. __

Re: [tex4ht] Problem using mjcli on Cygwin

2021-03-31 Thread Michal Hoftich
Dear Francis, > Thanks for the explanation. I understand the problem now and how to fix it. I > was looking at recent documentation but it turns out that my version of > make4ht is a bit older than I thought. good to hear. The documentation that is available at https://www.kodymirus.cz/make4ht/

Re: [tex4ht] Problem using mjcli on Cygwin

2021-03-30 Thread Michal Hoftich
Hello Francis, [WARNING] mkutils: Cannot load extension: mjcli Without the mjcli extension, this command runs fine. I don't understand why mjcli seems to run directly from the shell but not via make4ht. Could it be a path issue? Cygwin bash presumably passes a Cygwin-style path to make4ht,

[tex4ht] [bug #504] tex4ht does not scale math font along with text when using mathjax

2021-03-30 Thread Michal Hoftich
Follow-up Comment #1, bug #504 (project tex4ht): Hi Nasser, I've posted my answer with a solution on TeX.sx. You need to use a command that can be patched by TeX4ht. While basic support for font changing switches such as \tiny works, it doesn't work well for cases such as this one. __

Re: [tex4ht] biblatex \footnotetext breaks in ODT

2021-03-27 Thread Michal Hoftich
Hi Ingram, Works perfectly, thank you very much! And as expected, \footcitetext and \footcitetexts are fixed, too. That's great! I've removed the code that caused this issue from the sources. I've added it two years ago as a fix for some other issue, but I cannot find test files for the orig

Re: [tex4ht] biblatex \footnotetext breaks in ODT

2021-03-26 Thread Michal Hoftich
Hi Ingram, I am currently playing around with the sample document of my biblatex-archaeology styles, trying to convert into ODT. In the MWE attached after the first call of \footnotemark there are most spaces missing in the entire document ( outfile: https://ingram-braun.net/test/make4ht/foot

Re: [tex4ht] Bad interaction with bookmark.sty

2021-03-15 Thread Michal Hoftich
Dear Francis, To round off this issue, the author of dvipng has agreed to revise it for the next release, presumably 1.18. The problem, if I understand it correctly, is that the bookmark dvips driver, which is used by default, inserts what is essentially an empty image, which dvipng does not

Re: [tex4ht] Bad interaction with bookmark.sty

2021-03-12 Thread Michal Hoftich
Dear Francis, Entering dvipng-bug.lg System call: dvipng -q -T tight -D 144 -bg Transparent -pp 2:2 dvipng-bug.idv -o dvipng-bug0x.png >/dev/null sh: line 1: 958 Floating point exception(core dumped) dvipng -q -T tight -D 144 -bg Transparent -pp 2:2 dvipng-bug.idv -o dvipng-bug0x.png > /dev

Re: [tex4ht] Macro parameter bug

2021-03-11 Thread Michal Hoftich
Dear Francis, Thanks for your very prompt reply. Changing the catcode solves the problem. You have also answered my next question, which was going to be about the right way to configure MathJax. (I currently post-process the HTML files.) I am glad it helped you. In fact, the way I define

Re: [tex4ht] Macro parameter bug

2021-03-10 Thread Michal Hoftich
Dear Francis, On Wed, Mar 10, 2021 at 05:46:41PM +, Francis Wright wrote: I'm using TeX4ht to generate HTML including mathematics to be processed by MathJax from LaTeX source files. MathJax supports macro and environment definitions provided they are within a math environment, and this wor

Re: [tex4ht] Multitude of problems when trying to convert from .tex to .html.

2021-03-08 Thread Michal Hoftich
Hello phseiff, I just checked, and apparently, I still used texlive2017. It also looks like all texlive-related packages are at version 2017.something in the Ubuntu package repositories. I re-installed it now from another repository, and now I have the 2019 version (the same goes for tex4ht).

Re: [tex4ht] Multitude of problems when trying to convert from .tex to .html.

2021-03-07 Thread Michal Hoftich
Hello! I am trying to convert some .tex files to .html files (I am hoping to automate this process over the next view days as part of a pipeline), and I ran into a couple of problems doing so. The documentation I found assumes that these problems don't happen, and everything I found so far wa

Re: [tex4ht] Percent sign in caption

2021-03-06 Thread Michal Hoftich
Hello Lorenzo, I have a figure with a caption containing "\%", like in "this is 3\% of that". This breaks tex4ht (I run make4ht) because in filename.4tc the percent is not escaped anymore, so I find the line \doTocEntry\toclof{}{\csname a:TocLink\endcsname{1}{x1-28012}{}{\numberline {2.6}{\igno

Re: [tex4ht] Percent sign in caption

2021-03-01 Thread Michal Hoftich
Hello Lorenzo, thank you for the fast response and please take care of yourself first, of course! Should anybody in the list have a creative workaround (compatible with the PDF flow), I'll be happy to try out. So far I have just replaced all "%" in captions with "percent". Best Regards, Loren

Re: [tex4ht] Percent sign in caption

2021-02-28 Thread Michal Hoftich
Hello Lorenzo, I have a figure with a caption containing "\%", like in "this is 3\% of that". This breaks tex4ht (I run make4ht) because in filename.4tc the percent is not escaped anymore, so I find the line \doTocEntry\toclof{}{\csname a:TocLink\endcsname{1}{x1-28012}{}{\numberline {2.6}{\igno

Re: [tex4ht] A suspected typo in cmcbx.htf

2021-02-23 Thread Michal Hoftich
Dear Arkady, Thanks for the great tool! Just a small suspected typo report: it appears that in the cmcbx.htf the Unicode fo the glyph \x19 should be U+2116 (Numero sign), not U+2216 (Set minus). I am attaching the output of pdftex testfont for your convenience. Thank you for the report and

Re: [tex4ht] spaces in math

2021-02-15 Thread Michal Hoftich
Dear Tomáš, the "~" character produces different outputs depending on whether it is used in math or not. You can try the following configuration that doesn't make any checks: \Preamble{xhtml} \Configure{ }{\csname :nbsp\endcsname} \begin{document} \EndPreamble It may produce new errors in your

[tex4ht] [bug #500] error message when using biblatex with htlatex

2021-02-13 Thread Michal Hoftich
Update of bug #500 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #3: That's good to hear! ___ Reply to this it

[tex4ht] [bug #500] error message when using biblatex with htlatex

2021-02-13 Thread Michal Hoftich
Follow-up Comment #1, bug #500 (project tex4ht): Hi Kristian, it seems that Miktex's version of biblatex.4ht is old, the latest update in TeX Live is from 2021-01-29. You can find the current files here: https://www.kodymirus.cz/files/tex4ht-4ht-files.zip. biblatex.4ht and other files are in th

Re: [tex4ht] make4ht-lib: Fatal error. Command t4ht returned exit code 1, Too many characters (> 500) for map line: `l'

2021-02-07 Thread Michal Hoftich
No problem. Thanks for trying. Could you please try this? Compile to PDF first using lualatex content_all.tex and leaving all temporary files generated as is in the folder. Now please try compiling to HTML using the same command I have in that text file and see if you get an error. I found

Re: [tex4ht] make4ht-lib: Fatal error. Command t4ht returned exit code 1, Too many characters (> 500) for map line: `l'

2021-02-07 Thread Michal Hoftich
Hi Nasser, Please try again, it should now work. https://www.12000.org/tmp/02042021/content_all.zip thanks, I can get this file now. This is strange error. Sometimes it happens when I keep last compile .aux and .dvi files around. It seems tex4ht get confused by having old .aux and .dvi

Re: [tex4ht] make4ht-lib: Fatal error. Command t4ht returned exit code 1, Too many characters (> 500) for map line: `l'

2021-02-06 Thread Michal Hoftich
Hi Nasser, [INFO]make4ht-lib: executing: t4ht -utf8 "content_all.dvi" --- error --- t4ht.c (2018-07-04-14:25 kpathsea) t4ht -utf8 content_all.dvi [FATAL] make4ht-lib: Fatal error. Command t4ht returned exit code 1 This seems like error in the last step of compilation, when picture

Re: [tex4ht] exerquiz problems

2021-02-06 Thread Michal Hoftich
Dear Tomáš, The error is caused by non-breaking space in the solution header. I don't really understand why it happens, but it has a simple work-around. Try this version of exerquiz.4ht: %% % exerquiz.4ht 2019-0

Re: [tex4ht] converting all displaymath to images with make4ht

2021-02-05 Thread Michal Hoftich
make4t -c mycfg.cfg testfile.tex Just the parts in parentheses are converted to images. The pic-m option works and converts the entire equation into one image. That's OK. Only display math is converted to pictures by default. You need to use pic-m and other pic- options for other math environm

Re: [tex4ht] converting all displaymath to images with make4ht

2021-02-05 Thread Michal Hoftich
converted to an image. Thanks for your help. The amsmath package must be the problem here. On Fri, Feb 5, 2021 at 10:16 AM Michal Hoftich wrote:

Re: [tex4ht] converting all displaymath to images with make4ht

2021-02-05 Thread Michal Hoftich
Hi Benjamin, I'm trying to make an ePub (v2) out of a LaTeX manuscript, so I've been using make4ht to convert to HTML and save all math as images. (MathML doesn't work in ePub v2.) You can also try tex4ebook. It converts to ePub directly. It is based on make4ht, but it also saves some metad

Re: [tex4ht] exerquiz problems

2021-02-01 Thread Michal Hoftich
Dear Tomáš, I've identified another issue with exerquiz, here is the updated exerquiz.4ht file: %% % exerquiz.4ht 2019-09-14-15:17 % % Copyright (C) 1999-2009 Eitan M. Gurari % % Copyright 2009-2019 TeX

Re: [tex4ht] index with tex4ht

2021-01-31 Thread Michal Hoftich
Dear Tomáš, That answer is quite old, I am afraid. Indexing support is now built in in make4ht. See this answer: https://tex.stackexchange.com/a/543759/2891 I can compile your file using the following .mk4 file: Make:htlatex {} Make:xindy {language="czech"} Make:htlatex {} Xindy has built

Re: [tex4ht] Possible bug in tex4ht

2021-01-31 Thread Michal Hoftich
Hello Trent, Apologies if this is not the best place to submit a bug report -- I am trying out this mailing group thing for the first time -- but I think I am running into a bug with tex4ht. I am also fairly new with LaTex in general, so please bear with me if I am missing something obvious. I a

Re: [tex4ht] two figures in one row

2021-01-27 Thread Michal Hoftich
Hello Tomáš, in the configuration file, which I adopted. Nevertheless, in some cases the figures can't be automatically converted to SVG, so I made the conversion to PNG manually and for such figures I use this code \begin{figure} \centering \ifpdf \includegraphics[width=0.49\linewidth]{fi

[tex4ht] [bug #477] Support for new LaTeX hook management

2021-01-24 Thread Michal Hoftich
Follow-up Comment #8, bug #477 (project tex4ht): I've found that we are missing support for \AddToHook{env/name/before} and other hooks for environments. I've just fixed that in the sources. ___ Reply to this item at:

Re: [tex4ht] SVG or PNG ?

2021-01-24 Thread Michal Hoftich
Dear Tomáš,    can someone please explain what are pros and cons of using graphics in PNG or SVG for the LaTeX to HTML conversion? Naively I would guess SVG is better since it is vectorized format, but after playing with that I encounter the following issues: Yes, SVG is better in general

Re: [tex4ht] exerquiz problems

2021-01-21 Thread Michal Hoftich
Dear Tomáš, things like this are hard to catch, unless it break fatally, like in this case. Please report all other issues when you found them. Best regards, Michal Thanks a lot, Michal, this helped a lot. I am usually running several checks on the LaTeX code, but both pdflatex and lacheck d

Re: [tex4ht] exerquiz problems

2021-01-19 Thread Michal Hoftich
Dear Tomáš, Well, the error message suggests there might be a problem in the configuration file (split.cfg), but - when getting rid of the exerquiz environment, the error message disappears. It's strange, maybe there is some interference between the align and example environments?? I don't k

Re: [tex4ht] exerquiz problems

2021-01-13 Thread Michal Hoftich
Dear Tomáš, I suspected that the problem is  due to exerquiz package. Unfortunately yes, the problem can be removed by commenting out _all_ exerquiz stuff, then all error messages disappear. I am afraid that exerquiz.4ht filter is old (as Michal already pointed out) and needs to be updated.

Re: [tex4ht] tex4ht options, figure placement and exerquiz

2021-01-11 Thread Michal Hoftich
Thanks Michal, this approached I already tried, but running make4ht on my rather complex document crashes when I specify "2" or more. I tried a simple testing case with few lines and few sections and that works perfectly as expected. So, I guess I need to run more test to narrow down the proble

Re: [tex4ht] tex4ht options, figure placement and exerquiz

2021-01-10 Thread Michal Hoftich
Hi Tomáš, 1. I wanted to experiment with various tex4ht options. I only found those listed in http://cvr.cc/?p=504. This list seems pretty old, can you point me to more up-to-date list of options, ideally more descriptive? For instance, I am looking for an option splitting the document into i

Re: [tex4ht] split environment and exerquiz package

2021-01-09 Thread Michal Hoftich
Hi Tomáš, Ok, thanks, so let's try to solve each problem separately. Please find attach a simple example of split environment. The tex-file is ok, but make4  -a debug split_ex.tex gives the error message Can you please have a look? Any hint is appreciated. I've added fix for this issue to T

[tex4ht] [bug #496] Sub- and sup-scripts do not work

2021-01-08 Thread Michal Hoftich
Update of bug #496 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #6: That's great! I will close this issue now. Best regards, Michal _

Re: [tex4ht] split environment and exerquiz package

2021-01-08 Thread Michal Hoftich
Hi Tomáš, you can try suggestion from this answer of mine on TeX.sx: https://tex.stackexchange.com/a/511641/2891 I thought that I incorporated this code into TeX4ht sources, but I didn't yet. I think there were issues with MathML with this solution. But if you want to produce picture math, it

[tex4ht] [bug #497] spectral font support?

2021-01-03 Thread Michal Hoftich
Follow-up Comment #3, bug #497 (project tex4ht): Maybe it is possible to add a default HTF table to the tex4ht DVI processor? I've tried to look at the source code if something is here already, but I don't understand it at all. "nofonts" cannot help, because it disables only insertion of the ``

[tex4ht] [bug #497] spectral font support?

2021-01-03 Thread Michal Hoftich
Follow-up Comment #1, bug #497 (project tex4ht): Hi Karl, I've added a new generated literate source for spectral. It was quite easy, because they use Unicode codepoints in glyph names for this font, so there are no missing characters :) Best, Michal

[tex4ht] [bug #496] Sub- and sup-scripts do not work

2021-01-02 Thread Michal Hoftich
Follow-up Comment #4, bug #496 (project tex4ht): I've found what the issue was. When \AtBeginDocument was used in .4ht files, the TeX4ht hooks that are executed at this moment were executed twice. It should be fixed in the sources now. ___

[tex4ht] [bug #496] Sub- and sup-scripts do not work

2021-01-01 Thread Michal Hoftich
Follow-up Comment #3, bug #496 (project tex4ht): I can already say that this issue happens to all .4ht files that use \AtBeginDocument, for example Biblatex. It is necessary to change it to \Configure{AtBeginDocument}{code}{}. ___ Reply t

[tex4ht] [bug #496] Sub- and sup-scripts do not work

2021-01-01 Thread Michal Hoftich
Follow-up Comment #2, bug #496 (project tex4ht): This was really complicated issue. I am not sure that I fixed it completely. \AtBeginDocument command is not available at the moment when .4ht files are processed anymore. It seems that every time it is used, it causes loss of sub and superscripts.

[tex4ht] [bug #495] tex4ht gives \catcode`\^^ error when loading mathtools

2020-12-31 Thread Michal Hoftich
Update of bug #495 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___ Messag

[tex4ht] [bug #496] Sub- and sup-scripts do not work

2020-12-31 Thread Michal Hoftich
Follow-up Comment #1, bug #496 (project tex4ht): Hi Matteo, I've found that the issue is caused by the Hyperref packages (and Bookmark, which loads Hyperref). I will look at this issue later this week. In the meantime, you can disable the offending packages with TeX4ht, as they are not that use

[tex4ht] [bug #495] tex4ht gives \catcode`\^^ error when loading mathtools

2020-12-25 Thread Michal Hoftich
Follow-up Comment #2, bug #495 (project tex4ht): I've found that this issue was caused by the new LaTeX hook system, respective the fact that we redefined \@begindocumenthook to execute some code that fixes similar cases. I've modified tex4ht.sty to use new hooks and it seems to work correctly now

[tex4ht] [bug #495] tex4ht gives \catcode`\^^ error when loading mathtools

2020-12-24 Thread Michal Hoftich
Follow-up Comment #1, bug #495 (project tex4ht): Hi Nasser, thanks for the report. I've posted my answer to TeX.sx and updated TeX4ht source codes. ___ Reply to this item at: __

Re: [tex4ht] luaxml-domobject.lua:62: bad argument #2 to 'format' (no value)

2020-12-20 Thread Michal Hoftich
Hi Nasser, > This seems to work, I can compile your files without errors. So it was > just LuaXML issue. > I've just pushed the fixed LuaXML library to CTAN, so it should be available in TeX Live soon. Best regards, Michal

Re: [tex4ht] luaxml-domobject.lua:62: bad argument #2 to 'format' (no value)

2020-12-19 Thread Michal Hoftich
opps, sorry. Please try again. I just put these there in the zip file. https://www.12000.org/tmp/lua_error/ This seems to work, I can compile your files without errors. So it was just LuaXML issue. Best regards, Michal

Re: [tex4ht] luaxml-domobject.lua:62: bad argument #2 to 'format' (no value)

2020-12-19 Thread Michal Hoftich
Hi Nasser, I put everything in one zip file. Please find the zip file in this folder https://www.12000.org/tmp/lua_error/ This is self contained. It has index.tex and 3 other .tex files that are included. I think this issue is really related to LuaXML. It handled wrongly CDATA sections in

Re: [tex4ht] luaxml-domobject.lua:62: bad argument #2 to 'format' (no value)

2020-12-19 Thread Michal Hoftich
Hi Nasser, [INFO]make4ht-lib: parse_lg process file: insu17.htm ...e/2020/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua:62: bad argument #2 to 'format' (no value) This seems indeed like an issue in LuaXML library. Can you post the insu17.htm file here? It seems that it somehow fail

[tex4ht] [bug #493] BibLaTeX footnote-dw citation final full stop sometimes added where it isn’t in PDF output

2020-12-09 Thread Michal Hoftich
Update of bug #493 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #6: Hi Lorenz, it shouldn't be hard to add support for other quotation marks in the .cfg file. I don'

[tex4ht] [bug #493] BibLaTeX footnote-dw citation final full stop sometimes added where it isn’t in PDF output

2020-12-09 Thread Michal Hoftich
Follow-up Comment #4, bug #493 (project tex4ht): Hi Lorenz, what about this version of the .cfg file? It checks for previous dot before quote. (file #394) ___ Additional Item Attachment: File name: hej.cfgSize:0 KB

[tex4ht] [bug #494] ltugboat header and signature

2020-12-06 Thread Michal Hoftich
Follow-up Comment #1, bug #494 (project tex4ht): Hi Karl, I think the configuration for the Ltugboat class is quite old. ltugboat.4ht requires ltugboat-a.4ht, which defines most configurable hooks. The configuration in html4.4ht has some issues - for example it doesn't close paragraphs before

[tex4ht] [bug #493] BibLaTeX footnote-dw citation final full stop sometimes added where it isn’t in PDF output

2020-12-04 Thread Michal Hoftich
Follow-up Comment #2, bug #493 (project tex4ht): Here is another version of the configuration file that fixes even the “ character. (file #390) ___ Additional Item Attachment: File name: hej.cfgSize:0 KB _

[tex4ht] [bug #493] BibLaTeX footnote-dw citation final full stop sometimes added where it isn’t in PDF output

2020-12-04 Thread Michal Hoftich
Follow-up Comment #1, bug #493 (project tex4ht): Hello Lorenz, I can confirm this issue. It happens with the --lua option, because we handle the Unicode characters in the way that is incompatible with the Biblatex punctuation tracker. This is not something that can be fixed easily. I've found a

[tex4ht] [bug #492] BibLaTeX footnotes not showing as footnotes in ODT, nor cross-references, minor final punctuation issue also in HTML

2020-11-29 Thread Michal Hoftich
Update of bug #492 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___ Messag

[tex4ht] [bug #491] KOMA book (scrbook) \subsubsection and \paragraph

2020-11-29 Thread Michal Hoftich
Follow-up Comment #9, bug #491 (project tex4ht): Thanks for your reports. I've added support for the missing commands to TeX4ht sources. Paragraphs created by \paragraph and similar commands now have distinct paragraph styles. ___ Reply to

[tex4ht] [bug #492] BibLaTeX footnotes not showing as footnotes in ODT, nor cross-references, minor final punctuation issue also in HTML

2020-11-28 Thread Michal Hoftich
Follow-up Comment #6, bug #492 (project tex4ht): Thank you for your kind words, Lorenz. That's great that you managed to compile the literate sources. The chapter about development is messy right now, as it contains duplicate information compiled from various places, but it contains some informa

[tex4ht] [bug #491] KOMA book (scrbook) \subsubsection and \paragraph

2020-11-28 Thread Michal Hoftich
Follow-up Comment #4, bug #491 (project tex4ht): The paragraph heading is set as s "paragraph-h" character style. LO shows only paragraphs styles in the main toolbar, but you can select character styles in the style inspector. We can create a new paragraph style for the whole paragraph. It is a b

[tex4ht] [bug #490] csquotes display environments in ODT

2020-11-27 Thread Michal Hoftich
Update of bug #490 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #8: Great, so I will update ooffice.4ht with this change. ___

[tex4ht] [bug #490] csquotes display environments in ODT

2020-11-27 Thread Michal Hoftich
Follow-up Comment #6, bug #490 (project tex4ht): The paragraphs are added by the configuration, so you can just remove them, like this: \Preamble{xhtml,ooffice} \Configure{displayquote}{\EndP \bgroup \Configure{HtmlPar} {\EndP \HCode{}} {\EndP \HCode{}} {\HCode{}} {\HCode{}}% }{}{}{\egroup\noin

[tex4ht] [bug #492] BibLaTeX footnotes not showing as footnotes in ODT, nor cross-references, minor final punctuation issue also in HTML

2020-11-27 Thread Michal Hoftich
Follow-up Comment #4, bug #492 (project tex4ht): Hi Lorenz, I've just found what was the issue. There was a really old code for footnote-dw in TeX4ht sources. It disabled the footnote support in citations. I don't know what was the reason for it, it seems that it was here since 2008. There could

[tex4ht] [bug #491] KOMA book (scrbook) \subsubsection and \paragraph

2020-11-27 Thread Michal Hoftich
Update of bug #491 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___ Messag

[tex4ht] [bug #492] BibLaTeX footnotes not showing as footnotes in ODT, nor cross-references, minor final punctuation issue also in HTML

2020-11-26 Thread Michal Hoftich
Additional Item Attachment, bug #492 (project tex4ht): File name: mwe.html Size:2 KB ___ Reply to this item at: ___ Message sent

[tex4ht] [bug #491] KOMA book (scrbook) \subsubsection and \paragraph

2020-11-26 Thread Michal Hoftich
Follow-up Comment #1, bug #491 (project tex4ht): Thanks for the report. It should be fixed in the sources. ___ Reply to this item at: ___ Message sent v

[tex4ht] [bug #492] BibLaTeX footnotes not showing as footnotes in ODT, nor cross-references, minor final punctuation issue also in HTML

2020-11-26 Thread Michal Hoftich
Follow-up Comment #2, bug #492 (project tex4ht): Hi Lorenz, your file seems to be good in HTML, see the attached file. You get your output in Latin 1 encoding because you need to pass additional parameters to htxelatex, like: mk4ht htxelatex mwe.tex "html,charset=utf-8,fn-in“ " -utf8 -cmozhtf"

[tex4ht] [bug #490] csquotes display environments in ODT

2020-11-26 Thread Michal Hoftich
Follow-up Comment #1, bug #490 (project tex4ht): Incidentally, I've dealt with these environments few days ago. Your request prompted me to test the support and add it to the sources. I've also added the ODT support. It should be available in TL soon. You can test it using the attached csquotes.

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

2020-11-25 Thread Michal Hoftich
Follow-up Comment #6, bug #404 (project tex4ht): Hi Jürgen, oolatex is not recommended way to use Tex4ht for the ODT conversion. It is better to use make4ht -f odt mwe.tex make4ht fixes some issues in ODT files and internal links are among them. Your example seems to work with make4ht. __

Re: [tex4ht] [bug #489] problem with hyperref in tex4ht after TL Oct. update

2020-11-23 Thread Michal Hoftich
> btw, I noticed something while fixing the url. > > Before, I had this (this is old file, I did not know about \url then) > > \href{http://...}{\nolinkurl{http://...}} > > I now changed it to > >\url{http://...} > > But the HTML in the first case shows an EXTRA space in the

Re: [tex4ht] [bug #489] problem with hyperref in tex4ht after TL Oct. update

2020-11-23 Thread Michal Hoftich
Hi Nasser, > > if it is of any help for you, if you like at the HTML page, > the link to the above HTML is now here > > https://www.12000.org/my_notes/faq/MAPLE/maple.htm This error means that the generated HTML is not well-formed XML. For example, there may be spurious tags, etc. In your case,

[tex4ht] [bug #489] problem with hyperref in tex4ht after TL Oct. update

2020-11-22 Thread Michal Hoftich
Update of bug #489 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___ Messag

[tex4ht] [bug #489] problem with hyperref in tex4ht after TL Oct. update

2020-11-22 Thread Michal Hoftich
Follow-up Comment #1, bug #489 (project tex4ht): Hi Nasser, this is a bug in LuaXML. It is fixed in the development version. I've posted more info in answer on TeX.sx. ___ Reply to this item at: ___

[tex4ht] [bug #488] \over does not give the same result as equivalent \frac

2020-11-01 Thread Michal Hoftich
Follow-up Comment #5, bug #488 (project tex4ht): I've done some more experiments and come with an interesting solution: convert MathML to HTML and render it using CSS. I've used this project as the basis for CSS: https://github.com/fred-wang/mathml.css/ Not everything is good. Fractions look OK,

[tex4ht] [bug #488] \over does not give the same result as equivalent \frac

2020-10-27 Thread Michal Hoftich
Follow-up Comment #3, bug #488 (project tex4ht): I've modified the CSS code to produce a better result - the fractions are now vertically aligned and font sizes are better: -- \Preamble{xhtml} \catcode`\:=11 \def\IgnoreRule{\ht:special{t4ht@\string_}} \def\EndIgnoreRule{\ht:special{t4ht@\str

Re: [tex4ht] plain TeX

2020-10-27 Thread Michal Hoftich
Dear Doc, On Tue, Oct 27, 2020 at 7:00 PM D. R. Evans wrote: > > In the dim, distant past I tried to convert my plain TeX books into HTML with > tex4ht (for later conversion to EPUB and MOBI). I was never very successful at > this project, producing valid but unusably-badly-formatted output. > >

[tex4ht] [bug #488] \over does not give the same result as equivalent \frac

2020-10-26 Thread Michal Hoftich
Follow-up Comment #1, bug #488 (project tex4ht): The simplest thing you can do is to convert your whole inline math to image, using for example: httex filename "xhtml,html5,pic-m" Also, it works in MathML: htttex filename "xhtml,html5,mathml,mathjax" As it works in MathML, it is obvious that i

Re: [tex4ht] issue with raw html output with httex

2020-10-25 Thread Michal Hoftich
Actually I had a better look, and it seems that it never worked better than what we obtain now, after changing tex to etex. Actually the output did not change at all... So there is no regression, the output is not so good, but this has always been like that. Do you still want an example in that

Re: [tex4ht] issue with raw html output with httex

2020-10-25 Thread Michal Hoftich
No problem. We'll try to adapt to that. If you could post a complete example that used to work in the past, we can try to find if this is a regression and when it was introduced. We don't get much requests for texinfo support, so it could go unnoticed for quite some time. I fixed two issue

Re: [tex4ht] issue with raw html output with httex

2020-10-25 Thread Michal Hoftich
If I pass a texi document to httexi, with \input texinfo, @setfilename and @bye it does not give an error, but the result is not correct, there is no inserted html, and the output is simple text without html elements: I don't know anything about texinfo, unfortunatelly. I see that \input texinf

Re: [tex4ht] issue with raw html output with httex

2020-10-25 Thread Michal Hoftich
In my case, there is no trouble with having `\document` and `\enddocument` explicitly in the document, nor to add commands in preamble, as the files are automatically generated and should only be run through tex4ht scripts, never directly through TeX. OK, in this case you can just add definitio

Re: [tex4ht] issue with raw html output with httex

2020-10-25 Thread Michal Hoftich
Hello Pat, but I get ! Undefined control sequence. for \Hnewline, and when I remove \Hnewline another error for _ not in mathmode, and when I replace _ with - what is in \HCode{} is processed as TeX and not output as is as html. If I test with some equivalent latex code and htlatex everything

[tex4ht] [bug #482] Can't load fonts with polyglossia

2020-10-20 Thread Michal Hoftich
Update of bug #482 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #3: I've just updated Miktex and it seems that this issue is fixed now. __

[tex4ht] [bug #486] Strange error with minted

2020-10-17 Thread Michal Hoftich
Follow-up Comment #4, bug #486 (project tex4ht): Ok, so I've introduced a new configuration for early package patches. As testing for file existence is too slow, it will need to be declared in usepackage.4ht. So it isn't as flexible as the way I tried with the -sty-hooks.4ht file, but it is faste

[tex4ht] [bug #486] Strange error with minted

2020-10-16 Thread Michal Hoftich
Follow-up Comment #3, bug #486 (project tex4ht): Yes, but TeX4ht tries to include "\jobname.4ht, which comes from "\jobname.w18" that is added to \@filelist by Catchfile. TeX4ht tries to process the \@filelist and to load corresponding .4ht file for each file that is specified in it. And here it h

[tex4ht] TeX source as an annotation for MathML

2020-10-11 Thread Michal Hoftich
Hi all, I think this may be interesting for some of you. One user requested if it is possible for TeX4ht to produce MathML equations with original TeX input as an annotation for accessibility reasons. Here is my answer with a solution that seems to work: https://tex.stackexchange.com/a/5663

Re: [tex4ht] [bug #486] Strange error with minted

2020-10-11 Thread Michal Hoftich
Dear Ulrike, Hm. yes. I can change it in catchfile and use your fix instead. But why are the quotes a problem? \@filelist can currently contains file names with quotes also in other cases -- not really probable but possible. It would be best if we were able to support quotes in \@filelist file

Re: [tex4ht] [bug #486] Strange error with minted

2020-10-08 Thread Michal Hoftich
I've found that the issue was caused by the Catchfile package. It added quoted file to the list of used files. I've added fix for that. Is there a problem in the catchfile package itself? At a first glance I didn't see a place where it would add quotes. It uses the following macro: \def\Ca

[tex4ht] [bug #486] Strange error with minted

2020-10-08 Thread Michal Hoftich
Update of bug #486 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: I've found that the issue was caused by the Catchfile package. It added quoted file to the list of

[tex4ht] [bug #486] Strange error with minted

2020-10-07 Thread Michal Hoftich
URL: Summary: Strange error with minted Project: tex4ht Submitted by: michal_h21 Submitted on: Thu 08 Oct 2020 12:04:37 AM EEST Category: None Priority: 5 - Normal

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