Cscott has uploaded a new change for review. https://gerrit.wikimedia.org/r/96712
Change subject: Add travis test runner; update dependencies. ...................................................................... Add travis test runner; update dependencies. Note that the version of XeLaTeX is very old; we need to update the hyperref package (and the ltxcmds package it depends on) and the fontspec package (and the l3kernel and l3packages packages it depends on). Note that the new fontspec installation needs to be moved from 'latex' to 'xelatex' to properly override the default xelatex fontspec. The docs and sources have been removed from the tds installation bundles in `texdeps` in order to avoid bloating our repository. Change-Id: Ic8647430bd2f6255b1d3efb8b0313741047d2876 --- A .travis.yml A AUTHORS.md M README.md A texdeps/fontspec.tds.zip A texdeps/hyperref.tds.zip A texdeps/l3kernel.tds.zip A texdeps/l3packages.tds.zip 7 files changed, 31 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer refs/changes/12/96712/1 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c57db6c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: node_js +node_js: + - "0.10" + - "0.8" +before_install: + - sudo apt-get update -qq + - sudo apt-get install -qq texlive-xetex texlive-latex-recommended texlive-fonts-recommended imagemagick unzip + - mkdir ~/texmf + - unzip -d ~/texmf texdeps/fontspec.tds.zip + - cp -r ~/texmf/tex/latex ~/texmf/tex/xelatex + - unzip -d ~/texmf texdeps/l3kernel.tds.zip + - unzip -d ~/texmf texdeps/l3packages.tds.zip + - unzip -d ~/texmf texdeps/hyperref.tds.zip diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 0000000..8fc9aaa --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,3 @@ +`mw-latexer` was originally written by C. Scott Ananian. + +It is now maintained by the Wikimedia Foundation and volunteers everywhere. diff --git a/README.md b/README.md index 2ae5ce4..7c07c05 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # mw-latexer +[![Build Status][1]][2] [![dependency status][3]][4] [![dev dependency status][5]][6] + Converts mediawiki collection bundles (as generated by mw-bundler) to beautiful PDFs (via [XeLaTeX][]). @@ -7,8 +9,7 @@ ## Installation -I'm using node 0.10. Probably any recent node will work; I haven't tested -others. +Node version 0.8 and 0.10 are tested to work. Install the node package dependencies. ``` @@ -17,8 +18,12 @@ Install other system dependencies. ``` -apt-get install texlive-xetex imagemagick +apt-get install texlive-xetex texlive-latex-recommended texlive-fonts-recommended imagemagick unzip ``` + +Note that up-to-date LaTeX `hyperref` and `fontspec` packages are +required. If your LaTeX installation is old, you can find recent +versions in `texdeps/`. ## Generating bundles @@ -51,3 +56,10 @@ GPLv2 (c) 2013 by C. Scott Ananian + +[1]: https://travis-ci.org/cscott/mw-latexer.png +[2]: https://travis-ci.org/cscott/mw-latexer +[3]: https://david-dm.org/cscott/mw-latexer.png +[4]: https://david-dm.org/cscott/mw-latexer +[5]: https://david-dm.org/cscott/mw-latexer/dev-status.png +[6]: https://david-dm.org/cscott/mw-latexer#info=devDependencies diff --git a/texdeps/fontspec.tds.zip b/texdeps/fontspec.tds.zip new file mode 100644 index 0000000..a545aea --- /dev/null +++ b/texdeps/fontspec.tds.zip Binary files differ diff --git a/texdeps/hyperref.tds.zip b/texdeps/hyperref.tds.zip new file mode 100644 index 0000000..e7f9cf4 --- /dev/null +++ b/texdeps/hyperref.tds.zip Binary files differ diff --git a/texdeps/l3kernel.tds.zip b/texdeps/l3kernel.tds.zip new file mode 100644 index 0000000..a41cd66 --- /dev/null +++ b/texdeps/l3kernel.tds.zip Binary files differ diff --git a/texdeps/l3packages.tds.zip b/texdeps/l3packages.tds.zip new file mode 100644 index 0000000..f237772 --- /dev/null +++ b/texdeps/l3packages.tds.zip Binary files differ -- To view, visit https://gerrit.wikimedia.org/r/96712 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic8647430bd2f6255b1d3efb8b0313741047d2876 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer Gerrit-Branch: master Gerrit-Owner: Cscott <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
