PreTeXtBook / JS_core

Javascript for standard PreTeXt
0 stars 7 forks source link

scrolling toc #36

Open davidfarmer opened 4 years ago

davidfarmer commented 4 years ago

The TOC scrolls on this page: https://www.cs.utexas.edu/users/flame/laff/alaff/chapter12-attaining-high-performance.html

but not on this page:

https://www.cs.utexas.edu/users/flame/laff/alaff/chapter12-simple-model.html

rbeezer commented 4 years ago

Is it enough for subsection and subsubsection to get an attribute in HTML output that indicates their containing section? A signal to the scrolling mechanism?

davidfarmer commented 4 years ago

When I filed this issue, I did not realize that the structure of the files could be finer that the structure of the TOC.

But since that can happen, I guess the only way to fix this is to somehow put that information in the HTML, so the Javascript knows where to scroll to.

On Wed, 2 Sep 2020, Rob Beezer wrote:

Is it enough for subsection and subsubsection to get an attribute in HTML output that indicates their containing section? A signal to the scrolling mechanism?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, orunsubscribe.[AABTULAGEMPU2FSPVMBFZKDSD243TA5CNFSM4QTZQ7SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5W W2ZLOORPWSZGOFDSEFNI.gif]