Jump to content

math test


Ghideon
 Share

Recommended Posts

  • 9 months later...
  • 9 months later...

Three different modes tested:

[math]f(x):=0[/math]

\(f(x):=0\)

[latex]f(x):=0[/latex]

Code for above is

[math]f(x):=0[/math]

\(f(x):=0\)

[latex]f(x):=0[/latex]

Screendump from browser

image.png.09d5249ca4c056ab5a4d93bd2915e9ca.png

Mathjax-config: 

inlineMath: [ ["\[math\]","\[\/math\]"], ["\\(","\\)"], ["\[latex\]","\[\/latex\]"] ],

 

Edited by Ghideon
Link to comment
Share on other sites

  • 9 months later...

Testing inlined math using hint from @joigus*, square brackets vs parentheses. 

Sentence with three definitions [math]f(x^{2})=\frac{y}{2} [/math] \(f(x^{2})=\frac{y}{2}\) [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

Sentence with no math. 

New sentence [math]f(x^{2})=\frac{y}{2}[/math] \[f(x^{2})=\frac{y}{2}\] [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

 

<end of test>

Below is the code for the above 

Sentence with three definitions [math]f(x^{2})=\frac{y}{2} [/math] \(f(x^{2})=\frac{y}{2}\) [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

Sentence with no math. 

New sentence [math]f(x^{2})=\frac{y}{2}[/math] \[f(x^{2})=\frac{y}{2}\] [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

 

*) Thanks !

Edited by Ghideon
Link to comment
Share on other sites

\[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

Displaying the command text in AMS Latex works if you omit the first backslash or put it between < >

[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

<\>[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

 

 

 

 

Edited by studiot
Link to comment
Share on other sites

55 minutes ago, studiot said:

Displaying the command text in AMS Latex works if you omit the first backslash or put it between < >

That's nice. Only thing is that you're forced to leave out the braces, which maybe you want to make explicit. But you gave me an idea. Let's see if it works:

\[ \textrm{ \[ \frac{a}{b} \] } \]

\[ \text{ \[ \frac{a}{b} \] } \]

Look at that. It does...

You only have to escape the math mode inside the LateX with the \textrm{} or \text{} commands.

Link to comment
Share on other sites

\[ \frac{a}{b} \] 

23 hours ago, joigus said:

\[ \frac{a}{b} \] 

\[ \frac{a}{b} \] 

Yes it seems to be copy and pastable.

I say that as I try to provide something that does not generate an error code here but can be copy/pasted rather than typed in.

Link to comment
Share on other sites

On 1/10/2021 at 6:24 PM, Ghideon said:

Below is the code for the above 

You don't need brackets {} if superscript or subscript has just one character. e.g. x^2 instead of x^{2}. Subscript you make using _ character.

[math]x^2[/math]

[math]x_a[/math]

 

 

Edited by Sensei
Link to comment
Share on other sites

14 hours ago, studiot said:

Yes it seems to be copy and pastable.

Yes it is copy and pastable, but sadly I now note that it did not produce my intended effect.

Yes I copy.pasted from your post and it reproduced the listing of your code as you have shown it,

But MathJax the Mangler  later intervened and now my copy comes out showing the action (ie the fraction) not the code.

Link to comment
Share on other sites

16 minutes ago, studiot said:

Yes it is copy and pastable, but sadly I now note that it did not produce my intended effect.

Yes I copy.pasted from your post and it reproduced the listing of your code as you have shown it,

But MathJax the Mangler  later intervened and now my copy comes out showing the action (ie the fraction) not the code.

It interacts badly with the round brackets also when you want to show the inline maths tags. It may interact badly with other tags too. I think the safest thing when you want to show code is the code button on the toolbar.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.