【问题标题】:beamer rmarkdown presentation unable to knit pdf file instead knit html document that too is not knittedbeamer rmarkdown 演示文稿无法编织 pdf 文件,而是编织同样未编织的 html 文档
【发布时间】:2019-11-03 06:43:15
【问题描述】:

我有一个 beamer rmarkdown 文件,用于准备 PDF 演示文稿作为教材。但是,当我单击 knit with pdf 时,输出显示在 html 文档中,而不是 beamer_presentation (pdf)。我的 yaml 是:

提前感谢大家。

早些时候它编织得很好,但一段时间后它开始出现这个问题,我在各个论坛上检查了所有“帮助”,但问题仍然存在。我什至安装了tinyverse并安装/删除了MikTex并重新启动系统以解决问题。

---
title: "Mathematics for Finance"  
author:   
  - Dr. XXXX  
institute:   
  - YYYY  
date: "June-July 2019"
output:   
  beamer_presentation:  
    incremental: false  
    theme: "AnnArbor"  
    colortheme: "wolverine"  
    fonttheme: "structuresmallcapsserif"  
    toc: true   
    slide_level: 2  
    fig_width: 5  
    fig_height: 4  
    fig_caption: true  
    highlight: tango
    link-citations: yes  
    urlcolor: red  
    linkcolor: red  
    citecolor: blue  
---

没有显示错误信息,只是执行了HTM文档太空白!

"C:/Users/Kulbirs/ANACON~1/envs/rstudio/Scripts/pandoc" +RTS -K512m -RTS beamertest1.utf8.md --to html4 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash+smart --output beamertest1.html --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Kulbirs\Documents\R\win-library\3.6\rmarkdown\rmd\ h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Kulbirs\AppData\Local\Temp\RtmpgnjFVR\rmarkdown- str56854a3563d.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --metadata pagetitle=beamertest1.utf8.md

创建的输出:beamertest1.html

【问题讨论】:

    标签: r latex r-markdown beamer


    【解决方案1】:

    问题是线条

    link-citations: yes  
    urlcolor: red  
    linkcolor: red  
    citecolor: blue  
    

    如果你真的、真的、真的想要彩色链接,你可以添加

    header-includes:
      - \hypersetup{colorlinks, urlcolor=red, linkcolor=red, citecolor=blue}
    

    到你的标题,但这真的,真的,真的是投影仪的一个坏主意,因为这会破坏你的主题做出的所有精心选择的设计决策。

    【讨论】:

      猜你喜欢
      • 2021-02-11
      • 2023-04-07
      • 2021-09-15
      • 1970-01-01
      • 2021-12-16
      • 2014-03-19
      • 1970-01-01
      • 2021-02-07
      • 1970-01-01
      相关资源
      最近更新 更多