Benutzer:Dirk Huenniger/wb2pdf
[Bearbeiten] Summary
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 it converts Wikipedia to LaTeX.
[Bearbeiten] Installation on Windows
- Get wb2pdf https://sourceforge.net/projects/wb2pdf/files/ Download wb.7z in the latest folder
- unpack wb2pdf with 7zip
- start run.bat
[Bearbeiten] Installation on Ubuntu
see Installation Instructions for Ubuntu
[Bearbeiten] Installation on Fedora
see Installation Instructions for Fedora
[Bearbeiten] Users Manual
see Users Manual
[Bearbeiten] LaTeX intermediate Code
You will find it in
wb2pdf/trunk/document/main/main.tex
The command to compile it is
pdflatex -interaction=nonstopmode main.tex
where nonstopmode is important, because of the way LaTeX works you have to run it three times in order to get correct pagination, references and table of contents.
[Bearbeiten] Media
[Bearbeiten] Talk
[Bearbeiten] Slides
[Bearbeiten] Poster
[Bearbeiten] In Action
To see it in action look here: Datei:Wb2latexCompilingWikibook2PDF.ogg
[Bearbeiten] Developers
The follwing Link Benutzer:Dirk Huenniger/wb2pdf/details explains some of the inner workings of the software.
[Bearbeiten] Independent Installation on MikTeX
In order to compile the code on you own installation of Miktex. You have to install the font megafont.ttf manually, which is included in the release. Furthermore you have to install the cjk-fonts and cjkpunct packages with the mpm.exe package manager. For Installing this font it is helpful to read this tutorial [1]. If you don't understand the tutorial you can look at other tutorials describing the installation of cyberbit.ttf and replace cyberbit.ttf with megafont.ttf at the appropriate places. Particularly you will not need to install cyberbit.ttf in any way.
[Bearbeiten] EBook Readers
Some Ebook readers do not support pdf but use epub instead. In these cases it is possible to compile the LaTeX file to HTML with tex4t and convert the html file to epub with calible. You have to modify the files packages1.tex and packages2.tex following the instructions given in these the files themself, look for the string tex4ht. After that you can compile with:
htlatex main.tex tex4ht main -cunihtf -utf8 -e/etc/tex4ht/tex4ht.env
Possible you need to swich the encoding to utf-8 in main.html