Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

When viewing any Wikipedia article, it is possible to export the article to a number of formats, including PDF. My instinct told me they would use some TeX system (plainTeX, LaTeX, ConTeXt, etc.), but it doesn't quite fit the bill. The result looks 'nice'-ish, but nowhere near TeX's standards.

So, if not TeX, what does Wikipedia use?

share|improve this question
1  
@Downvoter(s?): This question is within the scope of the FAQ: Wikipedia behaves like an application offering advanced editing, subscribing, sharing, import, and export facilities for information dissemination. This is a question regarding the implementation of this system. –  Sean Allred Jun 4 '13 at 17:19
add comment

1 Answer 1

up vote 3 down vote accepted

If you're talking about Special:Book, then that comes from the Collection extension. That in turn uses several backends for generating the various formats. For PDF, the PDF Writer extension is used:

The PDF Writer uses the Python Reportlab libraries to generate PDF based on a DOM derived from parsing mediawiki-markup using the mwlib parser.

share|improve this answer
    
Just makes me wonder why they chose this over an honestly better solution; markup-markup is generally an easy transformation (especially with the logical markup in LaTeX). But I suppose since the work was already done, no need to reinvent the wheel twice. Meh. –  Sean Allred Jun 4 '13 at 17:23
add comment

Your Answer

 
discard

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.