Giter Club home page Giter Club logo

Comments (4)

ulyngs avatar ulyngs commented on August 27, 2024 1

Thanks for this, I just added the float package back in!

For now, I still assume that there is no need to explicitly include the other kableExtra packages in the template anymore because they are automatically added to the preamble when using library(kableExtra) given the change in the templates (we'll see if this turns out to be a poor decision πŸ€ͺ )

from oxforddown.

ulyngs avatar ulyngs commented on August 27, 2024

I think you're right that this is a templating thing - are you able to dig out the latex template that's used by bookdown-demo and see how

output:
  bookdown::pdf_book:
    includes:
      in_header: "preamble.tex"

gets included?

from oxforddown.

ulyngs avatar ulyngs commented on August 27, 2024

Solved - I just needed to added this to the templates

$for(header-includes)$
$header-includes$
$endfor$

This should have solved both use cases, i.e. header-includes and in_header. Can you check if it's working for you now if you fork the latest version?

from oxforddown.

shirdekel avatar shirdekel commented on August 27, 2024

Thanks for looking into it!

When running the current version, I get ! LaTeX Error: Unknown float option 'H'.

This is fixed when adding \usepackage{float}, which it looks like you removed with the other kableExtra packages.

Note also that I had to update kableExtra to 1.3.4.9000 in order for the tables to render properly (I forgot to check what version I had previously).

However, once those things are fixed, in_header now works for my preamble.tex πŸ‘.

from oxforddown.

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.