In Markdown, math is centred environment makes errors - math

It seems that
<center>Blah... $s_x$ blah</center>
does not subscript the way it should. On the other hand, if I remove tags subscript x looks just fine. Am I doing something wrong?

Thanks to Chris we together managed to find the right answer for this question: As I am using Marked2 under the latest macOS the right solution for processing the markdown files is to set the rendering to MultiMarkdown and then to use strictly
\\[ SOME EQUATION \\]
and not
$$ SOME EQUATION $$
Then, center environment will work properly and with subscripts like $w_e$

Related

Getting underscore in Jupyter notebook equation (mathml)?

Not sure if the answer here Jupyter notebook not printing underscores? is related:
The problem is not with Jupyter notebook but with the way the underscore is rendered in the example. The browser decided not to show the underscore for that particular resolution
... but here it goes: I try to enter the equation $$ \mathtt{A\_b} = \frac{A}{b} $$ in a Markdown cell in Jupyter notebook; and the rendering I get is this:
Don't know about you, but that looks like a dash/minus sign to me, not like an underscore.
So, how can I get a proper underline rendered in an equation in Jupyter notebook Markdown (where the equation is written as Latex, but rendered as MathML)?
Found a workaround - but I'd still love to hear a proper answer by someone who knows better ...
In the meantime - simply don't include the underscore inside \mathtt; that is, use:
$$ \mathtt{A}\_\mathtt{b} = \frac{A}{b} $$
... which results with:

Jupyter/IPython: how to get results in traditional mathematical notation?

I have been using WxMaxima for my symbolic calculations for a while now. The good thing about WxMaxima is that you can get formatted outputs right in the program and then export them to LaTeX format with a click of the mouse.
Now I want to try the Jupyter/Ipython plus sympy for multiple reasons. I know how to use display(Math(r' some LaTeX math here ')) but what I want is to have the result/output of a cell in a nice mathematical form; something like the TraditionalForm[] command in Mathematica.
I would appreciate if you could help me know if/how I can get that right in a Jupyter notebook?
I think I found the proper solution and it is a sympy feature rather than Jupyter/IPython one. As explained here:
If all you want is the best pretty printing, use the init_printing() function. This will automatically enable the best printer available in your environment.
and
In the [Jupyter/]IPython notebook, it will use MathJax to render LATEX.
Then one can right click on the output and select Show Math As > Tex commands:
to get the LaTeX output.
P.S. A more proper formatting can be achieved via galgebra library. I will look into that and add it here later.

How to show \epsilon in R Markdown

I am using R Markdown 1.0.9016 in RStudio 1.0.35 Windows.
I used to be able to render equations like
$\epsilon$
But now it just shows \epsilon instead of rendering the epsilon symbol.
What went wrong and how can I fix it?
Try this, it should work:
\(\epsilon\)
You seem to need to wrap it in double $ like $$\epsilon$$

RStudio .rd-file - Binomial cofficient in Help file

I just got a minor problem which keeps bugging me:
I'm currently creating my own R package and obviously need some documentation/help files for that. I'm good so far, but I currently try to work out how to use the \choose command in .rd-files. It keeps producing some weird output in the PDF i create via the .rd-files. I currently use it like that:
\deqn{P(k \leq x \leq s) = \sum\limits_{i = k}^{s} \choose(s,j)u^j(1-u)^{s-j} }
which delivers me
which is obviously wrong. If I leave out the choose command, I get what I want here (missing the binomial coefficient of course). I tried any combination I could think of as \choose{s,k}, \choose{s}{k} and everything gives me basically the same output. Any ideas?
Thanks in advance!
choose is odd. try
{{s}\choose{j}}

Markdown syntax: problems with superscript

This is my first time using R so this is about as basic of a question as they come.
I am making a presentation using markdown (ioslides). I want to do something very simple which is to put something in superscript. According to the manual, the syntax is the following:
Lower bound = α^Full – K^ - α^Full^
The first time I tried running this, I got a pop-up screen with some options. Too quickly, I pressed enter and inadvertently chose something. Now the syntax won't run and I can't figure out what I did to undo it.
Can someone help? Thank you in advance.
Markdown allows HTML to be used if necessary, so you should be able to use the HTML sup tag.

Resources