Skip to content

adding prefigure to the pretext codespace #20

Open
@davidaustinm

Description

@davidaustinm

I have PreFigure running in a codespace and just wanted to outline the steps that would be necessary to add PreFigure into the PreTeXt codespace.

  1. There are some additional packages to be installed in the docker container: python3-louis, npm, nodejs, libcairo2-dev, pkg-config, librsvg2-bin
  2. Include pip install prefig[pycairo] in the docker container
  3. In the postCreateCommand, include echo '/usr/lib/python3/dist-packages' > /usr/local/lib/python3.12/site-packages/louis.pth since python3-louis installs the python module louis in a location that is not in the pythonpath.
  4. Also in the postCreateCommand, include prefig init which installs the MathJax libraries and the Braille29 font.

For reference, the prefigure-codespace repository (linked above) contains the Dockerfile used to build the container published on dockerhub and the script postCreateCommand.sh

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