Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
@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)
- LaTeX Error: Environment rmdtip undefined. HOT 13
- Rendering of unicode characters fails HOT 2
- fig.cap markdown isn't parsed when out.width is specified. HOT 4
- \href{} applied to \includegraphics{} doesn't appear to work for pdf HOT 2
- Soft wrap long code output in pdf_output HOT 2
- Index entry page numbering is incorrect when TOC is long
- Unnumbered chapters appear twice in TOC
- Failed to render HOT 1
- Where is the PDF?
- Section number appears twice in the compiled book.
- PART items is not displaying in correct order in content
- Use of "caption" breaks "krantz" HOT 1
- The short vertical and horizontal lines at corners HOT 4
- LaTeX Error: Command \href undefined when building pdf book in CRC style HOT 1
- Using listings package to break lines in R output HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookdown-crc.