Giter Site home page Giter Site logo

Comments (5)

atusy avatar atusy commented on June 27, 2024 1

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.

yihui avatar yihui commented on June 27, 2024 1

@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.

yihui avatar yihui commented on June 27, 2024 1

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.

piiskop avatar piiskop commented on June 27, 2024

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.

piiskop avatar piiskop commented on June 27, 2024

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)

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.