Benutzer:Dirk Huenniger/wb2pdf

Aus Wikibooks
Wechseln zu: Navigation, Suche

Summary[Bearbeiten]

Wb2pdf converts MediaWiki markup to LaTeX and PDF. So it provides and export from MediaWiki to LaTeX. It works with any project running MediaWiki, especially you can use it to convert Wikipedia to LaTeX format.

Online Version[Bearbeiten]

http://mediawiki2latex.wmflabs.org/

Installation on Windows[Bearbeiten]

  1. Get wb2pdf https://sourceforge.net/projects/wb2pdf/files/ Download "MediaWikitoLaTeX.zip" in the latest folder
  2. unpack
  3. start "MediaWiki to LaTeX.exe"

Installation on Ubuntu[Bearbeiten]

sudo apt-get install mediawiki2latex
mediawiki2latex

Installation on Linux other than Ubuntu[Bearbeiten]

I recommend to use virtualbox or an other kind of virtual machine and run Ubuntu in there. The program itself is already larger than Ubuntu, so installing Ubuntu does actually not cause much overhead. The large size of the program results from many dependencies to latex packages and fonts, and the way they are packaged. In total a bit more than 1 GByte of packages has to be downloaded during the installation on Ubuntu. The .tar.gz archive of the source code is also available on sourceforge.

Users Manual[Bearbeiten]

see Users Manual

LaTeX intermediate Code[Bearbeiten]

On Linux you can use the -c command line option with an absolute pathname. On Windows you can also use the -c command line option or pause the LaTeX compiler with CTRL-C and look for the source in the temporary directory in case you are running the program via the GUI.

Command Line Version[Bearbeiten]

A command line version is currently available as part of the jessi debian distribution, as well as the current ubuntu distribution. On Windows you find the command line version mediawiki2latex.exe in the src folder of the zip archive. You will need to extract the archive totally and set the current working directory to the src directory since the mediawiki2latex.exe calls the latex compiler using realative pathnames with respect to the src directory.

Media[Bearbeiten]

Talk[Bearbeiten]

File:Wb2pdfTalk.ogv

Slides[Bearbeiten]

Wb2pdfTalk.pdf

Poster[Bearbeiten]

File:Wb2pdfPoster.png

In Action[Bearbeiten]

To see it in action look here: Datei:Wb2latexCompilingWikibook2PDF.ogg

Developers[Bearbeiten]

The follwing Link Benutzer:Dirk Huenniger/wb2pdf/details explains some of the inner workings of the software.

Independent Installation on MikTeX[Bearbeiten]

The source archives produced with the current windows version of mediawiki2latex, do compile flawlessly with the current version of miktex.

Quality and Statistics[Bearbeiten]

A test run in October 2014 processing 4369 featured articles of the English Wikipedia did produce a PDF file in each case. In particular these were all featured articles we were able to find at the beginning of the test.

Support[Bearbeiten]

The project was largely written by Dirk Hünniger. He is currently unavailable. The project is currently maintained by Pierre Neidhardt (ambrevar). We prefer not to give his Email here and ask you to refer to the search engine of your choice in order to find his contact details.