takluyver / bookbook

Tools to use a collection of notebooks as 'chapters'
MIT License
99 stars 24 forks source link

Configuring Latex cross-link text #10

Open takluyver opened 7 years ago

takluyver commented 7 years ago

As of PR #7, the labels on Latex cross links look like: Chapter 2 or Section 2.1.

How do we let people configure these? Command line options? Notebook metadata? Nbconvert config? A separate bookbook config file? Custom templates?

ketch commented 7 years ago

Ideally you might detect from the .tplx template file which latex documentclass is used, and format this accordingly. I don't know if that information is easy to access, though.

takluyver commented 7 years ago

It should be easy enough to regex it out in typical cases, however Latex is flexible enough that making a properly general solution would be difficult. I'm not familiar enough with Latex to know how it would break, though.

ketch commented 7 years ago

Yes; on second thought, there are just too many possible custom document classes; for instance, in my own template file I'm using "SIAMGHbook2016". We don't want to try to keep up with that kind of thing.