简体   繁体   English

beamer rmarkdown 演示文稿无法编织 pdf 文件,而是编织也未编织的 html 文档

[英]beamer rmarkdown presentation unable to knit pdf file instead knit html document that too is not knitted

I have a beamer rmarkdown file for preparing PDF presentation as teaching material.我有一个 beamer rmarkdown 文件,用于准备 PDF 演示文稿作为教材。 However, when I click knit with pdf, the output is displayed in html document, instead of beamer_presentation (pdf).但是,当我单击 knit with pdf 时,输出显示在 html 文档中,而不是 beamer_presentation (pdf)。 my yaml is:我的 yaml 是:

Thanking all in advance.提前感谢大家。

Earlier it was knitting properly but after some time it started giving this problem I have checked all 'helps' at various forums, but the problem persists.早些时候它编织得很好,但一段时间后它开始出现这个问题,我在各种论坛上检查了所有“帮助”,但问题仍然存在。 I have even installed tinyverse and installed/removed MikTex and restarted the system to solve the problem.我什至安装了 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  
---

No error message is displayed, simply HTM document is executed that too blank!没有显示错误信息,只是执行了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 "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

Output created: beamertest1.html创建的输出:beamertest1.html

The problem are the lines问题是线条

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

If you really, really, really want to have coloured links, you could add如果你真的,真的,真的想要有彩色链接,你可以添加

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

to your header, but this is really, really, really a bad idea with beamer, because this breaks all carefully chosen design decisions made by your theme.到您的标题,但这对于 beamer 来说真的,真的,真的是个坏主意,因为这破坏了您的主题所做的所有精心选择的设计决策。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM