bookdown

Is there a way to embed a bookdown document as a blogdown post?

怎甘沉沦 提交于 2019-12-24 06:38:10
问题 I have created a tutorial using Bookdown (which I think is a great format for it), and am currently in the process of creating a website using Blogdown (hugo-academic theme). I would like to be able to add this tutorial to a tutorials page as a Bookdown post, but I don't know if that's possible. I'm new to Blogdown, so I haven't been able to find any solutions to this. If it's not possible, is there a way of changing the post link to a hyperlink that takes the user to a published Bookdown

Rendering Appendix Figure Numbers in Bookdown

风流意气都作罢 提交于 2019-12-23 19:08:29
问题 Bookdown is a great package and I look forward to seeing how it developes, but right now I am having troubling rendering figure numbers in the pdf_document2 format when figures are in appendices. Specifically when a figure with a caption is in an appendix the figure number should be of the form A.1, A.2, B.1, B.2 etc. but instead the figure numbers are treated as normal sections with numbers 3.1, 3.2, 4.1, 4.2 etc. where the appendices are the third and fourth sections respectively. Here is

Bookdown: TOC with html_document2

一笑奈何 提交于 2019-12-23 12:05:36
问题 How can I create a single output document with bookdown , e.g. using its bookdown::html_document2 format, and still have a Table of Contents somewhere in the output document? For example, I check out the content from https://github.com/tidyverse/style, and run Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::html_document2')" Then I get a _main.html as desired, with all the text from all chapters, but no TOC is present. 回答1: You can use the dots ( ... ) argument of bookdown::html

Bookdown: How can I change the size of the chapter titles?

拈花ヽ惹草 提交于 2019-12-21 12:32:07
问题 I am using bookdown to generate slides for a workshop. I use the 'big' letter option in the menu for display as slides. However then the chapter title font size is too large. Where/how can I modify that one? Thanks, Paul 回答1: you can control this with .css as yihui suggests in the top level of your bookdown project there is a file called style.css open it and paste in: .book .book-body .page-wrapper .page-inner section.normal h1{font-size:1em} this will increase the size of your top level

How to host multiple Github repos using the same custom domain on Netlify?

五迷三道 提交于 2019-12-20 10:24:20
问题 I am currently hosting my personal website (created using blogdown and Hugo) using Netlify at wjakethompson.com. This is deployed through a Github repository. I now have a bookdown project in a separate repository that I would also like to host on Netlify, while leveraging the custom domain that I have set up for my personal website. Currently, this bookdown project is being hosted on the Netlify subdomin (i.e., wjakethompson-dissertation.netlify.com). However, I would prefer to use my custom

Bookdown add URL as footnote

匆匆过客 提交于 2019-12-20 03:16:33
问题 I am having problems getting correct pdf output of figure legends that contain a url. It works as bookdown::gitbook but not as bookdown::pdf_book Here is an example: --- output: bookdown::pdf_book --- ## Reference with URL doesn't work In this experiment, we will use a [spectrophotometer] (https://en.wikipedia.org/wiki/Spectrophotometry) to measure the absorption of light of different wavelength by colored solutions. (ref:spectrum) [Spectrum of light. V, violet; B, blue; G, green Y, yellow; O

Printing UTF-8 characters in R, Rmd, knitr, bookdown

跟風遠走 提交于 2019-12-20 03:12:59
问题 UPDATE (April 2018): The problem still persists, under different settings and computers. I believe it is related to all UNICODE, UTF-8 characters. https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/ PROBLEM: My Rmd/R file is saved with UTF-8 encoding. Other sessionInfo() details: Platform: x86_64-w64-mingw32/x64 (64-bit) LC_CTYPE=English_Canada.1252 other attached packages: [1]

Cross-referencing in a single-file bookdown document

依然范特西╮ 提交于 2019-12-18 12:55:30
问题 One of the promises of the bookdown package is functions for automatic numbering of figure/table captions, and cross-referencing figures/tables/sections. This is claimed to be enabled for single-Rmd bookdown, if we use bookdown::html_document2 in the YAML: https://bookdown.org/yihui/bookdown/a-single-document.html Looking at the raw rmarkdown for that chapter of the bookdown manual, I've tried to follow the instructions to make a single Rmd file that can use those cross-referencing functions.

How to change the figure caption format in bookdown

泪湿孤枕 提交于 2019-12-18 12:55:24
问题 When using bookdown (single document), figures are numbered automatically as: Figure 1 Text of figure caption. In chemistry, the convention is to label main Figures as: Figure 1. Text of figure caption. and for the supporting information document: Figure S1. Text of figure caption. Also in the figure reference in the text we need: ...as can be seen in Figure 1, ... so the reference text should not be bold. Question How can i make bookdown (or rmarkdown) produce figure and table captions like

how to specify a csl bibliography style on bookdown

别等时光非礼了梦想. 提交于 2019-12-13 18:11:55
问题 how to specify a csl bibliography style on bookdown Chinese Bookdown Chinese example, for example a zotero one CSL. I downloaded the csl file to the working directory, and specify it in index.Rmd YAML header as bibliography: book.bib biblio-style: chinese-gb7714-2005-numeric or bibliography: book.bib biblio-style: chinese-gb7714-2005-numeric.csl but Rstudio promted me: Error: Failed to build the bibliography via bibtex Please delete bookdown.Rmd after you finish debugging the error. Execution