def dumps(self):
        """Represent the document as a string in LaTeX syntax.

        Returns
        -------
        str
        """

        head = self.documentclass.dumps() + '%\n'
        head += self.dumps_packages() + '%\n'
        head += dumps_list(self.variables) + '%\n'
        head += dumps_list(self.preamble) + '%\n'

        return head + '%\n' + super().dumps()
def dumps ( self ) : head = self . documentclass . dumps ( ) + '%\n' head += self . dumps_packages ( ) + '%\n' head += dumps_list ( self . variables ) + '%\n' head += dumps_list ( self . preamble ) + '%\n' return head + '%\n' + super ( ) . dumps ( )
Represent the document as a string in LaTeX syntax.

        Returns
        -------
        str