Skip to content
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

Markdown parses LaTeX math symbols as its formatting syntax in notebook #1275

Closed
joonro opened this issue Jan 16, 2012 · 4 comments
Closed
Milestone

Comments

@joonro
Copy link
Contributor

joonro commented Jan 16, 2012

In notebook markdown cells in notebook, markdown's formatting syntax conflicts with LaTeX math symbols and one needs additional escaping to avoid this.

A couple of examples:

  1. ( ) and [ ] for inline and line math environments do not work; need to escape : \( \) and \[ \]
  2. The following does not work, as some part becomes italic:
    $$ \underline{x}_{1} x_{2} $$
    It works after escaping the first _:
    $$ \underline{x}\_{1} x_{2} $$

I found a discussion about this: http://doswa.com/2011/07/20/mathjax-in-markdown.html

@mwiebe
Copy link
Contributor

mwiebe commented Feb 26, 2012

I'm not sure if this needs a new ticket or not, but here's an example that breaks:

Given $\mathbf{x}_i$, we must solve for $\mathbf{x}_{i+1}$.

Markdown makes the middle part italic, completely screwing up the desired math.

@Carreau
Copy link
Member

Carreau commented Nov 22, 2012

Looked fixed to me.
Waiting for a confirmation and I will close.

@ahmadia
Copy link
Contributor

ahmadia commented Nov 23, 2012

The Markdown+MathJax issues were addressed in #2349 and #2517.

We now use

  • $,$ and \\(,\\) to delimit inlineMath
  • $$,$$ and \\[,\\] to delimit displayMath

We currently do not support \( or \[ style delimiters.

Additionally, you can can directly make \begin and \end calls without delimiters to the following environments through MathJaX processEnvironments:

align    
align*   
alignat 
alignat*
aligned 
alignedat
array

Bmatrix
bmatrix

cases

eqnarray
eqnarray*
equation
equation*

gather    
gather*   
gathered

matrix
multline  
multline*

pmatrix

smallmatrix
split           
subarray    

Vmatrix
vmatrix

@Carreau
Copy link
Member

Carreau commented Nov 23, 2012

Thank for the recap' .
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants