github-mathjax icon indicating copy to clipboard operation
github-mathjax copied to clipboard

Missing or unrecognized delimiter for \left

Open xpqiu opened this issue 7 years ago • 4 comments

Missing or unrecognized delimiter for \left .

For example, $$ \phi_2(x,y)=\left{ \begin{array}{11} 1 & \textrm{if x contains 'stock' and y is 'sport'}\ 0 & \textrm{otherwise} \end{array} \right.. $$

xpqiu avatar Aug 07 '17 06:08 xpqiu

Remove the first bracket and replace it with \ lbrace $$ \phi_2(x,y)=\left\lbrace \begin{array}{ll} 1 & \textrm{if x contains 'stock'
and y is 'sport'} \newline 0 & \textrm{otherwise} \end{array} \right. $$

admnll avatar Jul 10 '19 23:07 admnll

According to GitHub Flavored Markdown Spec, Sec. 6.1

Any ASCII punctuation character may be backslash-escaped: \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~

Hence the whole process is

  • you type in \left\{ and gfm parser uses it as input
  • gfm parser returns \left{ and github-mathjax (and mathjax) uses it as input
  • mathjax complains about { is not a delimiter

And, duplicate of #26 .

muzimuzhi avatar Jul 11 '19 00:07 muzimuzhi

Sorry, I have not found that this is a so-old issue.

muzimuzhi avatar Jul 11 '19 01:07 muzimuzhi

thx

piglaker avatar Jan 04 '21 06:01 piglaker