Discussion in 'Site Feedback' started by Plazma Inferno!, Jul 8, 2016.

1. ### Plazma Inferno!Ding Ding Ding DingAdministrator

Messages:
4,610
Hi everyone.

As you probably know, XenForo (the engine SciForums is based on) uses dollar sign for formatting purposes, so text following it becomes wonky.
The simple hack to fix this to this is to place dollar sign (with or without amount) in Italic.

Example:

I got $1 but I wish it was$2.

I got $1 but I wish it was$2.

joepistole likes this.

3. ### BowserRight Here, Right NowValued Senior Member

Messages:
8,612
Thanks. I had that problem on several posts.

5. ### James RJust this guy, you know?Staff Member

Messages:
34,242
Is it because the dollar sign is used as a delimiter for TeX code?

Test:

Dollar signs: $code$:
$E=mc^2, i\hbar \frac{\partial \psi}{\partial dt} = -\frac{\hbar^2}{2m}\nabla \psi + V\psi$

$code$:
$E=mc^2, i\hbar \frac{\partial \psi}{\partial dt} = -\frac{\hbar^2}{2m}\nabla \psi + V\psi$

$$code$$:
$E=mc^2, i\hbar \frac{\partial \psi}{\partial dt} = -\frac{\hbar^2}{2m}\nabla \psi + V\psi$

Seems all give the same result. Useful trick with the italics, though.

Last edited: Jul 11, 2016

7. ### Plazma Inferno!Ding Ding Ding DingAdministrator

Messages:
4,610
I think so. Of all signs, they picked one of the most used... But well, at least I figured out this little trick.

8. ### StryderKeeper of "good" ideas.Valued Senior Member

Messages:
13,102
You'd need to change:
Code:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\$','\$']]}});
</script>

to:
Code:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\$','\$']], processEscapes: true}});
</script>

You can then \\$ in any mathematic equations so they don't have that problem.