HTML is a markup language mainly used for creating web pages.

learn more… | top users | synonyms

41
votes
5answers
2k 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 ...
32
votes
5answers
14k views

How do I convert HTML to LaTeX?

I would like a way to convert a document from HTML to LaTeX on a Windows platform. What is my best option?
29
votes
4answers
21k views

Convert LaTeX to HTML

Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird. I actually converted the Latex to PDF without a ...
26
votes
4answers
7k views

Pixel-perfect vertical alignment of image-rendered TeX snippets?

What is the most accurate way to automatically calculate the text baseline in an image that has been rendered from a TeX snippet—so that the rendered image can be given proper vertical alignment in a ...
21
votes
1answer
2k views

Convert Latex to MathJax-HTML

Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with MathJax? (Obviously, it is fairly easy to hack together a quick Perl script that is able to do ...
20
votes
1answer
338 views

What features are supported in a HTML page, but not through PDFLaTeX

As a math educator with limited knowledge of TeX and even more limited knowledge of HTML, I want to know if I can use a PDF page (generated through PDFLaTeX) as a web page. I am hoping not to have to ...
18
votes
1answer
1k views

Converting ConTeXt document to HTML

For LaTeX, I used to rely on htlatex, latex2html, or more rarely tth. I know that we can use XML with ConTeXt, although I have no experience with this, and that Pandoc let us use Markdown syntax and ...
16
votes
5answers
6k views

Tool for manipulating LaTeX tables (HTML to LaTeX)

I am wondering if there is any tool that can help me work with tables in LaTeX. Specifically I'd like to be able to import HTML tables (or small Excel tables) into LateX Are there tools that can help ...
16
votes
4answers
2k views

How to create PDF and HTML output from the same source

I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages pdfpages and pdftex and commands like includepdf{}. But soon ...
12
votes
6answers
1k views

Is there some typesetting system that uses XML notation?

Is there some typesetting system that uses XML for notation? This is no offense, but I don't like to type \emph{This \emph{text} is important} despite the fact that there are editors that can do it ...
12
votes
1answer
1k views

Can you have hyperlinks to locations in different PDFs?

It's possible to hyperlink to another PDF file using Adobe Acrobat using the following LaTeX code: \href{run:target.pdf}{Click me!} If this is placed in source.pdf, then you can click on the ...
11
votes
2answers
2k views

PDF image files and `htlatex`

When eps files are provided, htlatex from tex4ht automatically converts to png files so that graphic files can be shown in the final html output. However, I use most of the time the pdf graphic file ...
11
votes
1answer
2k views

\listings code style for HTML5 (CSS, HTML, JavaScript)

I would like to create a code style for HTML5 that can be used with the \listings package. An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
11
votes
1answer
414 views

Beamer and JavaScript in a web browser

I have written a talk in Beamer and to illustrate one of my points I've written a program in JavaScript (well actually Processing). You can view it here (it seems to run ok in Chrome and Firefox, and ...
10
votes
1answer
193 views

Width threshold for space detection

I'm writing this stuff pdf2htmlEX, for each distance between two consecutive letters, I need to check if there should be a space character or not. Especially for PDF files generated by LaTeX, which ...
9
votes
2answers
2k views

How to Convert XeTeX to HTML

I realize its too much to post the entire document. Here is a small portion of document, it just keep repeating itself for various verses. Sorry this is the minimum example size I could squeeze it to. ...
9
votes
4answers
1k views

Alternatives to bibtex2html

As the title says, are there viable alternatives to bibtex2html for converting bibliographic entries to HTML? I am specifically looking for some command-line utility allowing to export a bib files ...
9
votes
1answer
1k views

Using TeX fonts in HTML documents?

If I want to use TeX fonts (such as cmr10, cmbx10, cmtt10, and so forth) in my HTML documents, what are the recommended ways to do that? As a thought experiment and proof-of-concept, this afternoon I ...
9
votes
1answer
229 views

Producing unformatted html with tex4ht?

When using tex4ht, a formatted html file is obtained. It uses a css file and multiple classes such as <span class="ec-lmbx-10x-x-109">toto</span> However, when using a Content ...
9
votes
2answers
326 views

PDF page references in TeX4ht generated html?

I'm using TeX4ht to make html and epub versions of documents that are also processed to pdf. I'm unclear on how to include some kind of visual page references in the html and epub that correlate to ...
8
votes
2answers
3k views

LaTeX generated website with TikZ diagrams

I am trying to generate my static website with LaTeX to avoid tedious/verbose HTML and underpowered markdown languages. I know of latex2html and htlatex/TeX4ht for generating documents in the HTML ...
8
votes
3answers
2k views

LaTeX to HTML: PolyTeXnic and PlasTeX

I was stunned by the elegant appearance of the Tau manifesto page, for which the source is in LaTeX. The author used a home-made tool that he calls PolyTeXnic, but which he is not willing to release. ...
8
votes
1answer
213 views

Unicode or control sequences?

What kind of troubles may occur if Unicode characters will be entered directly in the following situations (English, no math): Diacritics: for example, ö instead of \"{o}. Em, en dashes and minuses. ...
8
votes
4answers
2k views

Are there any server-side LaTeX to HTML-CSS converters?

I'm looking for something equivalent to MathJax, but that does the conversion(s) from MathML or LaTeX to HTML-CSS on the server backend as my site is rendering the page, rather than relying on ...
8
votes
0answers
5k views

Converting LaTeX to HTML5 [closed]

HTML5 allows for great rendering. Crocodoc for example does a great conversion from PDF to HTML5. Is there any tool to convert LaTeX to HTML5? Does tex4ht support HTML5? Here's an example of what ...
7
votes
5answers
2k views

How to incorporate TeX into a website?

How should I incorporate TeX in a website to render mathematical formulas? If there are multiple ways, what is the easiest way?
7
votes
3answers
2k views

Isn't TeX similar to HTML+CSS?

As I said in the title, isn't TeX "similar" to static web pages? Can you accomplish the same things with both, or is TeX limited to words? Why would one prefer HTML and CSS over TeX, or vice versa?
7
votes
1answer
115 views

Defining HTML-like tags as TeX macros

I have to admit, my catcode skill are not that good. I'm working with some templates that will be filled in by a programme (HTML::Template, made for HTML but very handy for LaTeX as well). I'd like ...
7
votes
3answers
117 views

tabular environment that is similar to html

How can I simulate a HTML table? That is: I want to give the table a maximum width (for example \textwidth) and the table should automatically distribute the necessary space according to the contents ...
7
votes
1answer
3k views

External (HTML) link to a specific page of a pdf file

I want to hyperlink to a certain page of a pdf file created with LaTeX from an HTML context or just as a plain-text link outside the file, e.g. using <a href="...">...</a>. Is it possible ...
7
votes
1answer
47 views

\textminus in tex4ht

Is there a way to make tex4ht aware of the \textminus command? \documentclass{scrartcl} \usepackage{textcomp} \pagestyle{empty} \begin{document} \textminus 5 \end{document} works as expected ...
7
votes
3answers
419 views

zero-installation LaTeX-ish math for casual users?

I teach physics at a community college, often to biology majors who are not math or computer geeks. For certain assignments, I require them to type up materials that include math. A typical ...
7
votes
1answer
255 views

HTML converter possible as a TeX package?

I know there are a lot of threads on existing Tex-HTML converters already, but I have a question about the feasibility of creating one. Existing tools use other scripting languages to parse raw TeX ...
7
votes
2answers
80 views

is there a minimal converter of well-defined latex to xhtml?

is there a good clean minimal converter of well-defined latex code into html (preferably perl)? I have played with htlatex and latex2html, but they are too ambitious and too complex in their goals ...
6
votes
1answer
281 views

htlatex with article vs memoir

Why does the following document (with article document class): \documentclass{article} \begin{document} \begin{tabular}{c|c} \hline 1 & 2 \\ \hline \hline 5 & 6 \\ \hline \end{tabular} ...
6
votes
1answer
200 views

How does an academic publisher work with LaTeX file to produce html pages?

My teacher sent an academic paper written with LaTeX format file to hindawi.com publisher. They did something with our paper and has a public html page like this: ...
6
votes
2answers
710 views

biblatex & TeX4HT: citations in footnotes = missing \begin{document}

the following code, which I'm trying to run through TeX4HT and biber in order to create an .odt file, results in a »missing \begin{document}« error, pointing to the aux file. Something about the ...
6
votes
0answers
95 views

Can LuaTeX create HTML?

I hear that LuaTeX provides access to internals of TeX. Is it possible to modify the output routine with LuaTeX so that HTML is produced instead of DVI or PDF? If possible, are there any projects ...
6
votes
0answers
93 views

Can you run mk4ht on iPad or Android?

I need to create html files from tex using mk4ht on an iPad or an Android tablet... Is there any way to run mk4ht on iOS or Android? Preferably without requiring Internet connection, but if that's not ...
5
votes
2answers
164 views

How to convert mdash into LaTeX markup?

I am converting HTML markup into LaTeX markup by using sed command. I need to convert &mdash; into its corresponding LaTeX markup. How can I implement it? &mdash; into LaTeX markup
5
votes
3answers
439 views

LaTeX to HTML - Square roots

I used SimpleTeX4ht to convert a LaTeX file to HTML. The file is fine except that square roots are rendering badly in juxtaposition with the rest of the text, e.g. like: Any suggestions on how to ...
5
votes
1answer
767 views

When generating html, how do you specify image size?

I am using htlatex (or as many people call it tex4ht) to generate html and I have included some graphics. Htlatex seems to ignore all the size arguments I give the image size. I've tried specifying: ...
5
votes
1answer
157 views

How to print HTML entities in Latex using pdflatex

I've string of HTML entities containing characters in devnagri font. Sample HTML Entity String is : <h1>&#2311;&#2344;&#2346;&#2369;&#2335; ...
5
votes
1answer
659 views

Lightweight equivalent of \cref and \Cref

I'm trying to convert my LaTeX document to HTML using HeVeA and I'm facing a problem with cleveref package -- my LaTeX file uses \cref and \Cref heavily, but hevea doesn't support this package by ...
5
votes
1answer
330 views

Beamer (with style) to Html5?

My organization require the use of a standardized powerpoint template for how slides should look, so I've written my own Beamer .sty (style file). Then I write .Rnw-files in RStudio that I knit ...
5
votes
1answer
136 views

How to use decimal HTML characters

How do I use decimal based HTML characters such as these: &#64337;&#64338;&#64339;&#64340;&#64341;&#64342;&#64343;&#64344;&#64345; with a special truetype font ...
5
votes
1answer
121 views

Missing <sub> tags in tex4ht output

When processing a LaTeX source with tex4ht, I can't seem to reliably convert subscripts in text mode to <sub> tags in the HTML output. My only solution so far is to switch to math mode. But for ...
5
votes
1answer
219 views

Override properties of a predefined listing style

I use the listings package and I want to override an attribute of the HTML style. Unfortunately my code overrides the whole HTML style and not just a single property: \lstloadlanguages{HTML} ...
5
votes
1answer
61 views

Latex to html : how to add rules like `\subsubsubsection` for htlatex / TeX4ht?

I added some rules on my repport in order to add \subsubsubsection. On below the MWE : \documentclass[a4paper,11pt,french]{report} \usepackage[francais]{babel} \usepackage{titlesec} ...
5
votes
1answer
198 views

Embed HTML in LaTeX document

Is it possible to run HTML code in a Latex document? Probably not since I never seen it. Soundcloud have an miniplayer that you can embed in your homepage to give the reader the possibility to play ...