nulib-oer / linear-algebra

PreTeXt Files for Linear Alegbra Textbook
http://linear-algebra.northwestern.pub/
0 stars 3 forks source link

Image processing #2

Closed chrisdaaz closed 1 year ago

chrisdaaz commented 2 years ago

Add image processing dependencies to the main.yml workflow file.

Dependencies are listed in:

We want to automate this workflow:

@agreicius can you edit the build.sh so that it works as it does locally?

This is from the Makefile:

# Below is my best guess at what the new build script should look like

# mkdir -p public
#
# mkdir images
#
# mathbook/pretext/pretext -c latex-image -f all -d images ptx/index.ptx
#
# xsltproc -xinclude mathbook/xsl/pretext-html.xsl ptx/index.ptx
#
# mv *.html public
# mv knowl public
# mv images public

@chrisdaaz will check for errors and create a staging branch deployment for testing.

Example tikz image forthcoming in the the 0.x section on proofs.

chrisdaaz commented 2 years ago

I've pushed a new branch: https://github.com/nulib-oer/linear-algebra/tree/pretext-cli

It includes some changes so that we can use the pretext build html command to generate the HTML. It also starts to add (untested) LaTeX and PGF installation instructions so that the virtual machine can use tikz to generate some figures.

Some issues:

chrisdaaz commented 2 years ago

I've started using a preview version that deploys from the pretext-cli branch, here: https://nulib-oer.github.io/linear-algebra/

I got the TikZ images working properly on my local machine, but I'm struggling with an error on the GH side I posted about here https://groups.google.com/u/1/g/pretext-support/c/xEk9cWoFBMU

chrisdaaz commented 2 years ago

@agreicius with the help of the pretext community, i think this has been figured out: https://nulib-oer.github.io/linear-algebra/s_changeofbasis.html

I don't recommend we make any changes while you're teaching, but when there's a good chance to update the workflow for this text or the calculus one, i think the pretext-cli branch is a model