Comments (5)
The recommendation is to finish the content with the HTML output, and then work on PDF-specific minor revisions the PDF output.
I think the PDF-specific minor revisions may include math equations.
If you want to preview the book, preview the HTML output. Work on the PDF version after you have finished the content of the book, and are very sure no major revisions will be required.
from bookdown.
@piiskop Thanks for the feedback! You don't have to follow this recommendation. Recommendations are not rules, and even rules have exceptions. If PDF is the only output format that you need, it certainly makes sense to ignore the HTML output completely.
Using merge-and-knit takes a lot of time. I have 367 pages currently and every test takes many minutes.
You don't have to rebuild the whole book every time but can preview only one chapter: https://bookdown.org/yihui/bookdown/preview-a-chapter.html
from bookdown.
The linked page says this function is in bookdown, which means you either library(bookdown)
or bookdown::preview_chapter()
.
I also doubt that only a file can be rendered if it needs to use functions and other stuff declared in other files before that file.
The next section has one solution for that problem, i.e., bookdown::serve_book()
. It will build the whole book on the first run, then preview the chapter currently being edited. Of course, that only works for HTML output, which doesn't seem to be an output format that you need/like. Anyway, preview_chapter()
works for both HTML and PDF output.
from bookdown.
It makes no sense to work with HTML output because there are so many things that MathJax does not support and I need the layout to be good. Web layout and print layout are not related. It is not only about the equations. It is about figures, graphs, references, columns - many things. Using merge-and-knit takes a lot of time. I have 367 pages currently and every test takes many minutes.
from bookdown.
There seems to be no such function as is informed on the linked page:
preview_chapter("/home/kalmer/rstudio-projects/looduseuurimine/rmd/sissejuhatus-kulgliikumise-kinemaatika/testid/testid-kinemaatika.Rmd")
Error in preview_chapter("/home/kalmer/rstudio-projects/looduseuurimine/rmd/sissejuhatus-kulgliikumise-kinemaatika/testid/testid-kinemaatika.Rmd") :
could not find function "preview_chapter"
I also doubt that only a file can be rendered if it needs to use functions and other stuff declared in other files before that file.
from bookdown.
Related Issues (20)
- How could I add a link for the "Edit" icon to private Bitbucket repo? HOT 11
- .unlisted and .unnumbered not excluding tagged headers from TOC HOT 5
- [FR] Add support for the YALM setting "language: ui: references_name" to change the title of references section in html output HOT 7
- Image embeded in flextable lost in .docx output HOT 3
- [FR] Typst Support HOT 3
- Equation in book is broken HOT 3
- [FR] Allow to use `$$` for numbering equation in **bookdown**
- R4.3 error if multiple files are passed to `render_book` without an `output_format` specified HOT 2
- crosstalk html widget doesn't display the figure caption HOT 3
- html output error with echo=FALSE option HOT 1
- [FR] Multi language support
- Square brackets around citations in text HOT 2
- Cannot generate pdf via "server" but only html despite I tried probably all suggestions. HOT 5
- Use of 'tab.scap.' for tables? (Non kable() users!) HOT 2
- Hyphenation only works in English HOT 17
- bs4_book - references by chapter not displaying HOT 1
- Search in gitbook doesn't work because of empty search_index.json HOT 5
- Check and adapt to new `--number-sections` in Pandoc 3.1.12 HOT 5
- Unnumbered didn't work properly HOT 8
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.