RH and LH Double-Quotes in MathJax

  • Context: MHB 
  • Thread starter Thread starter Ackbach
  • Start date Start date
  • Tags Tags
    Mathjax
Click For Summary

Discussion Overview

The discussion revolves around the use of handed double-quotes in MathJax, particularly how to properly format them in mathematical expressions. Participants explore various methods to achieve this, comparing results from standard LaTeX to MathJax.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant inquires about the proper way to use handed double-quotes in MathJax, noting that standard LaTeX methods do not yield the expected results.
  • Another participant suggests using the unicode command \unicode{x201C} to produce the correct character, demonstrating it with an example.
  • A third participant expresses surprise at the effectiveness of the unicode method, indicating it as a workaround.
  • A later post reiterates the original inquiry and confirms the unicode method as a solution, providing a specific format for its use.
  • One participant concurs with the suggestion, emphasizing that the unicode method appears to be the only effective solution.

Areas of Agreement / Disagreement

Participants generally agree on the effectiveness of the unicode method for achieving handed double-quotes in MathJax, but there is no consensus on alternative methods, as the original inquiry remains unresolved.

Contextual Notes

The discussion highlights limitations in MathJax's handling of double-quotes compared to standard LaTeX, with participants relying on unicode as a workaround without exploring other potential solutions.

Ackbach
Gold Member
MHB
Messages
4,148
Reaction score
94
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 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
10K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K