RH and LH Double-Quotes in MathJax

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

The discussion focuses on implementing handed double-quotes in MathJax, highlighting that standard LaTeX methods do not yield the desired results. Users found that using the Unicode command \unicode{x201C} for left double-quotes and \unicode{x201D} for right double-quotes is the only effective solution. This method allows for proper quotation formatting within mathematical expressions in MathJax.

PREREQUISITES
  • Familiarity with MathJax syntax
  • Basic understanding of LaTeX
  • Knowledge of Unicode characters
  • Experience with mathematical typesetting
NEXT STEPS
  • Research the MathJax documentation for advanced formatting techniques
  • Explore Unicode character sets for additional typographic symbols
  • Learn about LaTeX's text formatting commands
  • Investigate other MathJax features for enhanced mathematical presentations
USEFUL FOR

Mathematicians, educators, and developers who utilize MathJax for rendering mathematical expressions and require precise typographic control in their documents.

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