[tex4ht] [bug #623] Images inverted with dark mode by default html5 css

2024-05-10 Thread Michal Hoftich
Update of bug #623 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

Re: [tex4ht] [bug #625] Bad register code (65536) again on auto-generated Latex code

2024-04-30 Thread Michal Hoftich
Hi Nasser, I think for now, I'll just delete these long equations and > not write them to the latex file as this seems simplest solution. > > Since this is all done in code, I changed my code to check > for large Latex equations. > > Computer algebra systems tend to generate huge Latex

[tex4ht] [bug #625] Bad register code (65536) again on auto-generated Latex code

2024-04-29 Thread Michal Hoftich
Follow-up Comment #2, bug #625 (project tex4ht): Hi Nasser, this is not limited to TeX4ht but to l3regex, which is used to clean the MathJax code. See this question, where they found the same issue: https://tex.stackexchange.com/q/654633/2891 In theory, you could skip the regex cleaning using

[tex4ht] [bug #624] File ended while scanning use of \AltMathOne. error

2024-04-25 Thread Michal Hoftich
Follow-up Comment #2, bug #624 (project tex4ht): Hi Nasser, I would prefer use of a special environment, like this: %%% % https://puszcza.gnu.org.ua/bugs/?624 \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{longtable} \usepackage{array}

[tex4ht] [bug #623] Images inverted with dark mode by default html5 css

2024-04-09 Thread Michal Hoftich
Follow-up Comment #3, bug #623 (project tex4ht): Dear Oliver, thanks for the confirmation. It was really an omission on my side that I added color inversion, but didn't set the basic colors. I probably forgot to import it from the test file I used at the time. I will add it now.

[tex4ht] [bug #623] Images inverted with dark mode by default html5 css

2024-04-09 Thread Michal Hoftich
Follow-up Comment #1, bug #623 (project tex4ht): Dear Olivier, Yes, I've added this rule because I've found that images created from math or TikZ images with transparent backgrounds were completely black. They always have a filename that starts with the \jobname, so src^="\jobname" should match

Re: [tex4ht] Working examples of bibtex / multibib with tex4ebook?

2024-03-05 Thread Michal Hoftich
Hi Jürgen, it is possible that TeX4ht files in Miktex are too old. Alphabetic style works for me correctly, with one small issue, the links from citations to the bibliography don't work. A BibLaTeX update could cause it, because I think links used to work. I also found that the multibib issue

Re: [tex4ht] Working examples of bibtex / multibib with tex4ebook?

2024-03-04 Thread Michal Hoftich
Hi Jürgen, > I did it again - I've waited too long to update my LaTeX packages, and now my > old files will no longer compile correctly. So now I have to carefully wade > through my code and test anything. I can see that there is no configuration file for multibib. Bibtex itself should work.

[tex4ht] [bug #620] tex4ht breaks URL text leading to empty spaces between words generated in final HTML when \urldef

2024-02-26 Thread Michal Hoftich
Update of bug #620 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #622] error with \footnote mark in \section*

2024-02-26 Thread Michal Hoftich
Follow-up Comment #1, bug #622 (project tex4ht): Hi Ulrike, thanks for the report. The problem here is that TeX4ht writes all section titles to the .4tc file. It uses \protected@edef internally, which fails with \footnotemark. \footnotemark is redefined by TeX4ht, using \HLet. The resulting

Re: [tex4ht] Non-tabular plain TeX alignments & indentation in HTML

2024-02-06 Thread Michal Hoftich
Hi Richard, > > I have a plain TeX application in which I'd like to try converting some > non-tabular alignments into elements with text that's (roughly) > the alt text tex4ht would produce for those alignments in display math > mode. But I can't figure out how to produce that alt text directly.

Re: [tex4ht] tex4ht remove image id from HCode passed. Makes animation no longer work

2024-01-31 Thread Michal Hoftich
Hi Nasser, > > I found the fix. > > I just needed to do this > > \HCode{ > \Hnewline > > instead of > > \HCode{ > \Hnewline > > as I had it. I must have changed this myself without knowing. it is possible that the id attribute was removed by DOM filters. They should support unquoted attributes,

[tex4ht] [bug #620] tex4ht breaks URL text leading to empty spaces between words generated in final HTML when \urldef

2024-01-16 Thread Michal Hoftich
Follow-up Comment #1, bug #620 (project tex4ht): The original issue is caused by your URL not fitting on a line, so it gets a linebreak, resulting in white space. The solution is to use larger \textwidth. We also found an actual bug, that using the `]` character in \href produced a wrong link. I

[tex4ht] [bug #619] Invalid html generated for enumitem enumerations.

2024-01-15 Thread Michal Hoftich
Update of bug #619 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #3: OK, thanks for the clarification. So I am closing this now.

[tex4ht] [bug #619] Invalid html generated for enumitem enumerations.

2024-01-12 Thread Michal Hoftich
Follow-up Comment #1, bug #619 (project tex4ht): Is there a reason for use of the item environment instead of the \item command? It seems that this causes issues, as the following works fine: \begin{enumerate}[label=(\arabic*)] \item An item. \item A second item. \item A third item.

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-11 Thread Michal Hoftich
Follow-up Comment #16, bug #617 (project tex4ht): Ah, so the mystery is solved :) Thanks. ___ Reply to this item at: ___ Message sent via/by Puszcza

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-10 Thread Michal Hoftich
Follow-up Comment #14, bug #617 (project tex4ht): Something needs to be wrong on my side. I've noticed, that even the hybrid option doesn't work with the markdown environment. Both with make4ht and LuaLaTeX. But, if I use the \markdownSetup command to make these options global, they work. So

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-10 Thread Michal Hoftich
Follow-up Comment #12, bug #617 (project tex4ht): I used the default installation of the Markdown package in my TeX Live, it says "Package: markdown 2023-04-27 v2.23.0-0-g0b22f91 markdown renderer", so it seems pretty old, but probably correct, as it is the same as the latest release on CTAN. I

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-10 Thread Michal Hoftich
Follow-up Comment #10, bug #617 (project tex4ht): Yes, exactly. I see HTML tags in both PDF and HTML outputs. (file #530, file #531) ___ Additional Item Attachment: File name: markdown-html.png Size:37 KB File name:

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-10 Thread Michal Hoftich
Follow-up Comment #8, bug #617 (project tex4ht): BTW is it OK that the last code snippet in the TeX file, which contains HTML tags, is inserted verbatim in the output? I thought that HTML tags should be passed to the HTML output without escaping.

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-10 Thread Michal Hoftich
Follow-up Comment #7, bug #617 (project tex4ht): Yeah, it seems fine. I will update the TeX4ht sources then. ___ Reply to this item at: ___ Message

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2024-01-09 Thread Michal Hoftich
Follow-up Comment #5, bug #617 (project tex4ht): Thanks for the report. I think this was caused by a fix for another issue: https://github.com/michal-h21/make4ht/issues/141 I've made a version of `\FVC@Verb` macro which works both with your example and with the code from the Minted issue. The

[tex4ht] [bug #616] \downarrow is not centered in table when using tex4ht with column type centered paragraph

2023-12-19 Thread Michal Hoftich
Update of bug #616 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-15 Thread Michal Hoftich
Hi Karl, > > The main thing I need to even make a start at debugging the binary is > the exact invocation of the tex4ht executable (and t4ht, if it makes > that far). > I think it is tex4ht -utf8 -cunihtf Best Michal

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
On Wed, Dec 13, 2023 at 11:10 PM Karl Berry wrote: > > Hi Karl, Nasser's original DVI file is included in the zip file, so it > is possible to execute tex4ht on it. It fails silently, it looks like > some \special instruction causes immediate stop. > > Please point me to the zip. (No

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
On Wed, Dec 13, 2023 at 10:46 PM Karl Berry wrote: > > Nasser/Michal - does one of the tex4ht binaries actually crash in > processing your giant document? Or does it just fail silently somewhere > in the middle? > Hi Karl, Nasser's original DVI file is included in the zip file, so it is possible

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
> > No problem Michal, thanks for trying. > > I ended up splitting that one large file into 4 smaller > files. i.e. made it 4 books instead of one book. Each builds > on its own, and in its own separate folder. > I think this is a good idea. With larger files, everything is more complicated, you

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2023-12-12 Thread Michal Hoftich
Follow-up Comment #3, bug #617 (project tex4ht): Hi Vítek, thanks for the confirmation. I've added this code to TeX4ht sources, so it should be available in TeX Live soon. ___ Reply to this item at:

[tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-12 Thread Michal Hoftich
Follow-up Comment #1, bug #618 (project tex4ht): It seems that something causes tex4ht command to stop processing your DVI file abruptly. Maybe some wrong \special command. There are no errors in the log file. It seems that LaTeX compiled the whole file. The problem is with the DVI file. But I

[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

2023-12-11 Thread Michal Hoftich
Follow-up Comment #1, bug #617 (project tex4ht): Hi Vítek, thanks for the report. I am pretty sure that \VerbatimInput worked in the past, as I used it occasionally. I cannot find the place where spurious newlines come from, so we need to use a work around - insert special TeX4ht instructions

Re: [tex4ht] Can one use tex4ht log file to check if more runs are needed?

2023-12-05 Thread Michal Hoftich
Hi Nasser, > > Hello Michal. I am little confused. You say tex4ht does not generate > such messages, but then you say log checking is safer. > > Can I check for same messages when compiling with tex4ht as > I do with lulatex? This is my question. > The running script that I gave you checks for

Re: [tex4ht] Can one use tex4ht log file to check if more runs are needed?

2023-12-04 Thread Michal Hoftich
Hi Nasser, > My question here is this: Could I use similar method > for tex4ht and just check the tex4ht log file for messages? > > This is easier for me to do, since I can use the same > "grep -E" command. TeX4ht on its own doesn't produce such messages, AFAIK. The method with log checking

[tex4ht] [bug #616] \downarrow is not centered in table when using tex4ht with column type centered paragraph

2023-11-22 Thread Michal Hoftich
Follow-up Comment #1, bug #616 (project tex4ht): I've posted my answer to TeX.sx. Unfortunately, I have only a workaround for this issue, as the column specification for the C column isn't passed down to TeX4ht by the Array package. ___

[tex4ht] [bug #229] tex4ht removes spaces in array column when used inside tabular

2023-11-07 Thread Michal Hoftich
Update of bug #229 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #229] tex4ht removes spaces in array column when used inside tabular

2023-11-06 Thread Michal Hoftich
Follow-up Comment #1, bug #229 (project tex4ht): I think that I've found the source of this issue. We set some table dimensions to zero in the array. I am unsure why it was done, but when I remove this setting, this example keeps the correct spacing. It didn't change anything in other tests I've

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

2023-11-03 Thread Michal Hoftich
Update of bug #172 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #3: I've tried this MWE and while the original issue was fixed, some more appeared over the years. But

[tex4ht] [bug #239] tabu + htlatex gives error message

2023-11-02 Thread Michal Hoftich
Update of bug #239 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: We have the basic support for Tabu for some time, but it doesn't work in all cases. I've found

[tex4ht] [bug #614] tex4ht in TL 2023 generates funny characters in table

2023-11-02 Thread Michal Hoftich
Update of bug #614 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #614] tex4ht in TL 2023 generates funny characters in table

2023-11-01 Thread Michal Hoftich
Follow-up Comment #1, bug #614 (project tex4ht): Hi Nasser, thanks for the report. I've fixed this issue in the sources and posted an explanation to TeX.sx. ___ Reply to this item at:

Re: [tex4ht] Problems generating svg when tikz is involved with tex4ht

2023-10-25 Thread Michal Hoftich
Hi Nasser, > Now the HTML shows the tikz shapes. But all the text is missing. > i.e. for this MWE > > --- > \documentclass[12pt]{article} > \ifdefined\HCode >\def\pgfsysdriver{pgfsys-tex4ht-updated.def} > \fi > \usepackage{amsmath} > \usepackage{tikz} > >

Re: [tex4ht] Problems generating svg when tikz is involved with tex4ht

2023-10-24 Thread Michal Hoftich
Hi Nasser, > Fyi; > I do not know if this is dvisvgm issue or not. But on TL 2023 it says > > >which dvisvgm > /usr/local/texlive/2023/bin/x86_64-linux/dvisvgm > >dvisvgm --version > dvisvgm 3.0.3 > > But current version is supposed to be > > https://dvisvgm.de/Downloads/ > > 3.1.2 and on my

[tex4ht] [bug #312] tcolorbox package does not work with tex4ht. All newlines are lost in listings

2023-10-20 Thread Michal Hoftich
Follow-up Comment #1, bug #312 (project tex4ht): I've tried this now, and it worked, except the fact that the box wasn't closed correctly. The Listings library uses a different macro to be called at the end of the environment that it defines, so we need to patch it to close the box. There was

[tex4ht] [bug #246] \usepackage{cprotect} generate extra strange letters not in text in HTML

2023-10-19 Thread Michal Hoftich
Update of bug #246 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #246] \usepackage{cprotect} generate extra strange letters not in text in HTML

2023-10-18 Thread Michal Hoftich
Follow-up Comment #2, bug #246 (project tex4ht): I know this is super old, but I've found a fix for the Cprotect package and pushed them to the source. We just need to define the \CPT@hat@hat@E@hat@hat@L command with correct catcodes. ___

[tex4ht] [bug #605] Large difference in spacing of TOC between book and article class

2023-10-18 Thread Michal Hoftich
Update of bug #605 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #612] tex4ht gives compile error when using transparent package

2023-10-18 Thread Michal Hoftich
Update of bug #612 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

Re: [tex4ht] How to add custom Css code into the configuration file? @media

2023-10-14 Thread Michal Hoftich
Hi Nasser, > > It is because it is trying to copy the style file nma.css to the output > directory! > > And so ofcourse there is no folder /styles/css/ on the Linux disk. This is > meant only for the web server to use from its root public_html. > In this case, you can use this configuration

Re: [tex4ht] How to only remove temporary files after calling make4ht to compile a file?

2023-10-14 Thread Michal Hoftich
Hi Nasser, > > make4ht ... index.tex > make4ht make4ht -m clean -a info index.tex > > This will delete, not on the temporary files (index.log, index.idv, etc...) > but will also delete the html I just build ! > > Ofcourse, I could delete these files myself later, since I know > all the

[tex4ht] [bug #612] tex4ht gives compile error when using transparent package

2023-10-13 Thread Michal Hoftich
Follow-up Comment #1, bug #612 (project tex4ht): Thanks for the report. I've added my anwser on TeX.sx and updated TeX4ht sources with the support. ___ Reply to this item at:

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

2023-10-09 Thread Michal Hoftich
Hello Ulrike, > Which fatal clash? Do you have an example? Sorry, it is not a fatal crash, only a bunch of error messages and invalid generated HTML file. I think I've posted this sample before, but here it is to be sure: \DocumentMetadata{testphase={phase-III,math}}

[tex4ht] [bug #605] Large difference in spacing of TOC between book and article class

2023-10-09 Thread Michal Hoftich
Follow-up Comment #1, bug #605 (project tex4ht): I've made a big change in the TOC processing. I've removed hard spaces that were inserted, and indentation should be done solely using CSS. I've changed the indentation for each TOC level, now they change by 1em instead of 2em as previously. I've

Re: [tex4ht] How to \includegraphics using absolute path with tex4ht?

2023-10-09 Thread Michal Hoftich
Hi Nasser, you are not using the copy_images extension. You cannot select make4ht extension using TeX4ht options as in "mathjax,htm,nostyle,copy_image". You need to add it to the -f option of make4ht. So the correct call is: $ make4ht -ulm default -f html5+copy_images foo.tex

[tex4ht] [bug #238] htlatex outputs extra word not in document when using \columnbreak with multicols

2023-10-06 Thread Michal Hoftich
Update of bug #238 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #3: I think this issue was fixed in the meantime, I don't get any extra words with current TeX4ht.

[tex4ht] [bug #237] problem with titlesec package with tex4ht when using starred version of \section

2023-10-06 Thread Michal Hoftich
Update of bug #237 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: This issue seems to be resolved, the MWE compiles without errors.

[tex4ht] [bug #225] Htlatex ignores \tag in equation

2023-10-06 Thread Michal Hoftich
Update of bug #225 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: The test file seems to work now, so the issue was fixed in the meantime.

[tex4ht] [bug #259] mathtools and starred version of a DeclarePaireDelimiter macro

2023-10-06 Thread Michal Hoftich
Update of bug #259 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #2: The original code seems to work now. ___

[tex4ht] [bug #424] inline math alignment problem in svg mode when using tex4ht

2023-10-06 Thread Michal Hoftich
Update of bug #424 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: I found a solution for the vertical alignment of inline math some time ago. The details are

[tex4ht] [bug #340] Math issues in the ODF export

2023-10-05 Thread Michal Hoftich
Update of bug #340 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #340] Math issues in the ODF export

2023-10-05 Thread Michal Hoftich
Follow-up Comment #10, bug #340 (project tex4ht): It seems that most of these issues were resolved in the meantime. The only remaining issue was incorrect support for some relation operators: 2. Instead of "<" characters at start of array columns, upside-down "?" are displayed. I think it is

Re: [tex4ht] sh: 1: rungs: not found

2023-10-04 Thread Michal Hoftich
Hi Krister, > Excuse me for not specifying. I'm using the ubuntu 23.04 packages for > texlive-base. It appears as though `/usr/bin/rungs` appears in the 22.10 > release but not in the 23.04! > > https://packages.ubuntu.com/search?suite=kinetic=any=exactfilename=contents=rungs > > Should I

Re: [tex4ht] sh: 1: rungs: not found

2023-10-04 Thread Michal Hoftich
Hello Krister, > I'm using htlatex, and a new error has appeared when I run it: > > --- Warning --- System return: 32512 > System call: rungs -q -dNOPAUSE -dBATCH -dusecropbox -sDEVICE=pngalpha -r300 > -sOutputFile="fig//expand-.png" "fig//expand.pdf" > sh: 1: rungs: not found > > I found a

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

2023-10-04 Thread Michal Hoftich
Follow-up Comment #13, bug #477 (project tex4ht): I've disabled the \DocumentMetadata command in tex4ht.sty. Thich change needs the development version of make4ht because in the stable version, tex4ht.sty is not loaded before \documentclass, where \DocumentMetadata should be used. The options

[tex4ht] [bug #173] oolatex: Invalid translation of equation with hat over greek letter and non-atomic subscript

2023-10-04 Thread Michal Hoftich
Update of bug #173 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: This issue was resolved sometime in the last ten years, as the resulting MathML code is correct.

[tex4ht] [bug #601] babel spanish and htlatex mathml have bad ineraction

2023-10-04 Thread Michal Hoftich
Update of bug #601 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #2: This should be fixed in the sources. ___

[tex4ht] [bug #610] How to use verbatimbox in tex4ht? Compile error. OK in pdf

2023-10-04 Thread Michal Hoftich
Update of bug #610 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #552] Unwanted space at \hspace{0pt}

2023-10-04 Thread Michal Hoftich
Update of bug #552 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #7: This can also be closed, I hope. ___

[tex4ht] [bug #547] problem with citations

2023-10-04 Thread Michal Hoftich
Update of bug #547 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #5: I think we can close this issue? ___

Re: [tex4ht] question on split levels for tex4ht

2023-10-02 Thread Michal Hoftich
Hi Nasser, > > I was thinking this will just be a very thin API, where > only make4ht will handle, and simply process this option > split_at and determines the split number needed and then pass it > to tex4ht as before. > > i.e. no code changes needed at all internally for tex4ht. > I was

[tex4ht] [bug #610] How to use verbatimbox in tex4ht? Compile error. OK in pdf

2023-10-02 Thread Michal Hoftich
Follow-up Comment #1, bug #610 (project tex4ht): Hi Nasser, thanks for the report. I've posted the immediate solution on TeX.sx, and updated TeX4ht sources. It seems that the issue here was that Verbatimbox defines box using \sbox and the name of the box is saves in a command defined using

Re: [tex4ht] question on split levels for tex4ht

2023-10-01 Thread Michal Hoftich
Hi Nasser, > 1 - split at \part > 2 - split at \chapter > 3 - split at \section > 4 - split at \subsection > 5 - split at \subsubsection > 6 - split at \paragraph > For document classes without \chapter (like article): > > 1 - split at \part > 2 - split at \section > 3 - split at \subsection > 5

Re: [tex4ht] is it possible to have complete support for breqn package in tex4ht?

2023-09-25 Thread Michal Hoftich
> If breqn would work with svg, I was planning to stop using > mathjax and switch back to svg for math for everything ofcourse. This > is what I used to do few years ago. But the compilation took tens of hours, didn't it? I think you should avoid it for your huge documents. > I guess if you

Re: [tex4ht] is it possible to have complete support for breqn package in tex4ht?

2023-09-25 Thread Michal Hoftich
> "Automatic line breaking has not yet been implemented in MathJax > version 3, but is high on our list for inclusion in a future release." > > It is strange they had it in V 2.7 but not in current mathjax > version. May be it had problems. > > If Mathjax can implement automatic breaking for long

Re: [tex4ht] is it possible to have complete support for breqn package in tex4ht?

2023-09-25 Thread Michal Hoftich
Hi Nasser, > I was wondering how hard it will be to have tex4ht > support fully the breqn package directly? i.e. generate > same math as that in PDF for long equations (but in svg mode). I've tried an older test file you sent me, and all Breqn equations were converted to images by default. What

Re: [tex4ht] labels in descriprion

2023-09-22 Thread Michal Hoftich
Hello Peter, > I use description environment in my latex source. When I generate odt using > make4ht, I am not able correctly update table of contents. There are all > items from descriptions included. > > Is it possible to somehow suppress this behaviour? Can you post a sample document that

[tex4ht] [bug #603] 13 figures OK, 14 figures gives ! LaTeX Error: Counter too large. only with tex4ht and subfigure

2023-09-21 Thread Michal Hoftich
Update of bug #603 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #608] Adding hyperref package makes tex4ht change its split level order

2023-09-21 Thread Michal Hoftich
Update of bug #608 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #606] tex4ht duplicates TOC in two columns in TL 2023 but OK in TL 2022. What changed?

2023-09-21 Thread Michal Hoftich
Update of bug #606 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: I've fixed that recently. Details are on TeX.sx.

Re: [tex4ht] [bug #608] Adding hyperref package makes tex4ht change its split level order

2023-09-11 Thread Michal Hoftich
> I should probably change that and perhaps even use hooks instead of > redefining. That's another option :) I could remove the fix from TeX4ht sources then, to be sure that I don't break something else. Michal

[tex4ht] [bug #608] Adding hyperref package makes tex4ht change its split level order

2023-09-11 Thread Michal Hoftich
Follow-up Comment #1, bug #608 (project tex4ht): Thanks for the report. It seems to be caused by the Nameref package, which redefines the \@chapter command regardless of the fact if the document class provides it. We need to undefine it for the correct functioning of the page-splitting

Re: [tex4ht] How to add custom Css code into the configuration file? @media

2023-08-31 Thread Michal Hoftich
Hi all, > It turned out that make4ht generates its own body > with this in the .css > > body{ margin:1em auto; max-width:80ch; padding:0 .62em; } > > The above is done automatically. So if you add your own body > specification in the .cfg or your own .css, the above will get > in the way if you

Re: [tex4ht] How to add custom Css code into the configuration file? @media

2023-08-30 Thread Michal Hoftich
> > Thanks Michal. This is very useful. I did not know about > > \Configure{AddCss}{filename.css} > > This will make it easy to put all css code in there, so I do not > have to worry about escaping stuff. > Yes, that's the main feature. \Css is meant mainly for smaller chunks of code and for your

Re: [tex4ht] How to add custom Css code into the configuration file? @media

2023-08-30 Thread Michal Hoftich
Hi Nasser, > Ok, fixed. Found my mistake. I forget to escape % and # > when I copied the code from the .css to try it in .cfg ! > > This now works in the .cfg. > In your case, you can use jurt \Configure{AddCss}{filename.css}. It will include link to the CSS file, which you need to place

[tex4ht] [bug #607] tex4ht with package hyperref and option destlabel creates no ancor

2023-08-21 Thread Michal Hoftich
Follow-up Comment #5, bug #607 (project tex4ht): The solution in the linked answer on TeX.sx is a base for the code that make4ht executes by default. I just fixed some errors and issues that I found in the meantime. On the TeX side, when we add any code to \label, it will always point under the

[tex4ht] [bug #604] tex4ht in TL 2023 broke something in handling breqn compared to TL 2022

2023-08-21 Thread Michal Hoftich
Update of bug #604 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: As we found on TeX.sx, the problem here was that Nasser updated his PC and some configuration

[tex4ht] [bug #607] tex4ht with package hyperref and option destlabel creates no ancor

2023-08-17 Thread Michal Hoftich
Follow-up Comment #3, bug #607 (project tex4ht): Save that code as config.cfg. To use it with htlatex, execute: $ htlatex filename.tex "config,uni-html4,2,svg,pic-tabular" " -cunihtf -utf8" With make4ht, use: $ make4ht -c config.cfg filename.tex "uni-html4,2,svg,pic-tabular" make4ht uses

[tex4ht] [bug #607] tex4ht with package hyperref and option destlabel creates no ancor

2023-08-17 Thread Michal Hoftich
Follow-up Comment #1, bug #607 (project tex4ht): You can try something like this: %%% \Preamble{xhtml} \let\origlabel\label \def\label#1{% \HCode{}% \origlabel{#1}% \HCode{}% } \begin{document} \EndPreamble %%% It will add elements at the point of \label. In

Re: [tex4ht] Using texfot with make4ht, how to make it stop at error in compiling?

2023-06-28 Thread Michal Hoftich
Hi Nasser, > > It seems like there should be a way to get make4ht to keep the output > > and still stop on error, but that's up to Michal. Specify -a warning > > and also errorstopmode somehow? (And not need to use texfot.) Or > > -a debug and errorstopmode? > > One thing that is possible is to

Re: [tex4ht] How to \includegraphics using absolute path with tex4ht?

2023-06-20 Thread Michal Hoftich
> If it works for you, I can add it to make4ht as a new extension, so it > could be then enabled from the command line. I've added a new extension to make4ht, copy_images. It should fix this issue. Best regards, Michal

Re: [tex4ht] How to \includegraphics using absolute path with tex4ht?

2023-06-19 Thread Michal Hoftich
Hi Nasser, > > > And it can't find it of course. I compile on Linux, view on windows. And on > the server this path makes no sense. Even if I use > > src='/images/image.svg' > > i.e. relative to public_html/, it still does not see it on windows. > > How can one then use absolute path for

[tex4ht] [bug #599] Newline in caption break compilation

2023-05-02 Thread Michal Hoftich
Follow-up Comment #1, bug #599 (project tex4ht): Thanks for the report. I've updated TeX4ht sources, so this error should go away. In the meantime, you can use this configuration file: \Preamble{xhtml} \catcode`\:=11 \pend:def\protect:wrtoc{\let\\\space} \catcode`\:=12 \begin{document}

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

2023-04-18 Thread Michal Hoftich
> > This won't fix the error with \DocumentMetadata as the > testphase code loads there amsmath not with the standard hooks but in > our own hook: > > \tl_gput_right:Nn \@kernel@before@begindocument > { \RequirePackage { amsmath } } > > (which doesn't look right, but moving it to >

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

2023-04-18 Thread Michal Hoftich
Hello Ulrike, > while there certainly can/will be problems, this error here seems to be > unrelated to \DocumentMetadata. I get an error with make4ht also for this: > thanks for this example. You are right. It seems that packages added in \AddToHook{begindocument/before} or \AtBeginDocument are

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

2023-04-18 Thread Michal Hoftich
Follow-up Comment #12, bug #477 (project tex4ht): There is some discussion about the new LaTeX tagging project and TeX4ht: https://github.com/latex3/latex2e/discussions/1019 We will need to make some changes to TeX4ht sources to support the metadata block used before \documentclass, because

[tex4ht] [bug #553] Error message with hyperref & \url

2023-04-18 Thread Michal Hoftich
Update of bug #553 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #592] inconsistent font sizes used for subsubsection/paragraph titles in tex4ht. How to fix?

2023-04-18 Thread Michal Hoftich
Update of bug #592 (project tex4ht): Open/Closed:Open => Closed ___ Reply to this item at: ___

[tex4ht] [bug #192] Some xr-hyper related changes

2023-03-08 Thread Michal Hoftich
Update of bug #192 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #2: The conflicts between Hyperref and Xr were fixed some time ago.

[tex4ht] [bug #597] tex4ht + biblatex + non-ascii chars = mixed encoding in html file

2023-03-06 Thread Michal Hoftich
Update of bug #597 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #4: I forgot to close it :) ___ Reply to

[tex4ht] [bug #597] tex4ht + biblatex + non-ascii chars = mixed encoding in html file

2023-03-06 Thread Michal Hoftich
Follow-up Comment #3, bug #597 (project tex4ht): The trick with a space is a bit confusing, but I'm afraid it had some purpose originally. It actually allows you to select different translation tables for fonts. I don't know if anyone uses this functionality, but it's probably better not to

[tex4ht] [bug #597] tex4ht + biblatex + non-ascii chars = mixed encoding in html file

2023-03-04 Thread Michal Hoftich
Follow-up Comment #1, bug #597 (project tex4ht): It is OK to cross-post, don't worry. I've already provided my answer on TeX.sx, so I will post only a shorter version here: The correct call for htlatex if you want Unicode output is this: $ htlatex mwe.tex "xhtml,charset=utf-8" " -cunihtf -utf8"

[tex4ht] [bug #588] After updating to latest TL 2022. tex4ht no longer shows table of content when using split level

2023-03-03 Thread Michal Hoftich
Update of bug #588 (project tex4ht): Open/Closed:Open => Closed ___ Follow-up Comment #1: This issue should be fixed now. The problem was that the sectioning command that is used in

  1   2   3   4   5   6   7   8   9   10   >