pzhaonet / bookdownplus

The easiest way to use R package bookdown for writing varied types of books and documents
MIT License
253 stars 31 forks source link

Cannot render 'copernicus' format #48

Closed pablobernabeu closed 4 years ago

pablobernabeu commented 4 years ago

Hello,

I would like to ask for help to render the article format, now called copernicus format. I haven't been able to, despite several attempts on different computers. I follow the instructions, by modifying the index script, and running bookdownplus(template = 'article'). Yet, when I run the latter command, the index and copernicus scripts are automatically updated with the original example content. Then, the output in console is below.

I'd be really grateful for any pointers.

> bookdownplus(template = 'copernicus')
index.Rmd exsits. Backuped to backup/index-2020-03-06-19-44-22.Rmd :)
_bookdown.yml exsits. Backuped to backup/_bookdown-2020-03-06-19-44-22.yml :)
body.Rmd exsits. Backuped to backup/body-2020-03-06-19-44-22.Rmd :)

processing file: copernicus.Rmd
  |......................................                                                                                                                                                        |  20%
  ordinary text without R code

  |............................................................................                                                                                                                  |  40%
label: fig1 (with options) 
List of 4
 $ fig.cap  : chr "caption"
 $ out.width: chr "80%"
 $ fig.align: chr "center"
 $ echo     : logi FALSE

  |..................................................................................................................                                                                            |  60%
  ordinary text without R code

  |........................................................................................................................................................                                      |  80%
label: tab1 (with options) 
List of 2
 $ tidy: logi FALSE
 $ echo: logi FALSE

  |..............................................................................................................................................................................................| 100%
  ordinary text without R code

output file: copernicus.knit.md

/usr/local/bin/pandoc +RTS -K512m -RTS copernicus.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output copernicus.tex --table-of-contents --toc-depth 3 --template tex/template_article.tex --number-sections --highlight-style tango --pdf-engine pdflatex --natbib --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/latex-div.lua --wrap preserve --variable tables=yes --standalone 

Output created: _book/copernicus.pdf
Warning message:
LaTeX Warning: You have requested document class `style/copernicus-discussions'
,
               but the document class provides `copernicus_discussions'.
Package amsmath Warning: Unable to redefine math accent \vec. 
pzhaonet commented 4 years ago

bookdownplus() is for creating a new bookdown project from a template. It should not be used to render the book.

For rendering the book, you could use bookdown::render_book(), or simply ctrl+shift+b in RStudio.

pablobernabeu commented 4 years ago

Thank you very much. This solved the issue indeed.