47.14 Processing a LaTeX Document

Use rubber to convert a source LaTeX document into a pdf document:

  $ rubber --pdf report

Rubber has, in the past, had problems with warnings produced by PDFLaTeX, interpreting them as errors, and thus failing. A simple fix is to edit the file __init__.py in /usr/share/rubber/rubber/, in the definition of the errors function, insert the following:

  ... 
      for line in self.lines:
                if line[0:23] == "! pdfTeX warning (dest)":
                                print "PDF WARN: " + line[25:],
                                return 0
                if line[0] == "!":
  ... 


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0