简体   繁体   English

使用 Bookdown 在 Gitbook 中文本消失

[英]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(美人鱼)文件,并更新两个包glueDiagrammeR All of this solved the problem.所有这些都解决了问题。

thanks.谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 bookdown::gitbook 作为输出对齐 Rmd 中的整个文本 - How to justify whole text in Rmd with bookdown::gitbook as output Bookdown (gitbook) 生成空的 HTML - Bookdown (gitbook) produces empty HTML Bookdown独立gitbook,带有单独的页面 - Bookdown stand alone gitbook with separate pages 如何在bookdown :: gitbook中添加自定义htmlDependency - how to add a custom htmlDependency in `bookdown::gitbook` knitr bookdown::gitbook 和 webgl: 旋转无法正常工作 - knitr bookdown::gitbook and webgl: rotation does not work properly 使用gitbook格式和样式创建单个独立的html bookdown文件 - create single, standalone html bookdown file w/gitbook format & style 如何在 bookdown::gitbook 中使用自定义 pandoc HTML 模板 - How to use a custom pandoc HTML template in bookdown::gitbook 当 self_contained = TRUE 时,如何在 bookdown::gitbook 中正确呈现数学方程? - How to have correctly rendered mathematical equations in bookdown::gitbook when self_contained = TRUE? 在R Bookdown中的每个GitBook样式的网络章节之后重新开始尾注编号 - restart endnote numbering after each GitBook-style web chapter in R Bookdown 如何使搜索引擎在 bookdown gitbook 中为多字节字符(尤其是日语)工作? - How can I make the search engine work for multibyte characters (Japanese in particular) in bookdown gitbook?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM