我无法让ioslides渲染乳胶方程式。一个简单的例子是:
--- title: "Title" author: "Author" date: "Tuesday, November 03, 2015" output: ioslides_presentation runtime: shiny --- ## slide 1 $\sum_{i=1}^n X_i$ The equation is rendered as \(\sum_{i=1}^n X_i\
请注意,如果我将文件创建为RPresentation而不是ioslides,我将能够获得正确的渲染。
答案 0 :(得分:1)
ioslides需要知道它必须使用mathjax
---
title: "Title"
author: "Author"
date: "Tuesday, November 03, 2015"
output:
ioslides_presentation:
mathjax: "http://example.com/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
runtime: shiny
---
## slide 1
$\sum_{i=1}^n X_i$
The equation is rendered as \(\sum_{i=1}^n X_i\
答案 1 :(得分:0)
所以事实证明我需要将套牌标题中对MathJax的引用更改为:
输出: ioslides_presentation: mathjax:“http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML”
请注意,我以前对MathJax有以下引用(这不起作用): 输出: ioslides_presentation: mathjax:“http://example.com/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML”