TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to display a document on my webpage that has a quality of a LaTeX output, such as PDF, PS, DVI. (Plain HTML does not have that quality -- the text is not as "nice" to read.)

However, I also would like to be able to play around with that document. For example, one thing I imagine is that when clicking on a link within the text, a figure corresponding to that link shows up on the webpage. If the text is plain HTML, I can imagine doing that with JavaScript. But with PDF, the text must be displayed in some PDF reader, and I know of no way to do that.

Is there a good solution?

share|improve this question
HTML simply doesn't have the means to be as nice as a typeset document. On the whole this is more of a pipe dream, but having figures put in a lightbox would be pretty awesome. – Sean Allred Apr 5 '13 at 11:08
up vote 1 down vote accepted

Have a look at dvisvgm, which converts dvi to high-quality svg. Most modern browsers display svg files.

Unfortunately, dvisvgm doesn't support the conversion of hyperref specials (yet), although the svg format supports links. But you could edit the svg and add links or other fancy stuff.

share|improve this answer
Update: Since version 1.3 dvisvgm has support for hyperref. – Alex Jun 17 '13 at 16:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.