MHB RH and LH Double-Quotes in MathJax

  • Thread starter Thread starter Ackbach
  • Start date Start date
  • Tags Tags
    Mathjax
AI Thread Summary
Handed double-quotes in MathJax can be achieved using the unicode command, specifically \unicode{x201C} for the opening quote and \unicode{x201D} for the closing quote. Standard LaTeX methods for quotes do not function correctly in MathJax, as demonstrated in the examples provided. The unicode method has been confirmed to work effectively by multiple users in the discussion. This approach is currently the only reliable method for producing proper handed double-quotes in MathJax. The community consensus highlights the effectiveness of the unicode solution.
Ackbach
Gold Member
MHB
Messages
4,148
Reaction score
93
Anyone know how to do handed double-quotes in Mathjax? I know how to do it in normal $\LaTeX$, but the code

Code:
$$\frac{d}{dx}\,f(x)\;\text{``is one notation''}$$

yields

$$\frac{d}{dx}\,f(x)\;\text{``is one notation''}$$

So that doesn't quite work like it normally does in $\LaTeX$. The alternative

Code:
$$\frac{d}{dx}\,f(x)\;\text{"is one notation"}$$

yields

$$\frac{d}{dx}\,f(x)\;\text{"is one notation"}$$

So that doesn't work, either. How to do this?
 
Physics news on Phys.org
You can use \unicode command to produce the proper character.

Code:
\unicode{x201C}\text{Hello Ackbach!''}

will give

$\unicode{x201C}\text{Hello Ackbach!''}$
 
Last edited:
sbhatnagar said:
You can use \unicode command to produce the proper character.

Code:
\unicode{x201C}\text{Hello Ackbach!''}

will give

$\unicode{x201C}\text{Hello Ackbach!''}$


Wow, that is a hack. But it works! Thanks much.
 
Ackbach said:
Anyone know how to do handed double-quotes in Mathjax? I know how to do it in normal $\LaTeX$, but the code

Code:
$$\frac{d}{dx}\,f(x)\;\text{``is one notation''}$$

yields

$$\frac{d}{dx}\,f(x)\;\text{``is one notation''}$$

So that doesn't quite work like it normally does in $\LaTeX$. The alternative

Code:
$$\frac{d}{dx}\,f(x)\;\text{"is one notation"}$$

yields

$$\frac{d}{dx}\,f(x)\;\text{"is one notation"}$$

So that doesn't work, either. How to do this?

Hi Ackbach, :)

I asked this question from the MathJax community and here is the reply.

Kind Regards,
Sudharaka.
 
Sudharaka said:
Hi Ackbach, :)

I asked this question from the MathJax community and here is the reply.

Kind Regards,
Sudharaka.

Their unicode method does work: \unicode{x201C} \text{ some text }\unicode{x201D}

\( \unicode{x201C} \text{ some text }\unicode{x201D} \)
 
Concur with CB - I would add that the unicode method seems to be the only method that works.
 

Similar threads

Replies
12
Views
3K
Replies
3
Views
2K
Replies
15
Views
25K
Replies
11
Views
2K
Back
Top