LaTeX Support Added

A forum about the forums

Moderator: Carleas

LaTeX Support Added

Postby Carleas » Wed May 17, 2017 8:20 pm

We've added support for LaTeX, a form of markup that will allow the use of logic and math symbols in posts. For example,

Math notation: \(\int_0^\infty f(x) dx\)

Logic notation: \(\forall x \, (x \rightarrow y) \rightarrow \exists y \, ( \lnot y \rightarrow \lnot x)\)

You can also create equations centered in a post on their own line: $$ \texttt{Carleas} \equiv \texttt{marginally effective} $$
To invoke the interpreter, surround LaTeX code with either double dollar signs (for centered equtaions): $$ your Latex here $$,
Or for inline equations, use parentheses preceded by a backslash: \( your Latex here \)

Click 'Quote' on this post, or on fuse's post here, to see some examples of how equations are formatted.

There are plenty of LaTeX tutorials out there, but if you find any you like please recommend them below.
User Control Panel > Board preference > Edit display options > Display signatures: No.
Carleas
Magister Ludi
 
Posts: 5406
Joined: Wed Feb 02, 2005 8:10 pm
Location: Washington DC, USA

Re: LaTeX Support Added

Postby wtf » Thu May 18, 2017 5:41 am

Thanks Carleas. Any hope of modifying javascript to allow single $ delimiters for inline? I think you can specify that if I'm not mistaken. If it can't be done no prob I can work around it.

ps -- Nevermind I can fix this up easily at my end.
wtf
 
Posts: 199
Joined: Sun Dec 06, 2015 5:47 am

Re: LaTeX Support Added

Postby Carleas » Thu May 18, 2017 4:11 pm

I think the single $ is too likely to be used for non-LaTeX purposes. It's also harder to escape cleanly.

Two-character delimiters are easy to escape: wrap one of the characters in a [size] tag and MathJax ignores it:
[size=100]$[/size]$ \( \rightarrow \) $$

[size=100] means 100% of regular size, i.e. regular size.
User Control Panel > Board preference > Edit display options > Display signatures: No.
Carleas
Magister Ludi
 
Posts: 5406
Joined: Wed Feb 02, 2005 8:10 pm
Location: Washington DC, USA

Re: LaTeX Support Added

Postby Carleas » Thu May 25, 2017 7:03 pm

I've found https://tex.stackexchange.com/ very useful. Most responses there are more complicated than anything I've needed, but it's a good place to look for examples of specific formatting.
User Control Panel > Board preference > Edit display options > Display signatures: No.
Carleas
Magister Ludi
 
Posts: 5406
Joined: Wed Feb 02, 2005 8:10 pm
Location: Washington DC, USA


Return to Meta



Who is online

Users browsing this forum: No registered users