TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext.

learn more… | top users | synonyms

2
votes
1answer
30 views

tex4ebook and 4ht files

I am using MiKTeX on windows and calling tex4ebook.lua as a parameter to lualatex to make epub3. Can somebody explain in simple terms what the .4ht files in the tex4ebook directory are used for ...
3
votes
1answer
60 views

tex4ht fails to compile footnote when there is blank line with scrartcl class

TL 2016. There seems to be a bug here. This MWE fails to compile with tex4ht because there is blank line in footnote \documentclass[11pt]{scrartcl} %\documentclass[11pt]{article} \IfFileExists{...
6
votes
1answer
275 views

Compilation error with tex4ht when using the authblk package

The following example, taken from Adding more than one author with different affiliation and saved as example.tex, compiles well with pdflatex example.tex. \documentclass[11pt,a4paper]{article} \...
1
vote
0answers
25 views

tex4ht manual for header, footer, toc

I'm converting a book (6 parts, 30 sections,...) with dynamic graphs into a series of HTML pages using tex4ht. However, I'd like to have a nicer way to navigate. The standard is "next, prev, up, .." ...
1
vote
2answers
49 views

Package graphics Error: Division by 0. with tex4ht when using [dvipdfmx]{graphicx}

I found a case, when this MWE \documentclass[11pt]{scrbook}% \usepackage{graphicx} \begin{document} \includegraphics[width=0.95\textwidth]{image.png} \end{document} Gives the error (/usr/local/...
3
votes
1answer
27 views

how to insert a line break in tex4ht in \Hcode?

I got the problem that I need to produce Javascript Code with a certain structure. I need a line break or new line at a certain point, but no html-tags or similar in my code. Below there's a ...
1
vote
1answer
23 views

tex4ht doesn't display \HCode correctly

I'm using Miktex 2.9 and tex4html. In my file I have \HCode{ <div id="box" class="jxgbox" style="width: 770px; height: 500px;"></div> <script > etc. which yields <div id="...
4
votes
1answer
40 views

why tex4ht do not change font size of \verb? when including \usepackage[T1]{fontenc}?

This MWE \documentclass[11pt]{article} \usepackage{ifluatex} \ifluatex \IfFileExists{luatex85.sty}{\usepackage{luatex85}}{} \ifdefined\HCode \usepackage[utf8]{luainputenc} \usepackage[T1]{...
0
votes
1answer
317 views

Texmaker doesn't export to html (OS X El Capitan)

After upgrading to El Capitan I fixed the configuration and it is working fine. But it does not export to html with the tex4ht option. It yields the following output: "/Library/TeX/texbin/htlatex" "/...
4
votes
1answer
42 views

Trouble building a site with frames using Tex4ht

via Tex4ht with frames, using the configuration file cc.cfg \Preamble{xhtml,mathml,sections+,ext=htm,charset="utf-8",2,frames} \Configure{@HEAD}{\HCode{<title>Good Morning</title>\...
1
vote
1answer
39 views

How to set-up a this html outline for tex4ht with toc on the left+main text+footnotes

I have discovered a nice outline to have a html page with: a table of content the main text the footnotes at the bottom of each page all of these windows can be resized with the cursor of the mouse ...
5
votes
1answer
56 views

tex4ht corrupts “--” inside CDATA in the HTML file

I am using an outside javascript package (syntaxHighlighter) for code formatting when I compile to HTML that requires one to put code inside <![CDATA[ ... code .. ]]> as explained in the above ...
1
vote
1answer
32 views

Generate navigation tree instead of crosslinks in tex4ht?

tex4ht has options to create cross links betweens html pages, depending on the cut level. Current cross-links can create next/previous/up, ... buttons and has several options to customize them. I ...
4
votes
1answer
62 views

after changing to \usepackage{fontspec} now make4ht do not compile my Latex file in lualatex mode

I was told by Latex experts to use \usepackage{fontspec} with Lualatex. It works ok with lualatex, but now my files do not compile with make4ht any more after I changed to \usepackage{fontspec}. ...
2
votes
1answer
20 views

tex4ht produces corrupted output when using \Configure{$}{\PicMath}{\EndPicMath}{}

In the tex4ht configuration file, I have these 2 lines: \Configure{$}{\PicMath}{\EndPicMath}{} \Configure{PicMath}{}{}{}{class="math";align="absmiddle"} These have been the .cfg for 5 years ...
2
votes
1answer
31 views

tex4ht configuration

I am trying to convert some TeX files to html, for this I am using tex4ht. I am also using myconfig.cfg to produce html file. In this config file I have declared following two lines to translate \...
4
votes
2answers
54 views

How to use catcode with tex4ht?

I have a need to use \catcode`\^^M=12 % in a Latex file for other purposes. The file compiles OK with lualatex but gives an error in tex4ht lua mode. Is there a way to make it work in tex4ht also? ...
6
votes
1answer
58 views

Error with tex4ht under TL 2016 when using lua. String contains an invalid utf-8 sequence

I just installed TL 2016 on new Linux mint OS. >which latex /usr/local/texlive/2016/bin/x86_64-linux/latex >which make4ht /usr/local/texlive/2016/texmf-dist/scripts/make4ht/make4ht The first ...
2
votes
1answer
45 views

tex4ht error when using --lua and luatex85 with datetime package

I had a problem with using datetime with lualatex under TL 2016. Thanks to the answer datetime-package-does-not-work-with-lualatex-in-tl-2016 the solution solved the issue when compiling with lualatex....
1
vote
0answers
46 views

Fatal error while converting to HTML

I've just started using TeXstudio, so probably I'm missing something really simple, but, as it stands, I get a fatal error whenever I try to run an HTML conversion using the Tools -> Convert to Html ...
4
votes
2answers
60 views

How to force vertical space in tex4ht? \bigskip and \vspace have no effect

I am generating lots of tables one after the other, and noticed the tables in HTML generated by tex4ht are touching each others, and wanted to have some vertical white space between them to separate ...
5
votes
0answers
47 views

\ScriptEnv with argument problem

I am trying to set up a package for code formatting which works in both pdf and tex4ht, thanks for nice idea shown by Michal at tex4ht mailing list. In tex4ht, \ScriptEnv is used to set up an ...
2
votes
2answers
70 views

Defining alternative environment for code listing for tex4ht without code duplication

I am using tcolorbox with listings for code formating, which works well in pdf, but this package does not work with tex4ht (it produces invalid output). I am having hard time figuring the latex magic ...
2
votes
1answer
39 views

tex4ht removes spaces in href description in LUA mode when using mathdesign package

Any idea why this MWE \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath,mathtools} \usepackage[bitstream-charter]{mathdesign} \usepackage[utf8]{inputenc} %DO NOT USE WIT LUALATEX, ...
3
votes
2answers
462 views

How to fix these MathML generated code by Tex4ht, or change Latex code to bypass the problem

updated: Added the MathML code in source form at the bottom of this, as requested. I am now configuring tex4ht to generate MathML instead of .png for the math. Then MathJax is loaded for final ...
3
votes
0answers
34 views

tex4ht does not show top and bottom rules of table when loading colortbl package

This MWE \documentclass[12pt]{book}% \usepackage{amsmath} \usepackage{longtable} \usepackage{colortbl} \begin{document} \begin{longtable}[t]{|c|c|}\hline x & y \\\hline \end{longtable} \end{...
2
votes
1answer
44 views

How to remove extra space added by tex4ht to minted listing at start of each line?

This is really annoying. For some reason, tex4ht adds an extra space to the left of each line in the listing when using minted. This does not happen with listings or verbatim. Only with minted. If you ...
2
votes
0answers
56 views

Tex4ht: Lists inside multicols

I use the multicol package to generate "2x2" lists (two rows, two columns), which works fine with pdflatex but not with tex4ht. While multicol works with tex4ht generally, there seems to be something ...
1
vote
1answer
22 views

tex4ht gives an error for code it is NOT supposed to look at! `\spacefactor' in vertical mode error

I have never seen anything like this before. I use some Latex code which works in pdf only. The code is surrounded by \ifdefined\HCode \else .... latex code which tex4ht is not supposed to use \fi ...
47
votes
5answers
4k views

Why haven't any TeX->HTML converters been updated to use current web standards/style?

I think that updating these converters would help TeX stay relevant as a document processing language. In these last few years, web development has really skyrocketed. CSS3 has brought along a lot of ...
3
votes
1answer
59 views

problem breaking URL when using tex4ht only

This problem only shows up when compiling to HTML. I have some long URL's and a URL with underscore do not break inside table when compiled to HTML as it does when compiled to PDF. I tried all the ...
3
votes
1answer
65 views

tex4ebook accents displays as wrong characters + only produces ePub 2.0 no 3.0

I've installed newest tex4ebook (didn't tried for about a year). Now I can't get ePub 3.0 - only ePub 2.0 (as says Sigil 0.9.5 when opening) and Sigil says it has to fix some characters in ePub. My ...
2
votes
1answer
53 views

TeX4ht superscript symbol problem

I have small tex file which is as the below %%%%%%%%%%%%%%%test.tex%%%%%%%%%%%%%%%%% \documentclass{article} \def\mysubsup#1#2#3{#1_{#2}^{#3}} \begin{document} This is small sample $\mysubsup{P}{...
0
votes
1answer
107 views

How to force Sections to be Heading2 H2 in Plastex

Plastex is open source (Python) translator from LaTeX to HTML. https://github.com/tiarno/plastex It does a really good job, producing very clean HTML. For those of use that use LateX for writing ...
1
vote
1answer
403 views

Macros, htlatex with/without “xhtml, mathml”

Following mwe.tex works with htlatex mwe.tex. With htlatex mwe.tex "xhtml, mathml" it gives correct C_5 but \S is like S5, not S_5. \documentclass{article} \usepackage{xspace} \renewcommand*{\S}{\...
2
votes
1answer
53 views

How to make mk4ht not ignore biblatex and biber auxiliary files?

I have two TeX Live distributions installed on my system: 2014 and 2015. The 2014 distribution allows me to generate an ODT file with proper citations and bibliography by running the following: latex ...
3
votes
1answer
78 views

how can I get bold symbols using \boldsymbol and tex4ht with MathML output?

Here is a sample from a LaTeX document I want to convert to HTML. \documentclass[11pt]{book} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amscd} \...
3
votes
0answers
61 views

tex4ht breaks bibliography punctuation with 'american' language and biblatex-chicago

To follow the guidelines of The Chicago Manual of Style, the package biblatex-chicago will put trailing punctuation inside closing quotation marks in bibliographic notes (like this "end,"--not like ...
3
votes
1answer
72 views

newfloat vs tex4ht

When using newfloat to create a new type of float, tex4ht swallows the first line of text inside the float when it converts to .odt format. In the MWE, the new float is example; this works the same ...
7
votes
2answers
171 views

Conflict between tex4ht and biblatex-chicago

I cannot get tex4ht to work with biblatex-chicago. Compile the MWE below with pdflatex generates the following errors: (/usr/local/texlive/2015/texmf-dist/tex/latex/biblatex/lbx/english.lbx))) ...
4
votes
1answer
23 views

tex4ht discards added spaces

tex4ht discards the added spaces in this document when converting to .odt format (pdflatex file && mk4ht oolatex file). Is there a way to write spacing commands that tex4ht will preserve? \...
2
votes
1answer
92 views

Get key value of command

i'm beginner in Tex and i have tex file \documentclass{article} \addtolength{\jot}{1em} \begin{document} \begin{verbatim} \end{verbatim} \begin{chestnutStem} In the following figure, if the ...
0
votes
0answers
46 views

LaTeX Macros Expanded in Equation

How do expand the user defined macros in the equation when using htlatex? My LaTeX MWE is : \documentclass{article} \usepackage{amsmath,amsfonts} \newcommand\EquationAlt[1]{#1} \def\alp{\alpha_{zzz}^{...
0
votes
1answer
23 views

Verbatim Macro not expanded in htlatex

verbatim Text is not expanding when using htlatex. How to turned on? My MWE is: \documentclass{article} \usepackage{amsmath} \def\myverbtext#1{{\bfseries #1}} \begin{document} This is the sample ...
4
votes
1answer
47 views

tex4ht problem with matlab-prettifier package. lstlisting code shows differently from lstinputlisting

It seems like a lost case using Matlab code in Latex when it comes to tex4ht. I switched to using matlab-prettifier package instead of mcode package to load Matlab code in Latex since I found too ...
1
vote
0answers
25 views

mcode package with tex4ht and lualatex produce invalid HTML for strings in Matlab code

This is a new question following the one tex4ht-scrambles-some-matlab-code-when-using-mcode-package This one fails when Matlab code used has strings in it. tex4ht removes the single quote around the ...
15
votes
1answer
2k views

error using pgfsysdriver with tex4ht, only shows up with texlive 2014, ok with texlive 2013

Update: Thanks to the comments below. Using the link by Michal below, it appears this is a known bug but the fix was not in 2014. Doing the change as pointed out in the link below, seems to have fixed ...
2
votes
1answer
40 views

How can I add custom HTML code to the beginning and end of the body element with tex4ht?

I need to convert a Latex document to several HTML files. I'm using tex4ht for this. What I need next is to add some features to the web pages. I managed to add the needed extra elements in the head ...
1
vote
1answer
34 views

since update, Problem with greek and hindi in polyglossia + tex4ht

I updated my texlive (for windows) and I have now a problem when I load hindi and greek languages. Everything worked fine a few days ago. I have the latest version of alternative4ht when i write this. ...
2
votes
1answer
17 views

Add a css class to graphics in tex4ht

So I have this \includegraphics[width=0.5\linewidth]{./src/images/screenshot--superman.png} And using make4ht (tex4ht) it generates the following markup (I'm pasting it as outputed): <p> &...