Questions tagged [tex4ht]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
343 views

Want to use PDFLaTeX in htlatex comand

My document is based on PDFLaTeX, if I run the TeX application file through PDFLaTeX, then I don't have any issues, but if I run the same file for HTML conversion through TeX4ht, then the following ...
1
vote
1answer
405 views

Include JavaScript code in HTML using tex4ht

I have trouble including JavaScript code in the HTML header generated by tex4ht. The script I want to include is: <script type="text/javascript"> var _gaq = _gaq || []; var pluginUrl = ...
2
votes
1answer
64 views

using the “mouseover” option to htlatex gives error: “missing file xhtex”:

I would like to use the mouseover option to htlatex, but it seems the file is missing from the texlive distribution. I have tried to find it, but it doesn't seem to exist anywhere any longer. Does ...
3
votes
1answer
339 views

tex4ht gives !Package amsmath Error: \tag not allowed here

This might be an known limitation in tex4ht, I do not know. But this MWE below gives the error ! Package amsmath Error: \tag not allowed here. Only when run with make4ht. No error with lualatex nor ...
2
votes
1answer
70 views

Convert a document using ebproof to HTML?

I have a very simple document using ebproof that I'd like to render to both PDF and HTML: \documentclass[12pt, letterpaper]{report} \usepackage[utf8]{inputenc} \usepackage{ebproof} \begin{document} ...
1
vote
0answers
74 views

Why I am getting two type of html files on header portion

I have a *TEX file and running the htlatex and getting the below two type of headers in different machine's. htlatex %1 "tex2htm,xhtml,mathml,charset=utf-8,fn-in" "-cunihtf -utf8" Ist Machine: &...
0
votes
1answer
47 views

* or dagger footnotes value change in tex4ht

I am new to tex and converting html using tex4ht option, while converting my tex file * footnotes changed to 1 in converted html files. Latex File \documentclass[]{book} \usepackage{amsmath} \...
2
votes
1answer
351 views

Can we simplify the \Configure coding in CFG file in tex4ht

I m new to tex and using tex4ht conversion with a ".cfg" file. In that I need to configure more than 600 elements. Hence I need to add for all the 600 elements in cfg. Example: sample.tex: \...
4
votes
2answers
230 views

.css generation from .cls file not from the .cfg file

Is this possible to generate the .css file based on the customized .cls file not from config file (i.e. \Css {}). e.g., environment quote was defined in my class file as: \newenvironment{quote}% ...
3
votes
1answer
385 views

Converting LaTex to HTML keeping equations as LaTeX except for labels

Converting LaTeX to HTML keeping equations as LaTeX explains how to use \VerbMath in tex4ht to convert LaTeX to HTML while keeping equations the same. For reference I'll add that for multiple lines ...
0
votes
1answer
55 views

customized .4ht files keep in a particular path

How to configure a customized .4ht and .cfg file which kept in a particular folder when doing HTML conversion? Regards, MadYuv
0
votes
1answer
93 views

Own style creation by using TeX4ht

