The most commonly used math typesetting language is called (pronounced LAY-teck). WordPress (and the OpenLab) apparently support Latex commands but since I’m new here, I just wanted to experiment with the input…so you can ignore any math-symbol gibberish at the bottom of this post. You’ll be expected to learn at least a little about posting with , so you might like to try experimenting yourself by commenting on this post.
FYI, Professor Reitz’s instructions are super helpful and can be found here. Scroll to “Typing math on the OpenLab.”
For all such that .
Evidently, I still have some learning to do! Anything enclosed by dollar signs should be displaying as math…
Hi Masaab. You might like to try again; I’ve updated the blog settings so LaTeX should display correctly now.
The code for your second comment looks like it should work. The code for the first comment either contains an extra { or is missing a }. LaTeX can be picky when it comes to parentheses and brackets: anything you open must be closed.
I’ve noticed that the WordPress version we’re using here can be picky when it comes to spaces. There should be no space between your first $ and the word “latex,” but there should be a space after that. I’m not sure if it matters if there’s a space before the last $. I had some extra spaces inside my experimental codes above. They couldn’t be compiled until I deleted them.
It worked, didn’t put space before …’after latex’
Awesome!
$latex(x^2-4)/(x-2)$
oops
Hi Andrew. Your LaTeX code looks mostly good to me; I think all you need is a space after your “$latex.”
Also, fractions are sometimes easier to read if you typeset them using the “frac” command. Let’s see if I can get the above to compile…
You can hover over the compiled LaTeX image to see what code was used. Here I can see that I have a “/” symbol where I shouldn’t. Here’s another try:
FYI, the code here is “\frac{x^2-4}{x-2}.”
Ah, we tried the same thing at the same time! It seems like the LaTeX in the comments isn’t compiling. I’ll have to investigate the settings again.
Settings updated!
Cool!
Hi Mouhamath. It looks like your code is compiled, but perhaps it’s not doing exactly what you want it to. LaTeX commands begin with a back slash (\); you’ve got a forward slash (/), so it doesn’t know that you’re asking it to spit out a fraction. Try instead:
\frac{9-h^2}{h-3}
which gives (if I’ve done it correctly)
.
You got it!
okk,thank’s
latex$ f(x) = $
$latexf(x)$
For , I got
For , I got
For , I got
For , I got
For , I got
For , I got