Skip to content

Draw Gambit normal form LaTeX games #66

@edwardchalstrey1

Description

@edwardchalstrey1

Requested enahancement or feature

In PyGambit you can do:

import pygambit as gbt
g = gbt.read_nfg("somegame.nfg")
g.to_latex()

It would be useful to have a feature in drawTree that can render that LaTeX produced, which we can use within the Gambit catalog and documentation to neatly display normal form games.

It should work like:

from draw_tree import draw_tree
draw_tree(g.to_latex())

... or rather just draw_tree(g) but it calls to_latex under the hood if it realises it is a normal form game

TODO:

  • Update the gambit catalog to include a drawn NFG
  • Bernhard has some code for nfg tikz games - this could be a future refactor
  • Should this be done in DT? Could instead do Latex document embedding in gambit's to_latex - could be done for html too - this could also be a future refactor - could open a gambit issue, but use draw_tree in #874

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions