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

learn more… | top users | synonyms

2
votes
1answer
24 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
52 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? ...
1
vote
0answers
40 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 ...
2
votes
1answer
38 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....
6
votes
1answer
44 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 ...
4
votes
2answers
51 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 ...
4
votes
0answers
44 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
64 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
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
41 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
54 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
20 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 ...
3
votes
1answer
55 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 ...
2
votes
1answer
49 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}{...
3
votes
1answer
67 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} \...
2
votes
1answer
44 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
61 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 ...
3
votes
0answers
60 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 ...
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? \...
3
votes
1answer
70 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 ...
2
votes
1answer
91 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
22 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
45 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
24 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 ...
1
vote
0answers
21 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 ...
7
votes
2answers
164 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))) ...
2
votes
1answer
39 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
16 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> &...
1
vote
1answer
38 views

tex4ht scrambles some Matlab code when using mcode package

I noticed that tex4ht do not generate correct code for typesetting Matlab code listing. It does not like .^ in the Matlab code, and it generates funny looking character in its place. MWE \...
4
votes
0answers
140 views

Conversion to *.odt - error in odt's styles.xml

I'm trying to turn my latex document into an odt file to be able to open it with LibreOffice (to then be able and save it as MS Word file so colleagues can open and comment on it). Although the file ...
1
vote
1answer
146 views

Converting to html keeping equations as latex and using dollar signs

I can convert tex to html keeping equations as latex (to be rendered by MathJax) but using multiple dollar signs in a paragraph poses a problem. If there's only one dollar sign in a paragraph, using \...
1
vote
1answer
41 views

tex4ht: Cannot compile document with \vref command

I use tex4ht to compile my document. In case if I use \vref command in my document, compilation fails with error: Undefined control sequence How to handle this situation?
2
votes
1answer
23 views

`make4ht`, `tex4ht`: when called from python, hits a write permission error if input file supplied with forward slashes

I have a directory where I have the following .tex file: \documentclass[fontsize=16pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \...
1
vote
1answer
25 views

`make4ht`, `htlatex`: calls out error when called on an absolute filepath

For this problem, I am using the following .tex file: \documentclass[fontsize=16pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \...
0
votes
0answers
24 views

tex4ht \ifdefined\HCode equivalent for Latex2rtf

One of my favorite features of tex4ht is that I can customize formatting or content depending on what compiler is being used by enclosing code in an if statement that is capable of providing a flag ...
2
votes
1answer
47 views

`make4ht`: increasing font size

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
2
votes
1answer
43 views

`make4ht`, `htlatex`: “cannot read log file” issue with minimal example

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
1
vote
1answer
41 views

cleaner html code from tex4ht

I wish to have cleaner html code from tex4ht, but I am not able to see, form the code from the file, why there are carriage returns in the html code this is the code for tabular. I added several ...
1
vote
1answer
33 views

tex4ht: getting accented letters in small capitals through \selectfont

I try to get small capitals in my html document, but the tex4ht code that I found works only for the command \textsc. however, I enter all my change of font through \rmfamily\mdseries\scshape\...
1
vote
1answer
27 views

Breaking of footnote with pifont in alternative4ht helpers4ht

The last update of alternative4ht, in order to fix the tables in tex4ht see here, has a consequence that the redefinition of \thefootnote with pifont is broken. there are two versions of the ...
2
votes
1answer
85 views

message error in biblatex.4ht with tex4ht, even with no bibliography

I have the following message when I compile a document calling biblatex, whether I run biber or not, in order to create a .bbl. I use Biber 2.3. My file is % biblatex.4ht (2015-08-05-15:37), ...
2
votes
2answers
145 views

How to get Unicode characters into HTML output

I am trying to make a book in both print and ebook. To make the print book I generate a PDF with xelatex. I have reconstructed all the source files to be encoded in UTF-8 and the Cyrillic and ...
2
votes
1answer
35 views

tex4ht non roman languages inside tabular environment

I have tables with accented letters and other non-roman scripts, but they do not appear inside the environment tabular. The letters do appear outside of the tabular environment. i compile with ...
2
votes
1answer
118 views

Renew itemize environment for customization in tex4ht

In a htlatex compiled document a standard enumerated list environment shows up as a <li class="itemize"> tag. For the pdf version I have loaded the enumitem package to aid with list ...
4
votes
1answer
91 views

problem with starred version of \nameref, \autoref, \fullref from hyperref with tex4ht

EDIT:@runartrollet: I clarify the problem. THe pdf outputs as expected the links in every instance of the commands autoref and nameref. and\fullref, starred or not. But the html file, the command ...
2
votes
1answer
44 views

Getting \today in various languages with polyglossia and tex4ht via alternative4ht

When I use the \today macro, I cannot get, in my .html, the display in various languages when I compile the following file from michal-h21 @michal.h21 and sty file of alternative4ht: all my dates are ...
1
vote
1answer
27 views

tex4ht: include *.pdf image - need condition in configuration file

I use tex4ht to compile my document. In case if user includes .pdf image, I handle this situation in the following way (.cfg file): \Configure{graphics*} {pdf} {\Link[\csname Gin@base\endcsname ....