pygambit.gambit.Game.to_latex#
- Game.to_latex(filepath_or_buffer: str | Path | BufferedWriter | None = None) str | None#
Export the game to a .tex file or return its serialized representation
- Parameters:
filepath_or_buffer (str or Path or BufferedWriter or None, default None) – String, path object, or file-like object implementing a write() function. If None, the result is returned as a string.
- Return type:
String representation of the game or None if the game is exported to a file
