Skip to content

Graph formatting in LaTeX mode is not occurring from doctest #1767

@rocky

Description

@rocky

Description

The graphs from the Graph module, such as for StarGraph no longer appear in the LaTeX PDF.

Tracking what is going wrong, it appears that docpipeline in running:

$ MATHICS_CHARACTER_ENCODING="UTF-8" python mathics/docpipeline.py  --output --keep-going --load-module pymathics.graph

the format_graph() routine is not getting called for `form="latex".

How to Reproduce and Output Given

Build PDF, or just the LaTeX documentation.tex look for a built-in that produces a tree graph, like StarGraph, and notice there is no test output.

Priority

We can't release until this is fixed.

Additional context

A lot has changed in the way formatting is done. Also, I recall there was "duplicate code" removed, I think, in the area around how Graphs are handled. I can't find where that was, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions