sean-fitzpatrick / Math3410

Open textbook on linear algebra featuring python code.
0 stars 4 forks source link

Generate the html/pdf versions corresponding to this project. #3

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

Dear Dr. Sean Fitzpatrick,

I noticed your lecture notes for Math 3410 in PreTeXt on the Open Math Textbooks website here.

I also noted that you provided the following versions for this course: HTML version, with interactive code cells, PDF e-book (aligns with HTML version), and PreTeXt-generated PDF, optimized for printing. Furthermore, I also find the corresponding style files for building the above versions, but I still can't figure out the detailed steps/commands used by you to create these versions based on this github repo.

Any hints will be highly appreciated.

Regards, HY

sean-fitzpatrick commented 3 years ago

You can point to those style sheets instead of whatever pretext style sheet you'd normally use. (E.g. replace pretext-latex.html in your build command with the html style file.)

hongyi-zhao commented 3 years ago

According to your notes above, I tried some alternative methods, but they all failed. See here for more detailed info.

sean-fitzpatrick commented 3 years ago

Sorry -- forgot an additional detail. You need to copy (or symlink) these into the folder where your pretext xsl files live, and run from there

hongyi-zhao commented 3 years ago

Your above description is inconsistent with the following notes give by Rob Beezer:

I suspect Sean's extra XSL needs to live in a *new*

./user

that you should create. That's where we put a customized pretext.cfg so it is
not tracked by the git repository.

And furthermore, I also noticed the following notes give by the official documentation:

cd /path/to/mathbook
mkdir user
cp pretext/pretext.cfg user/

The pretext.cfg mentioned above can be found here.

Any further comment/reassurance/confirmation will be highly/greatly appreciated.

Regards, HY

sean-fitzpatrick commented 3 years ago

I have provided you with my exact folder structure on the PreTeXt forum. You should be able to work out how to adapt that to your own folder structure.