EnglishFrenchSpanish

Ad


OnWorks favicon

mediawiki2latex - Online in the Cloud

Run mediawiki2latex in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mediawiki2latex that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


MediaWiki to LaTeX - compile MediaWiki pages via LaTeX to PDF

SYNOPSIS


mediawiki2latex [OPTION] -o FILE -u URL

DESCRIPTION


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.

OPTIONS


-c, --copy=LATEXTREE
Write all generated LaTeX files to the specified folder.

-g, --vector
Keep vector graphics in vector form.

-h, --html
Use mediaWiki generated HTML as input (default).

-z, --zip
Output LaTeX Source Archive.

-i, --internal
Use internal template definitions.

-x, --hex=CONFIG
Take configuration data from hex encoded string given on the command line. This is
only needed to avoid malicious shell injecion via the web form of the server

-m, --mediawiki
Use mediaWiki to expand the templates.

-o, --output=FILE
Specify the PDF output file.

-p, --paper=SIZE
Set the paper size. Possible values are A4, A5, B5, letter, legal, executive.

-r, --resolution=DPI
Set the maximum image reolution in dot-per-inch. The argument should be an integer.

-s, --server=PORT
Run as server. Listen on PORT

-t, --templates=MAP
Specify the user template map file. Usually called templates.user.

-l, --headers=EADERSPATH
The the path to the LaTeX headers, which should be used. May be omitted. Useful in
combination -t.

-u, --url=URL
The input URI. It should point to a MediaWiki page.

-h, -?, -v, --version, --help
Show help options together with version number.

TEMPLATES


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.

LATEX TREE


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.

The LaTeX tree is made of three folders:

header A folder containing the LaTeX options, the special pages, the package loading, etc.

images All the original picture files used in the article.

main The complete LaTeX version of the source document is stored in main.tex.

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.

AUTHORS


MediaWiki to LaTeX was mainly developed by Dirk Hünniger <[email protected]-
bonn.de>. Other contributors are listed in the AUTHORS file.

This man page was written by Pierre Neidhardt <[email protected]>.

Use mediawiki2latex online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    usm
    usm
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js
    Chart.js
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    will...
    Download iReport-Designer for JasperReports
  • 5
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 6
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • More »

Linux commands

Ad