I have given my tag below: \documentclass{book} \newcommand{\HalfTitle}[1]{\large#1} \begin{document} \HalfTitle{Half Title} \end{document} I need this in HTML output as: <HalfTitle> Half ...
1
vote
2answers
223 views

Is there a command line flag in htlatex to select options for hyperlinks?

I'm using htlatex to generate html files from LaTeX input. It's working fine. However, I'd like 2 versions of the html output file: one where the hyperlinks point to files on the hard drive for ...
3
votes
1answer
238 views

Configure tex4ht/oolatex output

I use the command mk4ht oolatex to convert a simple latex document to odt. So far, it works quite well with a basic document. However, tex4ht inserts a section break before and after some environments,...
0
votes
2answers
170 views

why tex4ht ignores\vspace{}? Or how to reduce vertical space between two paragraphs?

I spend an hour on this and can't figure how to make tex4ht simply reduce the space between two paragraphs (at selected location, not globally for all the document). I tried everything I know, which ...
1
vote
0answers
72 views

cite configure in tex4ht

I am trying to configure the \cite command for the xml structure in <xref rid="cite" bibid="aa">[1]</xref> with the two things need to be configured: In the bibid ="" original \cite{...
1
vote
1answer
177 views

customized thebibliography environment in tex4ht

I am trying to create the following xml structure through tex4ht <ref-list> <title>Bibliography</title> <ref id="bib_ch0_001" bibid="aa"><label>[1]</label><...
3
votes
1answer
96 views

Colortbl messing up array in htlatex

When compiling the following example with htlatex: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{colortbl} \usepackage{amsmath} \begin{document} \[\begin{array}{|l|c|} \hline ...
1
vote
1answer
85 views

why tex4ht ignores fontsize on document title?

When I compile to PDF this latex file \documentclass[11pt]{article} \begin{document} \title{\footnotesize my title} \author{me} \maketitle This is a test \end{document} The fontsize of the title ...
1
vote
1answer
54 views

why tex4ht adds an extra newline when using \begin{description} after \item?

Tex4ht does not seem to behave well when using \begin{description}. It produces output where it adds new line after each item[x] entry. While in PDF it works correctly. Here is below a MWE and ...
3
votes
0answers
90 views

How to configure customized \ref, \pageref in TeX4HT

Is possible to configure the below XML structure for \ref, \pageref and natbib cite commands such as \citep, \citealt etc.., ? see Chapter <xref ref-type="book-part" rid="11">11</xref> ...
3
votes
1answer
135 views

Environment with optional argument configuration in TeX4ht

I am tried to create configure the below environment with optional argument in TeX4ht \newenvironment{proof}[1][Proof]{\textit{#1}:\ \ignorespaces} {} MWE \documentclass{...
2
votes
1answer
90 views

customized figure and \includegraphics elemnt in tex4ht

I try to configure the below xml structure through TeX4Ht <fig id="fig_ch1_001"> <label>Figure 1.1</label> <caption><title>Sample Text</title></caption> <...
2
votes
1answer
70 views

PDF image files and `htlatex` with escaped characters in filenames

I'm preparing a TeX document including PDF figures as an HTML document. The solution to this question works fairly well: PDF image files and `htlatex` However it does not handle image filenames with ...
2
votes
2answers
70 views

different result from tex4ht vs. pdf when using macro call

I have a small macro that I use to help me build some links. This below is a very simplified version of the problem. Some links have # in the URL. So I had to escape # using \#. This works ok in ...
1
vote
1answer
199 views

Using \it, \bf in the tex file need to be convert as <italic> and <bold> in TeX4HT

When i am using \it and \bf in the tex file need to be configured as <italic> and <bold> in the tex4ht, I had already configured \textbf and \textit in my cfg file, i am getting the ...
2
votes
1answer
208 views

How to configure the customized theorem environment in TeX4ht

When i am trying to configure the customized theorem environment in TeX4ht, getting wrong output as expected MWE \documentclass{book} \newtheorem{theorem}{Theorem} \newtheorem{theorem*}{Theorem} \...
5
votes
1answer
715 views

Xelatex conversion to .doc/.odt/.rtf/.html after running biblatex?

This question is similar to many others posted on these forums, but the answers I have seen have not solved my problem (e.g. at Converting Latex to MsWord .doc or .rtf). Please forgive me if this is ...
1
vote
1answer
127 views

tex4ebook with diacritics and tibetan font

I'm trying to convert to ePub an english commentary of a Tibetan text which includes some mantras in Tibetan writing and helpful pronunciation, using tex4ebook. The follow test.tex is an example: % !...
2
votes
1answer
180 views

More TeX4ht issues with chrome and safari

Take the following simple latex file \documentclass{article} \usepackage{amsfonts,amsmath} \newcommand\R{\mathbb{R}} \begin{document} $\overrightarrow{AB}$ $|\mathbf{v}|$ $e^{x^2+y^2}$ $\...
3
votes
0answers
108 views

tex4ht/tex4ebook: resetting footnote counter, allowing for multiple footnotes with same number

I've got a book containing multiple articles. Since each article is a text on its own, I reset the footnote counter to 0, whenever a new article starts, so that the numbering of the footnotes starts ...
0
votes
0answers
76 views

TeX4ht: HTML export file is just unformatted plain text

I am trying to export a TeX file to HTML. However, I am encountering problems because the resulting HTML file is just plain text without any structure or format, so it is unusable. I am using MiKTeX ...
1
vote
1answer
192 views

Retain display equation as tex code in tex4ht

I want to retain the equations unchanged (for later usage), i tried with the help of Tex4ht leaving equations unchanged, it is working for inline equations, I need to retain for display equations such ...
2
votes
2answers
238 views

TeX4ht issue with chrome

Consider the following very simple LaTeX file: \documentclass{article} \begin{document} \( z=e^{x^{2}+y^{2}} \) \end{document} Run it through TeX4ht using the command make4ht -c config.cfg where ...
2
votes
0answers
83 views

Another problem with pstricks and htlatex/tex4ht

The latex file \documentclass{article} \usepackage{pst-all,pst-3dplot} \begin{document} \begin{pspicture*}(-4,-4)(4,4) \psplotThreeD[linecolor=blue, plotstyle=curve, drawStyle=yLines, ...
2
votes
1answer
147 views

How do i get a minitoc in a seperate navigation bar with htlatex?

I have a two column html output, in one column the text, in the other the TOC to navigate. However, my complete TOC has 100 entries and is thus confusing. How can I get the minitoc for each part only ...
2
votes
1answer
313 views

Choppy equations with tex4ht

I am using MikTeX with Windows 7. I have installed tex4ht using the package manager. The conversion of formulae are not ideal. Some formulae seem a bit choppy while others seem very horrible. Example ...
1
vote
1answer
380 views

Can htlatex be used with biblatex these days?

The seems to be a never ending story of incompatibilities between htlatex and biblatex. What is the current state of affairs here? I can't seem to get htlatex to pick up the biblatex citations. It ...
1
vote
1answer
130 views

Export to HTML where each section is a sub-page

I have my CV on LyX/Latex. It contains many different sections like publications, conferences, proceedings, etc. I would like to export it to HTML in order to create a website, so that each of the ...
2
votes
1answer
52 views

unwanted para tag `<p>` is coming at the end of the section in tex4ht

I am trying to change the \Configure{section} for the customized tag <div> and <title> I am using the below tex coding \documentclass{book} \usepackage{amsmath} %\usepackage{macros} \...
1
vote
1answer
58 views

How to put the <p>…</p> tag very first para in the environment like theorem

I am trying to create a one environment in tex4ht, in the html file <p>... </p> tag is missing in the very first para of the environment I am using the below tex coding \documentclass{...
2
votes
1answer
59 views

How to get the below List structure in TeX4Ht

I am trying to get the below xml structure through the TeX4ht the first list should be tagged as <list1 type=""><item1><p><label>1.</label>....</p></item1> ...
1
vote
1answer
320 views

SVG math/other symbols in htlatex: Using something other than pstoedit

I have one file, and I want to alternately produce printable PDF files via xelatex and HTML pages via htlatex. By default, htlatex produces just really ugly, low-resolution PNG equations. I want SVG ...
1
vote
0answers
149 views

math corruption in tex4ht when using adjustbox and \tcbuselibrary{listings}

I am using latest update of TexLive on Linux. I just found one of my large files has all the math generated by tex4ht corrupted or missing from the web page. This only affects the math itself. Nothing ...
6
votes
1answer
3k views

How to convert .tex file to .doc file with tex4ht

I would like to convert a tex file 'test.tex' into something that can be read by OpenOffice (.rtf, .doc, .docx..). (I would like to write my PhD Thesis with Latex/Knitr by my suppervisors don't want ...
1
vote
0answers
199 views

How to get decent math rendering with Tex4ht?

After resolving the hyperref issues with tex4ht, I'm still having issues with the math rendering. The following MWE compiles fine with pdflatex, except for the d operator: \documentclass[a4paper, ...
1
vote
1answer
163 views

Repeating <div> tag in the TeX4HT; how to suppress the repeated tag in the tex4ht?

I am new to TeX4HT, I tried to write a .cfg for quote environment, i have used the below tex coding \documentclass{book} \begin{document} \begin{quote} Sample para 1 Sample para 2 \end{quote} \end{...
1
vote
1answer
168 views

Change the appearance of the section and subsection of the TOC of an epub tex4epub tex4ht

I hope that @michal.h21 can help me. I tried your solution which works well, but I did not mention that the section and subsections too are modified. I generalized the situation with the following ...
3
votes
1answer
421 views

Ideal directory structure for make4ht, clean build

It's being suggested make4ht can replace the functionalities provided by htlatex (i.e. question) to generate HTML from LATEX documents. I'm interested on it. Particularly, I would like to put in ...
2
votes
1answer
429 views

! Paragraph ended before \:tempc was complete. tex4ht error

This is a very strange error, and I am not able to figure it out. Took me long time to narrow it down to this MWE. tex4ht gives this strange error (/usr/local/texlive/2016/texmf-dist/tex/latex/...

1
3 4
5
6 7
14