MEDIAWIKI2LATEX(1) | User Commands | MEDIAWIKI2LATEX(1) |
MediaWiki to LaTeX - compile MediaWiki pages via LaTeX to PDF
mediawiki2latex |
[OPTION] -o FILE -u URL |
MediaWiki to LaTeX will fetch MediaWiki pages from a URL. It will fetch all its content recursively, i.e. subpages and pictures. Then the source code is converted to LaTeX, using the user template MAP if specified, or a default template otherwise. The LaTeX output is stored in LATEXTREE if provided. Finally a PDF if generated from the LaTeX source code if an appropriate LaTeX compiler is found. Note that it will automatically run several times to make sure all references are resolved. All steps can be controlled with command-line options.
MediaWiki features a powerful template system which will control the appearance of specific parts in the text. This system can be used to our advantage to further control the appearance of the resulting PDF. You can tell MediaWiki to LaTeX to use the host site template result directly in the PDF, or you can use a custom template of yours. See the $XDG_DATA_DIRS/mediawiki2latex/latex for a template example.
All the downloaded files are kept into memory, so there will not be any MediaWiki files remaining on disk after the process. However, the generated LaTeX files -- the `LaTeX tree' -- need to be written on disk in order to produce the PDF. These files are written to /tmp/MediaWiki$$ by default. This folder will be removed when the program exits.
However you may want to keep the generated LaTeX tree on disk for LaTeX customiwation and to fasten future builds. If you use the -c option to set the LaTeX tree folder, the program will not remove it on exit so you can continue to use it.
To compile the PDF file yourself, simply run `xelatex' on the main.tex file. For instance:
xelatex LaTeX-tree/main/main.tex
You may need to run it several times to make sure all references are resolved.
MediaWiki to LaTeX was mainly developed by Dirk Hünniger <dirk.hunniger@googlemail.com>. Other contributors are listed in the AUTHORS file.
This man page was written by Pierre Neidhardt <ambrevar@gmail.com>.
2013-12-25 | MediaWiki to LaTeX 7.46 |