几个月前,我使用R中的bookdown开发了一个gitbook。今天,我再次开始工作,但当我呈现这本书时,输出的字体发生了戏剧性的变化。它就消失了!我不记得在这本书的TAML上有什么改变。现在看起来是这样的。紧跟在欢迎一词之后,文本变得越来越轻,直到它完全消失。它有一种消失的效果,我不知道我是怎么得到的。

谢谢你的帮助。
最好的
这是我的_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这是我的_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"并且,我正在使用以下指令来呈现这本书,
bookdown::render_book("index.Rmd", "bookdown::gitbook")发布于 2020-04-07 10:15:33
我找到问题了。基本上,我使用DiagrammeR包在我的一个.Rmd文件中创建了一个图表。当我的一个同事删除图表时,问题就消失了,但我们没有图表。但是,我创建了一个单独的.mmd (美人鱼)文件,并更新了包glue和DiagrammeR。所有这些都解决了问题。
谢谢。
https://stackoverflow.com/questions/60726775
复制相似问题