- This topic has 3 replies, 3 voices, and was last updated 7 years, 10 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
› Forums › General questions › How to view and author posts that include code or maths
Viewing maths
This site uses MathJax to render equations. At the moment, the equations are only rendering on Safari and Internet Explorer. I will try to get things working in all browsers. Please help me by posting replies to this topic telling me what does and does not work for you (specify browser and operating system).
Authoring posts that include code
To format code nicely, wrap it in pre tags (but don’t cut-and-paste from this post – you’ll probably get the wrong characters):
<pre class=”lang:bash”>
for X in 1 2 3
do
echo ${X}
done
</pre>
which will be displayed like this:
for X in 1 2 3 do echo ${X} done
You can change lang:bash to whichever language you are posting (e.g., python)
Authoring maths
To include maths, you can use Latex markup and wrap it in the latex short code, like this example:
[latex]
\mu = \frac{1}{N} \Sigma_{x=1}^{N} x_n
[/latex]
which will be displayed as
[latex]
\mu = \frac{1}{N} \Sigma_{x=1}^{N} x_n
[/latex]
Or you can attach an image of the equation to your post (e.g., something from a paper that you would like explaining).
Maths looks fine on Chrome for iOS
Maths aren’t displayed on Chrome for Windows.
Not seeing the maths displayed on Chrome for MacOS either. Works fine on Safari though.
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2024 · Balance Child Theme on Genesis Framework · WordPress · Log in