R闪亮:乳胶方程式无法正确呈现 [英] R Shiny: Latex equations are not properly rendered

查看:56
本文介绍了R闪亮:乳胶方程式无法正确呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过滑坡来渲染乳胶方程.一个简单的例子是:

I can't get ioslides to render latex equation. A simple example is:


---
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,我可以获得正确的渲染.

Note that I'm able to get the proper rendering if I create the file as RPresentation but not as ioslides.

推荐答案

ioslides需要知道它必须使用mathjax

ioslides needs to know that it has to use 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\

这篇关于R闪亮:乳胶方程式无法正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