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

learn more… | top users | synonyms

1
vote
0answers
33 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
53 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
46 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 ...
3
votes
1answer
56 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
42 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
54 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
59 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
18 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
67 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
89 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
42 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} ...
0
votes
1answer
21 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
43 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
155 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
38 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
32 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
15 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
36 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 ...
3
votes
0answers
115 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
90 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
37 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
21 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
22 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
41 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
35 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
39 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
31 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 ...
1
vote
1answer
26 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
79 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
125 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
113 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
85 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
40 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 ...
1
vote
0answers
30 views

tex4ht: bot symbol in hypertarget

I use tex4ht to compile my document. However I have one problem with $\bot$symbol. Command \hypertarget{Symbol$\bot$test}{UserText} leads to compilation error: Missing \endcsname inserted ...
2
votes
1answer
38 views

A manually created suffix for section titles compiled using tex4ht

I am building a document that looks one way with xelatex and another plain text file appearance using tex4ht. I produce an html document that then produces a great document that can be copied into ...
2
votes
0answers
29 views

texh4ht how NOT to print math as images when math is displayed

Edit: I use an extension of tex4ht, https://github.com/michal-h21/helpers4ht ================================ I define a trivlist2 in order to control the space around \[ and \]. I want tex4ht to ...
2
votes
0answers
33 views

tex4ht configure a personal list after the configuraiton of enumerate

Edit: I use an extension of tex4ht, https://github.com/michal-h21/helpers4ht ================================ I have defined a customized list MYLIST in my .tex. this list MYLIST is very simple: I ...
3
votes
1answer
55 views

tex4ht: problem with Index compilation

I have problems with index section. I use tex4ht to compile my manual to html file. In case if makeindex and begin{document}/end{document} commands are located in included file, compilation if ...
0
votes
1answer
20 views

make4ht force the beginning of the sentence on a new line, when the beginning of the sentence would be near the border of my window

I convert my .tex into .html with the command make4ht -ul hello.tex but I see that the html language allows for the beginning of a sentence very near from the end of the screen. For instance, it ...
3
votes
1answer
53 views

tex4ht turning the unbreakble space by ~ into unbreakable space in the html

Following my problem concerning spaces from unbreakable (thin) space inside « », for tex4ht I edited my message with the following use of the working trick from @michal.h21 ...
1
vote
1answer
44 views

keeping \parskip=0pt in HTML with take4ht

I have a problem with setting \parskip=0pt, not in my .pdf, but in my .html I want a new environment with \parskip=0pt, but make4ht -ul myfile.tex does not respect my deifnition. There seems to be a ...
1
vote
0answers
58 views

Can't include diagram with tex4ebook

I would like to convert a scientific book with lots of formulas and tables to epub3. So far I have read all the posts that are tagged and related to tex4ebook, tex4ht etc. and I have managed to ...
5
votes
1answer
98 views

unbreakable (thin) space inside « », for tex4ht

EDIT: @michal.h21 you tip works well, but if I use a numerical code such as &#8201; for thin space, instead of its name &thinsp; in your modified trick, \def\mythinspace{\HCode{<span ...
1
vote
0answers
59 views

tex4ht doesn't work after an update of TexMaker

tex4ht doesn't work after a recent update of TexMaker When I try to export via tex4ht I got this message : "htlatex" "C:\Users\serge\Desktop\BERNARD\FAUST.tex" " " " " " " -interaction=nonstopmode ...