htlatex is the command that loads a script to invoke the different steps of the conversion process from LaTeX to HTML.
Questions tagged [htlatex]
293 questions
3
votes
1 answer
mathml with actual latex coding in htlatex
I would like to get HTML + MathML with LaTeX equation in the alt attribute.
htlatex filename.tex "xhtml,mathml,charset=utf-8" ' -cunihtf'
My LaTeX MWE is:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
The general form of the…
Balaji
- 2,282
3
votes
1 answer
Htlatex accents in token yields missing \endcsname
I am trying to associate sequence of characters that can contain special symbols (accents, dollars, and in particular inputs in utf8) to some content. This is to be used with htlatex. Accents yield problems as shown in the following…
Thomas Colcombet
- 321
2
votes
1 answer
Running htlatex in a shell script (bash, mac)
I am trying to simply run a command:
htlatex texfilename "xhtml,charset=utf-8"
In a terminal command line, it runs well. If I create a shell script file that looks like:
#!/bin/bash
htlatex texfilename "xhtml,charset=utf-8"
It produces the…
Chang
- 9,528
2
votes
1 answer
Display equation also needs to convert as HTML tag (TeX4ht)
Is this possible to get the simple math as in HTML tag in display math? My tags are follows:
\documentclass{book}
\begin{document}
This is for test $a+b=c$
\[
a+b=c\qquad p_1 = \frac{m}{x_1}- p_2.
\]
\[
ab
\]
\end{document}
In inlinemath,…
MadyYuvi
- 13,693
2
votes
1 answer
htlatex combining multiple command line options
I use htlatex to generate an html file with this command:
htlatex filename.tex "html,1,sections+"
I ran into a problem where the output used iso-88859-1 instead of utf-8, which was solved: Use utf-8 encoding instead of iso-8859-1
The solution was…
J Jones
- 225
2
votes
0 answers
How to get the three alternatives using htlatex (image, mathml, texmath)
I am using htlatex to convert a TeX files to XML file.
I am using mathml options to convert a inline and display equations.
But I need three alternatives in one compilation.
Inline-graphics format (.jpg format)
mathml coding
tex-math coding - CDATA…
CS Kumar
- 1,253
2
votes
1 answer
htlatex having problems with a document written in Spanish?
I don't seem to be able to get past the following error:
[4] [5] [6] [7] [8]
("C:\Program Files (x86)\MikTeX portable\tex\latex\lm\ot1lmr.fd")
("C:\Program Files (x86)\MikTeX portable\tex\latex\lm\omllmm.fd")
("C:\Program Files (x86)\MikTeX…
Xavier Peña
- 225
2
votes
2 answers
htlatex changes \textasciigrave to "Left Single Quotation Mark" (‘)
To display grave accents correctly in DVI and PDF I use \textasciigrave. But htlatex changes this to ‘ (Left Single Quotation Mark). Is this a bug? (I use texlive 2015.)
For…
user3224237
- 341
2
votes
1 answer
Defining XML output for operator
I am converting LaTeX to docbook with the following command
htlatex filename "xhtml,docbook-mml" " -cunihtf" "-cdocbk"
Now, unfortunately, the \cdot operator gets lost during translation. (It simply disappears.)
How can I define an XML sequence…
JohnB
- 537
2
votes
0 answers
Latex to HTML problem with fractions
im using htlatex to transcript a latex file to html for a web application. It seems to work fine with most of my equations, but as soon as I use \frac or \dfrac the images of the equations become very blurry. Somehow I also had to stop using the…
Max M
- 313
2
votes
1 answer
How to convert pictures to Open Office format (odt) using htlatex?
I am trying to convert a non scientific content (text with pictures) into .odt format, the only one accepted by a site for writers to upload material. The following command works nicely for the text, but the pictures do not have the proper…
Yves
- 2,825
1
vote
1 answer
command \\ within HCode
how can I use the command \\ within HCode? Within a javascript part which I embed with HCode, I need to use "\\alpha", however my htlatex always returns strange…
ChristianB
- 75
1
vote
0 answers
\rm \bf command not working in htlatex
When i have using \rm and \bf command in LaTeX file, htlatex does not converted. My MWE is:
\documentclass{article}
\begin{document}
test $AA {\rm asdffda}_BB$ and $\it{italic}_a$ and $\bf{boldtext}_a$
$${\rm textrm}_a and {\it italic}_a and {\bf…
Balaji
- 2,282
1
vote
1 answer
Htlatex with docbook-mml: minus signs vanish
When I compile the following file:
\documentclass{article}
\begin{document}
$2-1$
\end{document}
with the command
htlatex test.tex "xhtml,docbook-mml" " -cunihtf" "-cdocbk"
then the result is
JohnB
- 537
1
vote
1 answer
Configure htlatex with listings to use Javascript renderer
I have a document using a custom environment in the listings package. So I have code embedded like so
\begin{tawny}
(println "hello")
\end{tawny}
My plan is to use some Javascript syntax high-lighter to render this. So I have added this into my…
Phil Lord
- 207