代码之家  ›  专栏  ›  技术社区  ›  the_darkside

消失R标记图像标题

  •  0
  • the_darkside  · 技术社区  · 5 年前

    我有一个带有html输出的Rmarkdown。

    下面的代码运行良好-它完美地将两个图像并排放置。但是,下面的代码为什么不在图片本身下打印指定的标题呢?我完全遵循了这个公式——为什么括号内的文本 [] 不显示为字幕?

    
        ![Caption for the picture.](cropped1.png){#id .class width=50% height=50%}![Caption for the picture.](cropped2.png){#id .class width=50% height=50%}
    
    

    以下是文档配置:

    output:
      html_document:
        theme: "flatly"
        toc: true
        fig_caption: yes
        toc_float:
          collapsed: false
          smooth_scroll: true
    
    0 回复  |  直到 5 年前