[英]Text vanishes in Gitbook using Bookdown
Iw as working on a gitbook
using bookdown
in R several months ago. IW作为工作
gitbook
使用bookdown
中的R几个月前。 Today, I resumed my work again, but when I rendered the book the font of the output changed dramatically.今天,我又恢复了工作,但是当我渲染这本书时,输出的字体发生了巨大的变化。 It vanishes!
它消失了! I don't remember having changed anything on the TAML of the book.
我不记得对这本书的 TAML 进行过任何更改。 This is how it looks now.
这就是它现在的样子。 Right after the word WELCOME, the text becomes lighter and lighter until it literally disappears.
就在 WELCOME 之后,文字变得越来越淡,直到字面上消失。 It has a sort of vanishing effect that I have no idea how I got.
它有一种消失的效果,我不知道我是怎么得到的。
Thank you for your help.感谢您的帮助。
Best,最好的事物,
this is my _output.yml
这是我的
_output.yml
bookdown::gitbook:
config:
toc:
collapse: section
scroll_highlight: yes
before: |
<li><a href="./">PovcalNet Internal Guidelines</a></li>
after: |
<li><a href="https://github.com/xxxxx/Povcalnet_internal_guidelines" target="blank">Published with bookdown</a></li>
download: ["pdf", "epub"]
toolbar:
position: fixed
edit : null
search: yes
fontsettings:
theme: white
family: sans
size: 2
sharing:
facebook: no
github: no
twitter: no
linkedin: no
weibo: no
instapaper: no
vk: no
info: yes
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: natbib
keep_tex: yes
bookdown::epub_book:
stylesheet: style.css
And this is my _bookdown.yml
这是我的
_bookdown.yml
book_filename: "Povcalnet_internal_guidelines"
repo: https://github.com/xxxxxx/Povcalnet_internal_guidelines/
output_dir: "docs"
delete_merged_file: true
language:
label:
fig: "Figure "
tab: "Table "
ui:
edit: "Edit"
chapter_name: "Chapter "
rmd_files: [
"index.Rmd",
"intro.Rmd",
"Folder_structure.Rmd",
"Collaboration_in_Git.Rmd",
"DM_Group_data.Rmd",
"Handover.Rmd",
"references.Rmd",
]
before_chapter_script: "_common.R"
And, I am rendering the book using the following instruction,而且,我正在使用以下说明渲染这本书,
bookdown::render_book("index.Rmd", "bookdown::gitbook")
I found the problem.我发现了问题。 Basically, in one of my .Rmd files I create a diagram using the
DiagrammeR
package.基本上,在我的一个 .Rmd 文件中,我使用
DiagrammeR
包创建了一个DiagrammeR
。 When one of my colleagues removed the diagram, the issue was gone, but we had no diagram.当我的一位同事删除图表时,问题就消失了,但我们没有图表。 However, I created a separate .mmd (mermaid) file and updated both packages
glue
and DiagrammeR
.不过,我创建了一个单独.mmd(美人鱼)文件,并更新两个包
glue
和DiagrammeR
。 All of this solved the problem.所有这些都解决了问题。
thanks.谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.