bookdown

Full author list for first citation in a chapter [apa.csl]

无人久伴 提交于 2020-03-03 12:00:08
问题 I'm writing my dissertation in R markdown. I am using bibtex, pandoc-citeproc, and apa.csl with bookdown. I have new_session: yes in my _bookdown.yml and compiling primarily to PDF ( documentclass:book , classoption: oneside ). The system I have is correctly using the full author list in place of "et al." for the first time I cite a 3-6 author work. That said, my adviser wants the full author list for the first time I cite a work per chapter . Is there an easy way to go about this? Here is

How do I keep title & subtitle when using pandoc to convert .docx to .md in R?

拥有回忆 提交于 2020-02-04 23:04:26
问题 I'm downloading a Google Doc as .docx and then converting to markdown for manipulation and export to multiple formats. Problem: When I convert using pandoc, it strips title (and subtitle) and does not add any YAML header information. I could add title manually in the header, but I need it to be scripted, so need to not lose the title (ideally) or extract title from docx and add to YAML header, which would then be concatenated to the converted markdown file. Example Code, where title is lost

How do I keep title & subtitle when using pandoc to convert .docx to .md in R?

二次信任 提交于 2020-02-04 22:58:36
问题 I'm downloading a Google Doc as .docx and then converting to markdown for manipulation and export to multiple formats. Problem: When I convert using pandoc, it strips title (and subtitle) and does not add any YAML header information. I could add title manually in the header, but I need it to be scripted, so need to not lose the title (ideally) or extract title from docx and add to YAML header, which would then be concatenated to the converted markdown file. Example Code, where title is lost

Compiling the same bookdown project twice to the same output format (but with different names)

别来无恙 提交于 2020-01-25 10:19:10
问题 Is it possible to add the same format twice to the _output.yml in a Bookdown projects (with different parameters, of course), and somehow set a - different - name for them? So that clicking the Build Book would compile both parametrizations and name the files according to what we have set... 来源: https://stackoverflow.com/questions/59010344/compiling-the-same-bookdown-project-twice-to-the-same-output-format-but-with-di

Embedding a beamer presentation in a regular document with RMarkdown

孤人 提交于 2020-01-24 21:32:47
问题 My aim is write a document in markdown ( rmarkdown , more specifically), that can be compiled both to a regular PDF (or other) file and a beamer presentation at the same time, from the same source. (Using knitr .) Scenario: the document includes, in addition to the regular text, one sentence summaries for each paragraph and these should go to the presentation as the bullet points. I know that I can compile a document to several different output formats at the same time with knitr , but the

Bookdown: Exporting to a word document (Error in files2[[format]] : attempt to select less than one element in get1index)

让人想犯罪 __ 提交于 2020-01-24 16:58:05
问题 I am writing my thesis using the bookdown package and the memoir latex class. Everything works relatively fine when I am exporting to pdf or to html but I am unable to export the thesis to a word document... I get the following mysterious error: Error in files2[[format]] : attempt to select less than one element in get1index It is difficult to provide a reproducible example though, as I am working from my messy dissertation repository. But here is (a part of) my _output.yml file: bookdown:

how to add a custom htmlDependency in `bookdown::gitbook`

流过昼夜 提交于 2020-01-15 04:55:48
问题 bookdown::gitbook() adds the content of https://github.com/rstudio/bookdown/tree/master/inst/resources/gitbook as a htmltools::htmlDependency . How can I add such a custom dependency to a gitbook? The goal is to provide an easy way to add a corporate css (including images). The definition of the htmlDependency() and all the required files would reside in an R package. 回答1: The ... arguments of bookdown::gitbook() are eventually passed to rmarkdown::html_document() , which are further passed

Why figure numbers with two digits separated by dot are shown only in html_document2?

不想你离开。 提交于 2020-01-14 05:53:09
问题 Here is simple RMarkdown document with two sections and two images. --- output: bookdown::html_document2: default bookdown::word_document2: default bookdown::pdf_document2: default --- \newpage # Part 1 Part 1 starts here. See Figure \@ref(fig:fig1-1) ![(\#fig:fig1-1) expected to be Figure 1.1.](/usr/lib/rstudio/www/images/rstudio.png) # Part 2 Part 2 starts here. See Figure \@ref(fig:fig2-1) ![(\#fig:fig2-1) expected to be Figure 2.1.](/usr/lib/rstudio/www/images/rstudio.png) I expect that

Cross-referencing in rticles

隐身守侯 提交于 2020-01-13 20:37:21
问题 The bookdown offers great cross-referencing options for equations, figures, tables and sections: https://bookdown.org/yihui/bookdown/cross-references.html However, they seems to not work when I set as an output 'rticles::elsevier_article'. What are the available options for cross-referencing in rticles? 回答1: I haven't tried, but there is a possible solution here: https://bookdown.org/yihui/bookdown/a-single-document.html Particularly, specify in your YAML metadata: output: bookdown::pdf_book:

Coverpage and copyright notice before title in R bookdown?

本秂侑毒 提交于 2020-01-13 12:48:09
问题 Back in March, I asked a question and got an answer to including coverpage in a pdf document rendered by R bookdown: R bookdown - cover page and appendix I tried the solution and came up with the following results: using in index.rmd yaml: output: pdf_document: includes: before_body: frontpage.tex number_sections: yes toc: yes toc_depth: 3 site: bookdown::bookdown_site documentclass: book classoption: letterpaper The title still appeared before the coverpage AND the Chapter 'wording' in