[英]beamer rmarkdown presentation unable to knit pdf file instead knit html document that too is not knitted
我有一个 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
问题是线条
link-citations: yes
urlcolor: red
linkcolor: red
citecolor: blue
如果你真的,真的,真的想要有彩色链接,你可以添加
header-includes:
- \hypersetup{colorlinks, urlcolor=red, linkcolor=red, citecolor=blue}
到您的标题,但这对于 beamer 来说真的,真的,真的是个坏主意,因为这破坏了您的主题所做的所有精心选择的设计决策。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.