sphinxtr icon indicating copy to clipboard operation
sphinxtr copied to clipboard

Sphinx >= 1.3.0 breaks latex_mods (previous_spanning_row removed from the LaTeX builder)

Open eudoxos opened this issue 9 years ago • 5 comments

mod_latex is not able to monkey-patch the latex writer starting with sphinx 1.3.0:

Exception occurred:
  File "/home/eudoxos/roro/vale-oman/roro2014/rep1/source/extensions/latex_mods.py", line 106, in depart_row
    if self.previous_spanning_row == 1:
AttributeError: DocTranslator instance has no attribute 'previous_spanning_row'

Searching the history revealed this changed in sphinx-doc/sphinx@5d96523f7d44612d6770c0f3be19555415f19f44.

eudoxos avatar May 23 '15 12:05 eudoxos

I'm hitting this as well, you can see this in our public repo at https://github.com/projectara/greybus-spec

gregkh avatar Jul 28 '15 15:07 gregkh

I am getting this error too. Looks like the project needs updating according to the latest version of LaTeX. Has any body been able to fix this?

shivams avatar Sep 09 '15 11:09 shivams

If someone else wants to tackle this, I doubt it would be too difficult to fix, but I haven't had any time to work on it.

jterrace avatar Sep 09 '15 16:09 jterrace

In the old sphinx version it is in sphinx/writers/latex.py Line 277

self.previous_spanning_row = 0 self.previous_spanning_column = 0

in the new version it is delete because no usage in latex.py

rddaz2013 avatar Nov 13 '15 19:11 rddaz2013

In the old sphinx version it is in sphinx/writers/latex.py Line 277

self.previous_spanning_row = 0 self.previous_spanning_column = 0

in the new version it is deleted because there is no usage in latex.py! it is a cleanup of unused definitions.


https://github.com/rddaz2013/sphinxtr/tree/UpdatePython27

rddaz2013 avatar Nov 13 '15 20:11 rddaz2013