Giter Site home page Giter Site logo

Comments (9)

yihui avatar yihui commented on May 27, 2024 2

Yes, I've noticed this before, but didn't have time or interest to ask the help desk of Chapman & Hall. This is definitely a problem specific to their LaTeX class krantz.cls. If you want them to help, you may email [email protected] (if you do and get a solution, please also let me know). Thanks!

from bookdown-crc.

savadhanistablab avatar savadhanistablab commented on May 27, 2024 1

Alright! So here is the updated Krantz.cls that fixes the chapter & section jump issue.
krantz.cls.txt

Could you please update this file in your repos? :)
Many thanks :)

from bookdown-crc.

cderv avatar cderv commented on May 27, 2024

Hi, thanks for the report.

Are you talking about the gitbook format ?

I tried to see what you meant but did not succeed.

  • I cloned this repo
  • I build the gitbook format using the build button.
  • In the book preview, I click on the TOC chapter and this correctly jump to the selected chapter.

Can you share more on what you see ?

Thank you.

from bookdown-crc.

savadhanistablab avatar savadhanistablab commented on May 27, 2024

Ah no, the gitbook works fine! This issue is in the pdfbook. When you click on a chapter heading (h1) in the Contents page, the jump happens to the next chapter.

Simply building the pdf_book will suffice.

from bookdown-crc.

cderv avatar cderv commented on May 27, 2024

Below is the file I obtain for building this repo. I don't see the +1 unit in jump when navigating the toc.
What did I missed ?
bookdown.pdf

from bookdown-crc.

savadhanistablab avatar savadhanistablab commented on May 27, 2024

This in fact does happen! :/
Here is a screen recording of the same:

Screen.Recording.2021-03-22.at.12.30.34.PM.lowRes.mov

from bookdown-crc.

cderv avatar cderv commented on May 27, 2024

Thanks for sharing the screenshot. It made it clearer that it was in the toc inside the document.
I was using a navigation toolbar in a pdf viewer and it works with that - I changed PDF viewer and can reproduce now. That is odd!

Thanks for the report and added information. I'll check if this happen only with this template.

from bookdown-crc.

cderv avatar cderv commented on May 27, 2024

It seems link to krantz.cls as I can't see that using documentclass: book.

@yihui have you encountered such issue already in the past ?

from bookdown-crc.

yihui avatar yihui commented on May 27, 2024

@savadhanistablab Thanks! I just committed the changes.

@cderv We may need to sync the latest krantz.cls in this repo to other books (bookdown, blogdown, rmarkdown guide, rmarkdown cookbook), but this is quite tricky because we have no tests for this LaTeX class. The only way to test it, unfortunately, is to manually inspect the PDF with our eyes. I have had several problems with this class before, and I don't want a new fix to introduce older problems. Again, unfortunately, these problems were reported by email and I'll have to dig them out. I'm not sure what would be the best to do (update the class in other books or not). Chapman & Hall really should manage this class as a LaTeX package in a public repo and have an issue tracker (and more importantly, tests)...

from bookdown-crc.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.