From: Alan G. I. <ala...@gm...> - 2023-01-14 00:45:44
|
I can no longer compile some documents with rst2beamer. (They compiled a year ago.) Did something change with --use-latex-citations? (I'm not setting it.) Suggested fix? Alan Isaac Traceback (most recent call last): File "C:\Program Files\Python38\Scripts\rst2beamer-script.py", line 11, in <module> load_entry_point('rst2beamer3k==0.9.1', 'console_scripts', 'rst2beamer')() File "C:\Program Files\Python38\lib\site-packages\rst2beamer.py", line 1304, in main publish_cmdline( File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\core.py", line 391, in publish_cmdline output = pub.publish( File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\core.py", line 227, in publish output = self.writer.write(self.document, self.destination) File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\writers\__init__.py", line 76, in write self.translate() File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\writers\latex2e\__init__.py", line 267, in translate self.document.walkabout(visitor) File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\nodes.py", line 199, in walkabout visitor.dispatch_departure(self) File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\nodes.py", line 2019, in dispatch_departure return method(node) File "C:\Program Files\Python38\lib\site-packages\rst2beamer.py", line 930, in depart_document if self._use_latex_citations and len(self._bibitems) > 0: AttributeError: 'BeamerTranslator' object has no attribute '_use_latex_citations' |
From: Guenter M. <mi...@us...> - 2023-01-14 08:43:05
|
On 2023-01-14, Alan G. Isaac wrote: > I can no longer compile some documents with rst2beamer. > (They compiled a year ago.) Which Docutils version are you using now, which a year ago? Are you using the LaTeX or the XeTeX writer? > Did something change with --use-latex-citations? > (I'm not setting it.) Not yet. (See RELEASE-NOTES) Suggested diagnosis: Look out for changes between the relevant versions in the RELEASE-NOTES and the HISTORY (there were some default changes recently). > Suggested fix? Adapt rst2beamer.py to the new behaviour. As a stop gap measure: try the various "--legacy..." and "--use-latex..." settings. Günter |
From: Alan G. I. <ala...@gm...> - 2023-01-14 16:42:45
|
I'm using current docutils. rst2beamer uses the LaTeX writer. Has a ``_use_latex_citations`` attribute been removed from the docutils LaTeXTranslator? This missing attribute looks to be causing the problem. Thanks, Alan On 1/14/2023 3:42 AM, Guenter Milde via Docutils-users wrote: > On 2023-01-14, Alan G. Isaac wrote: >> I can no longer compile some documents with rst2beamer. >> (They compiled a year ago.) > > Which Docutils version are you using now, which a year ago? > Are you using the LaTeX or the XeTeX writer? > >> Did something change with --use-latex-citations? >> (I'm not setting it.) > > Not yet. (See RELEASE-NOTES) > > Suggested diagnosis: > > Look out for changes between the relevant versions in the RELEASE-NOTES and > the HISTORY (there were some default changes recently). > >> Suggested fix? > > Adapt rst2beamer.py to the new behaviour. > > As a stop gap measure: try the various "--legacy..." and "--use-latex..." > settings. > > > Günter > > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Guenter M. <mi...@us...> - 2023-01-14 18:42:53
|
On 2023-01-14, Alan G. Isaac wrote: > I'm using current docutils. > rst2beamer uses the LaTeX writer. > Has a ``_use_latex_citations`` attribute > been removed from the docutils LaTeXTranslator? The name has been normalized with the other "use_latex_..." attributes in r8880 from 05.11.21 Günter |