PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
254 stars 205 forks source link

Prism line numbers #2032

Closed ascholerChemeketa closed 9 months ago

ascholerChemeketa commented 10 months ago

Add prism line numbering and highlighting to programs.

ascholerChemeketa commented 10 months ago

Associated CSS PR: https://github.com/PreTeXtBook/CSS_core/pull/59

rbeezer commented 10 months ago

OK, I've got line numbers hacked-in for LaTeX, so I think I know how to do it nicely.

I thought I had commented here, but I guess not. Soon! Gotta get to some other things right now.

rbeezer commented 10 months ago

I'm working this up, and will tackle LaTeX here in a bit. Some comments on changes I've made (locally), not visible here.

Otherwise some cosmetic edits and some separation into multiple commits.

Plus: I never need or use merge commits. They just get in my way. I'd prefer a final rebase on the latest master instead. Thanks.

Looking good and we should have the whole package soon: HTML, CSS, LaTeX.

rbeezer commented 10 months ago

LaTeX is done, with fewer surprises than usual. Everything is ready-to-go on a branch, to merge once CSS is public.

rbeezer commented 9 months ago

OK, split into three commits, and added (partial) LateX implementation, and schema additions.

@davidfarmer has merged https://github.com/PreTeXtBook/CSS_core/pull/59. Website updated, announcement out on pretext-announce.

Thanks, @ascholerChemeketa, for spearheading this one.