Package: rubber

Hi,

Rubber does not have support for XeLaTeX, which is a modern TeX engine
with support for OpenType fonts. Adding support to Rubber is trivial:
just put the attached xelatex.py in rules/latex/xelatex.py. Usage is
just like for other modules:

  rubber -f -m xelatex somefile.tex

I've submitted this patch ages ago to the upstream maintainer, but have
never received any response. It would be really great if the Debian
package could add this file.

    — Wouter
# This file is part of Rubber and thus covered by the GPL
# (c) Emmanuel Beffara, 2002--2006
# (c) Wouter Bolsterlee, 2009
"""
XeLaTeX support for Rubber.
"""

import sys
import rubber
from rubber import _, msg

class Module (rubber.rules.latex.Module):
    def __init__ (self, doc, dict):
        doc.vars["program"] = "xelatex"
        doc.vars["engine"] = "XeLaTeX"
        if doc.env.final != doc and doc.prods[0][-4:] != ".pdf":
            msg.error(_("there is already a post-processor registered"))
            sys.exit(2)
        doc.prods = [doc.src_base + ".pdf"]

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to