New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
difficulties with equations in slidify #214
Comments
I am having no trouble with it. Here is how it is rendered for me. Is that what you would expect? What version of Slidify are you using? I would recommend updating the latest version on the require(devtools)
pkgs = c('slidify', 'slidifyLibraries')
install_github(pkgs, 'ramnathv', ref = 'dev') |
Interesting ... looks good on your version. I installed the dev branch, now I get an error (before I just had unparsed equations)
hmm.... |
Did you update Also, delete your |
aha, deleting the libraries folder let me successfully run sessionInfo()
|
Can you post the |
.md and .html here: cboettig/nonparametric-bayes@3799a32 as my session info shows, I have Thanks for the help troubleshooting! |
For some reason, the I will continue to investigate what might be problem. |
I just pushed a small patch that might work. Install it from here https://github.com/ramnathv/slidify/tree/patch-md2html. (ref = 'patch-md2html') The key is this function. I think that md2html <- function(md){
renderMarkdown(text = md,
renderer.options = c('hard_wrap'),
extensions = markdownExtensions()
)
} |
installed the patch (via On Tue, May 28, 2013 at 1:08 PM, Ramnath Vaidyanathan <
Carl Boettiger |
Did wrapping the equation in a |
Actually, I did something stupid. I never committed the change I made before I pushed. I will experiment with different options tonight to see what works best with equations. |
Yup, div wrapping works. It's not a good solution for inline equations It looks like things might work if markdownExtensions were to use the Not too familiar with the sundown library. I use pandoc to avoid these On Tue, May 28, 2013 at 4:01 PM, Ramnath Vaidyanathan <
Carl Boettiger |
This has been a thorn in my flesh for a really long time. I will set aside some time to resolve this ASAP. Does the problem occur with both inline and display equations? |
Yes, the problem occurs with display equations unless they are wrapped in a Rstudio's mathjax handling does okay on this (e.g. handles most display On Tue, May 28, 2013 at 4:55 PM, Ramnath Vaidyanathan <
Carl Boettiger |
I agree. The part that I am unable to understand is, why it works perfectly for me. What OS are you on? |
Yeah, that's a real mystery to me too. I'm on Ubuntu 13.04 (or as the Do you have the same version of the markdown package as me? On Tue, May 28, 2013 at 5:07 PM, Ramnath Vaidyanathan <
Carl Boettiger |
The markdown package may be reading options in from an environment, my md2html <- function(md){ On Tue, May 28, 2013 at 5:20 PM, Carl Boettiger cboettig@gmail.com wrote:
Carl Boettiger |
In my original version, I set nothing. I suspect renderMarkdown has a different default behavior as compared with that used by knit2html. |
The default markdown parser clobbers my equations (usually because it mistakes underscores for markdown emphasis). I usually use pandoc as my markdown parser since it avoids this difficulty. Perhaps there is an easy fix in slidify? The following slide doesn't render correctly using the default setup+mathjax enabled:
(parses fine in pandoc/mathjax) Thanks for a great tool and for the help!
The text was updated successfully, but these errors were encountered: