drvinceknight / amwoss

Applied mathematics problems with Open Source Software: Operational Research with Python and R.
MIT License
117 stars 10 forks source link

code boxes now breakable #131

Closed geraintpalmer closed 3 years ago

geraintpalmer commented 3 years ago

This makes code boxes breakable across pages.

It looks alright.

It would be nice to manually set some code boxes to be breakable and some to be unbreakable.

drvinceknight commented 3 years ago

t would be nice to manually set some code boxes to be breakable and some to be unbreakable.

Could we do that with two separate versions of the environments?

\begin{pyin}

and

\begin{breakable_pyin}

Actually if we want to get really fancy we could make an optional argument to the pyin environment but that's not something to worry about too much... (I think?)

geraintpalmer commented 3 years ago

I tried to work out how to do the 2nd option but had no idea how.

Realised we might have to do the 1st, let's chat tomorrow about it, we'll have to adjust the testing script too?

drvinceknight commented 3 years ago

Realised we might have to do the 1st, let's chat tomorrow about it, we'll have to adjust the testing script too?

Eurgh... :( (but yeah but I guess we can do that at some point)