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

learn more… | top users | synonyms

43
votes
5answers
3k 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 ...
37
votes
5answers
36k 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 ...
37
votes
5answers
19k 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?
27
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 ...
26
votes
1answer
4k 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 ...
24
votes
1answer
408 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 ...
19
votes
6answers
8k 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 ...
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 ...
17
votes
2answers
4k 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 ...
16
votes
4answers
3k 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 ...
13
votes
6answers
2k 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
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 ...
12
votes
1answer
2k 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 ...
12
votes
1answer
512 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
2answers
3k 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. ...
10
votes
4answers
2k 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 ...
10
votes
2answers
345 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 ...
10
votes
1answer
212 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
1answer
4k 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 ...
9
votes
1answer
2k 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
270 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
0answers
6k 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 ...
8
votes
5answers
3k 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?
8
votes
3answers
3k 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?
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
258 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
1answer
120 views

Turn website into novel

I would like to use TeX to typeset Søren Kierkegaard's complete works, which are available online here. It includes a collection of notes in a separate XML file which I would like to add to the ...
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 ...
7
votes
1answer
145 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
125 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
88 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
2answers
873 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 ...
7
votes
3answers
437 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
260 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
149 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
519 views

How can I make bash-code look good both in LaTeX and HTML?

As I am new to Latex and this kind of typing in general, I find myself in need of some basic guidelines when it comes to how to make things look good in text. I have a document that looks good when ...
6
votes
1answer
845 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 ...
6
votes
1answer
263 views

Converting LaTeX to HTML but keeping equations as LaTeX

I'm using tex4ht for conversion of heavily maths loaded LaTeX files into HTML to be able to serve them in a web app. Can successfully convert all equations to MathML and jsMath. But as equations are ...
6
votes
1answer
1k views

Bibtex to html/Markdown/etc., using Pandoc

It seems that Pandoc is capable of dealing with references given in a .bib file. Yet, I haven't been able to simply ask Pandoc to convert a .bib file into html, markdown or other formats. Is there a ...
6
votes
1answer
332 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
480 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
0answers
185 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
107 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
220 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
4answers
679 views

How can I map HTML named entities to LaTeX commands?

Specifically, I would like to be able to complete this table: symbol html entity LaTeX command \deg &deg; \begin{alltt}\deg{alltt} So that I have an entry for every HTML ...
5
votes
1answer
129 views

Are there efforts to develop a standard for (La)TeX-like math syntax?

One of the reasons many people in technical disciplines start using LaTeX in the first place is for the ease of typesetting mathematical formulas with it. In some circles, LaTeX-like syntax has become ...
5
votes
1answer
411 views

Control the <p> tags added by Tex4HT

TeX4HT allows to reset LaTeX macros to insert HTML code in order to produce clean HTML documents. This is great, but it often gets in a mess of <p> tags, such as: <p class="noindent" ...
5
votes
3answers
555 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
2answers
948 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: ...