几个月前,我在R中使用gitbook
处理bookdown
。今天,我又恢复了工作,但是当我渲染这本书时,输出的字体发生了巨大变化。它消失了!我不记得在本书的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")
我发现了问题。基本上,在我的.Rmd文件之一中,我使用DiagrammeR
包创建了一个图表。当我的一位同事删除图表时,问题就消失了,但是我们没有图表。但是,我创建了一个单独的.mmd(美人鱼)文件,并更新了两个程序包glue
和DiagrammeR
。所有这些解决了问题。
谢谢。