# In TeX input,  should produce left single quote. (&#x2018;) #402

Closed
opened this issue Mar 3, 2013 · 11 comments

Projects
None yet
4 participants
Contributor

### jdh8 commented Mar 3, 2013

 In TeX,  produces left single quote both in text mode and in math mode. This is "function application" in set theory. If appends a function, should it replace⁡?
Contributor

### fred-wang commented Mar 4, 2013

 I'm not sure what is your idea. As I see, MathJax only produces    Are you suggesting to append a ?. Or that "‘" should be used instead of "⁡" everywhere? It seems to me that the semantic of the invisible apply function is well-defined in Unicode while the character  only has the apply function meaning in set theory. Perhaps in other fields it has a different meaning.
Contributor Author

### jdh8 commented Mar 8, 2013

 TeX renders as &#x2018; instead of itself. Of course \sin x produces sinx, but for \sinx, can the ⁡ be omitted?
Member

### pkra commented Mar 8, 2013

 If  appends a function, should it replace ⁡ I think the answer is simply "no" -- ⁡ should be there. I don't know if MathML allows for maybe a style-setting to visualize such invisible characters. From reading the specs, I see that in PresentationMathML ⁡ is usually followed by something like ( .... So that construction seems the right way to go. Not sure what you could do with ContentMathML to abstract that away but ContentMathML is currently not available in MathJax anyway. For TeX you could maybe build a macro that combines  with another operatorname, but in MathJax setting that's probably a bit trickier.
Contributor Author

### jdh8 commented Mar 10, 2013

 OK, but  should produce &#x2018;. The grave accent can be produced by \.
Member

### dpvc commented Mar 10, 2013

 You can get  to produce ‘ by adding   before the script that loads MathJax.js itself. Since \ is a text-mode macro not a math-mode one, you _can't_ use that to obtain the grave accent. And although \gravedoes produce a grave accent, it requires something to be an accent over, and the placement of it will depend on what follows. Also, the MathML that this produces will be more complicated, and not what is currently produced by . For that, you could use\mmlToken{mo}{}.
Member

### dpvc commented Mar 10, 2013

 If you want to prevent the ⁡ when a named function is followed by , you could add   before the script that loads MathJax.js itself.
Contributor Author

### jdh8 commented Mar 10, 2013

 Thanks! They both work.

Member

### dpvc commented Mar 10, 2013

 I'm leaving this open so that I remember to add the remapping in the TeX input jax.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 16, 2013

 Remap  to back-quote. Resolves issue mathjax#402. 
 3367b54 
Member

### dpvc commented Apr 16, 2013

 The issue402 branch of my fork of MathJax includes the fix to map  to U+2018.
Contributor

### fred-wang commented Apr 19, 2013

 This will be tested by LaTeXToMathML/basic-operators/remap-1.html => In testsuite, Ready for release

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 19, 2013

 Merge branch 'issue402' into develop 
Resolves issue mathjax#402.
 9e5fbb7 `
Member

### dpvc commented Apr 19, 2013

 => Merged