Site Update » Math BBCode tag · 12:58am Dec 17th, 2017
I've added [math]
and [mathblock]
BBCode tags, which can be used to display formatted math. We've had a few requests for this, particularly for group forum threads and blog posts. Most math-related TeX syntax is supported. (We are currently using MathJax to handle the layout.)
The documentation from the BBCode guide is repeated below for your convenience.
Math and MathBlock
TeX syntax math can be typeset using the [math]
tag. This will place the math inline with the rest of the text.
For example, the Pythagorean theorem is a^2 + b^2 = c^2
For example, the Pythagorean theorem is [math]a^2 + b^2 = c^2[/math]
[mathblock]
is used for larger formulas to display them in their own paragraph. For example, the quadratic formula:
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
[mathblock]x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}[/mathblock]
Thank you!
\texttt{I need to find a way to use this now. This is amazing.}
ban all nerds
It looks kind off complicated, but I think I could use this later down the line.
Thanks, this will make it easier to express equations. Great job!
I was told there would be no math on this test.
4750597
It's a little complicated yes, but once you learn the basics it's not too hard to write most simpler formulas. More complicated formulas require more knowledge of how all the features work, but people who have taken graduate level math courses have probably either already used or at least been exposed to TeX syntax in a LaTeX document. (and anything below that probably isn't going to be that hard to express.)
vignette.wikia.nocookie.net/cardfight/images/8/87/2397_safe_exploitable_meme_sweetie_belle_image_macro_reaction_image_artist-colon-uc77_that_is_beautiful.png/revision/latest?cb=20140922022932
also, a bit terrifying.
MathFiction when.
So
A^3 + 6^4 - 5^1 +7^3 = B^5
andThat’s dang cool. Thought it is annoying to use “\” instead of “/”
4750594
no u
Yay!
\\ \\
I'll have to think of things I can do with this.^1
.\\ ^1 That\space aren't\space math\space related.
--Sweetie Belle
4750616
Keep in mind using the tag for things it's not intended for may create readability problems for some users. (and is as a result not recommended.)
I do plan to add support for proper tables, although I'm not sure what the exact timeframe will be, as getting that right is harder than it sounds.
4750594
This.
Well, isn't this timely?
For completeness the post should probably show the source for the
a^2+b^2=c^2
example too.4750603
4750616
To avoid spacing problems (e.g.
Muffins
), you should enclose the non-math text in \text{...}, producing\text{Muffins}
, or \textit{...} producing\textit{Muffins}
.4750618
I'll keep that in mind.
I actually tried full tables inside the math tag, too, to see if that'd work, but the example I copied and pasted just came out all on one line with the lines typed on top of each other, unfortunately. Tables was one of the things I was hoping for, and I am glad it's being worked on.
Real footnotes would be nice, too. (Ones where you didn't have to scroll all the way to the bottom of the chapter to read then scroll all the way up, anyways.) And blocks of text you could show and hide by clicking on an arrow or +/- would be neat.
But then, I tend to have way too many ideas on this type of thing...
--Sweetie Belle
2 + 2 = 5
Nailed it.
It's important to note that use of the tag for non-math in such a way that it creates readability problems violates the general rules on story formatting.
I already know how I'll be using this
4750632
Tables, footnotes, and expandable regions are all on my to-do list. All three have some sort of extra complexity that makes getting it all working right nontrivial, unfortunately.
4750639
Excellent :3
4750631
Thanks! I was wondering how to do that, as I'm mostly just looking at a quick reference and seeing what I can figure out.
-\textit{Sweetie Belle}
nice
4750638
I'd imagine! A lot of times e-book readers don't deal with footnotes well, either, and since you can't really do them the way a real book would, you have to make them work other ways.(mouse over text, showing them in a bar at the bottom, click to expand, click to go to the footnote then click to get back, etc...) Discworld-type stories really ask for them, though.
I'll admit I mostly want the expanding blocks for things like rules and faqs.
Hmm, looks like the math blocks don't work with copy and paste...
--Sweetie Belle
Here, I just made an equation to quantify my writing.
Text-to-speech seems to ignore
[mathblock]
paragraphs completely, but gives hilarious results with[math]
for me -- first reading the symbols in the formula aloud twice, and then continuing to read the TeX source.Xaq, would it be possible use CSS to to exclude the <span class="mjx-math"> and <script type="math/tex"> elements from TTS? That would mean the reader sees only the "Assistive MathML" span, which it would have a fighting chance of pronouncing readably.
In the absence of that, it's probably best to avoid math in stories altogether.
Cool stuff! Thanks!!
You mean, I don't have to convert screenshot a word doc with equation editor equations and turn them into .jpg and insert them as images any more?
There's not a lot of info out there on this. Can it do vector symbols? Cross and dot products? Where do I go to learn these things?
4750680
It uses TeX syntax, there are quite a few resources online to learn the various supported commands. To answer your specific questions, all those features should be supported.
4750639
Took me a few clicks to realize LOL
4750680
https://www.mathjax.org
WikiBooks has a pretty good page on using math in LaTeX, most of which is applicable to this tag: https://en.wikibooks.org/wiki/LaTeX/Mathematics. (although some of the talk about how to get a math environment, like using
$...$
or\begin{math}
isn't applicable)Edit:
Ninja'd
4750680
Here is a good start...
4750664
It should be possible to improve TTS handling of this, yes. Current situation should still be better than a picture of math (at least it scales to high resolution screens at large font sizes well), but clearly it could be better...
4750606
As soon as Pineta learns this is a thing.
Another attempt at a "quick" reference is https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference
Math.SE uses the same math rendering engine as Fimfic now does, except that where they write
$...math...$
and$$...math...$$
, we must mark it up as[math]
and[mathblock]
to delimit the blocks.4750639
Silly pony. a_n are zero by inspection.
I can't run from math anymore. It keeps finding me.
4750798
For
f(x)=x^2
, theb_n
s clearly vanish by symmetry, but thea_n
s don't. I getBut does it let you add Greek letters (e.g. capital delta) without having to copy/paste from elsewhere? Those DO hold significance in some formulae, after all...
4750850
Yes:
[math]\Delta,\delta[/math]
produces\Delta,\delta
.4750856
Sounds good! Thanks for the assist
This and pornhub are more caring about people then the real world. K den
That's... unexpected, but a welcome addition.
Especially surprising since this comes out the literal day before I have a test on just this.
AWESOME!