Re: latex write docinfo

Guenter Milde via Docutils-users <[email protected]> Mon, 30 Jan 2023 09:02:51 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2023-01-19, Alan G. Isaac wrote:
> On 1/18/2023 5:05 AM, Guenter Milde via Docutils-users wrote:
>> Dear Alan,

>> On 2023-01-14, Alan G. Isaac wrote:
>>> In the latex writer, in
>>> 	LaTeXTranslator.depart_document
>>> might it be considered to move the docinfo section
>>> to a separate method?

This is now done at [r9324].

Please keep in mind:

* The new functions are not part of the public API. Like all undocumented
  objects (i.e. elements without a docstring), they are only provisional,
  without the promise of backwards compatibility.

* As a general rule, if subclassing a Translator class:
    Safe subclassing: when overriding methods,
    treat ``visit_*`` and ``depart_*`` methods as a unit
    to prevent breaks due to internal changes.


Günter



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.