rubber: \LoadClassWithOptions triggers TypeError: h_documentclass() takes exactly 4 arguments (3 given)

Bug #1266912 reported by Alexander Torstling
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Rubber
Fix Released
Medium
Unassigned

Bug Description

This is a placeholder for the debian bug at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718932 for reference.

This bug seems to be triggered when you have a documentclass declaration with options, like so: "\documentclass[margin, a4paper]{res}"

Revision history for this message
Alexander Torstling (atorstling) wrote :

Fixed this by eyeballing the source and by a bit of trial and error. If you edit /usr/lib/pymodules/python2.7/rubber/converters/latex.py line 582 and add an extra flag so that it becomes ""LoadClassWithOptions" : ("oa", self.h_documentclass),", you're all set. Should be an easy fix.

description: updated
Revision history for this message
god (humper) wrote :

Proposed fix works for me - excellent work!

Revision history for this message
Michael Tänzer (neoatnhng) wrote :

Fix worked for me too.

Changed in rubber:
status: New → Confirmed
Revision history for this message
Hilmar Preusse (hille42) wrote :

rubber (1.1+20100306-7) unstable; urgency=low

  * Patch from Michael Tänzer <email address hidden> (Closes: #718932)
  * Q&D patch for "\lstinputlisting is incorrectly parsed"
    (Closes: #725355)
  * quilt patches refreshed
  * Add lintian override for debian-rules-ignores-make-clean-error
  * Update Standards version (3.9.6), no changes needed.

 -- Hilmar Preuße <email address hidden> Mon, 18 May 2015 09:39:25 +0200

Revision history for this message
Sebastian Kapfer (caci) wrote :

Fix committed, thank you!

Changed in rubber:
importance: Undecided → Medium
milestone: none → 1.2
status: Confirmed → Fix Committed
Sebastian Kapfer (caci)
Changed in rubber:
milestone: 1.2 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.