TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 see some .djvu files with worked links, side bar table of content and I can select/search text inside document (with WinDjvu viewer).

How produce .djvu file from LaTeX files?

PS. @Paulo Cereda. Thanks for suggestion. pdf2djvu have build for Windows and present in Debian repo. And do job right!

share|improve this question
Isn't dvju for scanned documents? For Latex-generated content wouldn't a PDF serve just as well, if not better? – Emre Jul 1 '11 at 20:25
PDF is an ISO standard. I doubt the djvu documents can be smaller than PDF given that the latter supports JBIG2 and JPEG2000. Frankly I think djvu is dead. Your documents are more likely to be readable in the future if you use PDF. In any case, do not let me prevent you from trying. Maybe you can do a comparison and show us the benefits. – Emre Jul 1 '11 at 20:37
@Emre I know that wikibooks prefers djvu for technical reasons, though I'm not sure why. – Canageek Jan 28 '12 at 16:50
@JonathanBaldwin Yes, but if you are just stripping the images and text out then you wouldn't be executing any javascript anyway. – Canageek Dec 10 '13 at 20:13
@Emre Djvu uses JB2, which is apparently similar to JBIG2 for one of its compression layers. It is also supported by the Internet Archive's Million Books project, so it isn't totally dead. – Canageek Dec 10 '13 at 20:16
up vote 7 down vote accepted

Short answer: You can't produce DjVu output from LaTeX code directly, just DVI or PDF. You would need a LaTeX compiler which is DjVu capable which doesn't exists and is very unlikely to be every written. So the only way to do this is to convert the produced PDF somehow to DjVu (I wouldn't go from DVI/PS). However, the topic PDF-to-DjVu would be off-topic here.

share|improve this answer
I had to convert pdf files to the djvu format before. IMHO the best option so far is the pdf2djvu project. – Paulo Cereda Jul 1 '11 at 21:14
@Paulo Cereda. Thanks for suggestion. pdf2djvu have build for Windows and present in Debian repo. And do job right! – gavenkoa Jul 2 '11 at 6:26

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.