Roleplaying Video Games Entertainment & Media Politics & Religion General
Worldbuilding Creative Forum The Sports Center Science, Math, & Technology The Nostalgia Forum
GTX0 is community-run. Do you have an issue or suggestion? add_comment Add one

Science, Math, & Technology

latex support added

Posted Over 6 Years ago by Riven

Evidently you use backslashes for everything (Is this a latex-specific thing, or a mathjax-specific thing?)



Turns into

\[
\left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
\left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
\]

Inline LaTeX

You can use LaTeX inside of a paragraph as well by surrounding it by $$<latex>$$.

The quick brown fox $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ jumps over the lazy red dog.

turns into

The quick brown fox $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ jumps over the lazy red dog.

Conclusion

If there's anything I'm leaving out (likely) let me know!

There are 52 Replies


You are an Angel of the Lord. {O:-)} Thank you for your kindness, Xhin. We truly appreciate this.

About your first question, yes, the command \ [ ... \ ] are used in LaTeX. In fact I use it all the time. Other times I use the double dollars $ you mentioned. When I want a displayed equation to be numbered I use the environment variable:

\ begin{equation}
.... Equation goes here ...
\ end{equation}

Hey that worked!

Over 6 Years ago
The Fly
 

Interesting...

Over 6 Years ago
GHOW
 

Oh neat, I didn't think about spacing out the backslashes. That's good! I used the `` trick for the $$ thing (after a little tweak to get it to render as <em></em> instead of literally nothing).

Over 6 Years ago
Riven
 

Yeah, I had to put a space after the \ since it did work otherwise! {;)}

Let me test ... $\pi^{-1/2}$. So one dollar doesn't work. So it needs more money two dollars! $$\pi^{-1/2}$$

Yup! Worked! I see you TeXed the Cauchy-Schwartz inequality!

We're gonna teach the people of GT to do some TeXing here. You said it! This is gonna be TeXan land from now on! ;-)

Over 6 Years ago
The Fly
 

Yeah it doesn't work with single dollar signs. And you wouldn't want it to, really..

Over 6 Years ago
Riven
 

This is a t$$\epsilon$$st.

This is a t$\epsilon$st.

This is a t\[\epsilon\]st.

$$\tau \epsilon \Sigma \tau$$

Over 6 Years ago
EN
 

I've got the mathjax showing up on the left now where it belongs.

Over 6 Years ago
Riven
 

When I've used other Latex supporting sites like stackexchange, single dollar signs let you do inline code, while double dollar signs gives you a separate centered paragraph. Any chance we could get that sort of inline functionality?

Over 6 Years ago
EN
 

Also my OP was wrong about inline math. You apparently just use the backslash syntax for it.

there are two solutions to \(ax^2 + bx + c = 0\).

Over 6 Years ago
Riven
 

Yeah inline math is supported by default really..

Over 6 Years ago
Riven
 

That's ok, I'm not at all worried about the single $. I'm not familiar with mathjax.

Can you find this integral?

\[
\int_0^\infty e^{-2x} dx
\]

Over 6 Years ago
The Fly
 

This is a t\(\epsilon\)st.

Over 6 Years ago
EN
 

So backslash parenthesis is the same as single dollar sign. Cool. Thanks, Xhin.

Over 6 Years ago
EN
 

I see Xhin used the command

\ (ax^2 + bx + c = 0\ )

without the spaces after \ to get the math in undisplayed format.

Let me test it.

Over 6 Years ago
The Fly
 

So backslash parenthesis is the same as single dollar sign. Cool. Thanks, Xhin.

I second that. Makes it so much easier.

I'm gonna have to pin this thread! For people to see and read these simple instructions. {y}{y}{y} to Xhin!

Over 6 Years ago
The Fly
 

And Xhin, sometimes quadratic equations only have one solution (though in that case it has multiplicity two).

$$X^{h^{i^n}}$$

$$X_{h_{i_n}}$$

Over 6 Years ago
EN
 

The set consisting of y is
\[
\{y\}
\]
is now no longer confused with {y} !

Over 6 Years ago
The Fly
 

$$
\begin{align*}
\Pr\left(\cap_{i \in [N]}(S_i=0) \right) &= \Pr\left(\cap_{i \notin J}(S_i=0) \right) \\
&= 1-\Pr\left(\cup_{i \notin J}(S_i=1) \right) \\
&\ge 1-\sum_{i \notin J} \Pr(S_i=1) \\
&= 1-(N-t)(1-1/t)^t \\
&\ge 1-(N-t)/e
\end{align*}
$$

Over 6 Years ago
EN
 

I have to say that I'm impressed with how Xhin got LaTeX to work!
\[
\frac{\partial}{\partial x}
\]

Over 6 Years ago
The Fly
 

EN you're TeXing away !! {y}

Here's the Schrodinger equation of quantum mechanics:
\[\Large
i\hbar \frac{\partial\psi}{\partial t} = H\psi.
\]

Over 6 Years ago
The Fly
 

$$P(Pass)=P(H \ge T) \le \frac{E[H]}{T}=\frac{.5E}{T}=\frac{q^2}{2NT}$$

Over 6 Years ago
EN
 

You can even use the \ large and \Large and \ LARGE commands to make equations bigger! I just did to make the Schrodinger equation bigger.

Over 6 Years ago
The Fly
 

It's like suddenly I can talk and there's so much to say.

Over 6 Years ago
EN
 

LOL. You're not alone! {:D} Now I feel like a little boy!

Over 6 Years ago
The Fly
 

Let \(\large{}_AX_B\) be a bimodule over rings \(A, B\). And form the tensor product \(\large X \otimes_B Y\) over B.

Over 6 Years ago
The Fly
 

$$\LARGE\bigstar$$

Over 6 Years ago
EN
 

\(\textcolor{blue}{Words go here}\)

Over 6 Years ago
The Fly
 

$$
\usepackage{simpson}
\homer
$$

Over 6 Years ago
EN
 

To anyone reading this and who is interested, to find out how we formatted a certain equation, just click the Edit link of that post to see how that person wrote it.

\[\Large
\text{Big Words HERE!}
\]
oops that stretched the page!

\[\LARGE\text{How about Bigger Words!}\]

\[\LARGE\text{This is What I call a PARTY!!}\]

(ok, a math party!)

Over 6 Years ago
The Fly
 

The ring of integers
\[\Large
\mathbb Z = \{1, 2, 3, \dots \}
\]
All functions from the integers to the integers: \(\Large \mathbb Z^{\mathbb Z}\).

Over 6 Years ago
The Fly
 

\( \heartsuit ~ \bigstar ~ \Omega ~ \clubsuit \) \(~ \Large \bullet \) \( ~ \Phi ~ \bigcap \) \(~ \rho \)

Over 6 Years ago
EN
 

Can anyone guess what I was getting at in the last reply?

Over 6 Years ago
EN
 

Greek Letters now come alive!

\(\LARGE \alpha \ \beta \ \gamma \ \Gamma \ \delta \ \Delta \ \pi \ \Pi \ \mu \ \nu \ \omega \ \Omega \ \sigma \ \Sigma \)

Over 6 Years ago
The Fly
 

By the way, this is a great site to figure out the command to type a symbol that you want but don't know the name of. You draw the symbol you want and it suggests symbols that look like what you've drawn:

http://detexify.kirelabs.org/classify.html

Over 6 Years ago
EN
 

You can use \ with a space after it in TeX to create one spacing, and you can do this \ \ to get two spaces, etc. If you want more you can use the \hskip10pt command and replace 10 by any number. E.g.,

\(A \hskip20pt B\)

Here I used the hskip with 20 points.

Over 6 Years ago
The Fly
 

\(\eta \)

Over 6 Years ago
GHWI
 

GHWI, try surrounding your eta like this \ ( \eta \ ) without the space after the \'s.

Over 6 Years ago
The Fly
 

Commutative diagrams can be created by \CD ... but I have to recheck.

Over 6 Years ago
The Fly
 

Yay! I did it.

Over 6 Years ago
Ghowilo
 

Welcome to the world of \(\large \LaTeX\)!

Over 6 Years ago
The Fly
 

Now we can have matrices!

\[\Large
\left[\begin{matrix} a_{11} & a_{12} & a_{13} & \cdots & a_{1n} \\
a_{21} & a_{22} & a_{23} & \cdots & a_{2n}
\\
a_{31} & a_{32} & a_{33} & \cdots & a_{3n}
\\
\vdots & \vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & a_{n3} & \cdots & a_{nn}
\end{matrix}\right]
\]

Click on Edit \(\large \longrightarrow\) to see how it works. \(\large \longrightarrow\) \(\large \longrightarrow\) .... \(\large \longrightarrow\)

I made it large.

Over 6 Years ago
The Fly
 

http://detexify.kirelabs.org/classify.html

Great learning tool, EN, thanks! Very easy to use. Hey you guys go to this sight and write alpha and you'll get the TeX command for it -- it also gives you other alternative commands for similar symbols.

Over 6 Years ago
The Fly
 

I often use the \ align command so that a set of equations are aligned together like this

\begin{align}
a^2 + b^2 &= \alpha^3
\\
c^5 &= \alpha^2 + \gamma^2
\end{align}

You notice the = signs are aligned.

Click on Edit \(\large \longrightarrow\) to see how it's done.

Over 6 Years ago
The Fly
 

\(\Large\text{PLEASE NOTE:}\)

I unstickied two of Yeano's threads that were at the top but they're still on the front page in the Announcements box just below the title of the forum.

I sticked this Xhin's thread since it would be a good resource reference to have for those who want to refer to, or be reminded of, some LaTeX commands.

Over 6 Years ago
The Fly
 

Let \(X\) and \(Y\) be topological spaces. Let \(f,g : X \rightarrow Y\) be two continuous functions.

A homotopy from \(f\) to \(g\) is a continuous function \(H: X \times I \rightarrow Y\) such that

\[H\left(x,0\right) = f\left(x\right) \forall x \in X\]
\[H\left(x,1\right) = g\left(x\right) \forall x \in X\]

Over 6 Years ago
Yeano
 

\[
\usepackage{xypic}
\xymatrix{ A \ar^{f} \ar[d]_{g} & B \ar[d]^{h} \\
C \ar_{i} & D }
\]

Over 6 Years ago
Yeano
 

We might ask to see if Xhin can include some basic packages in the LaTeX preamble like xypic so that maybe we can get commutative diagrams to work.

Over 6 Years ago
The Fly
 

Sure, I'll look into it!

Over 6 Years ago
Riven
 

Thanks Xhin! In my TeX files I often have the following lines mentioned at the beginning of the preamble to enable the use of the packages that they refer to.

For example, in addition to Yeano's xypic, I have these packages/inputs:

\usepackage[usenames]{color}
\usepackage{amssymb}
\usepackage{amscd}
\usepackage{array}

\usepackage[]{graphicx}
\input xy
\xyoption{all}

\usepackage{epsfig}

Loading packages is easy since all it means is that it alerts TeX to take account of a package by virtue of its name! You tell it the name of the package and it knows what to do.

Over 6 Years ago
The Fly
 

Hmmm, maybe the psfig can be excluded since it refers to a file on my hard drive ... but I never tried to see if it can reference a hyperlink image. We don't need to since we have the [ img ] feature on GT, so we can ignore psfig.

Over 6 Years ago
The Fly
 

It really doesn't like this equation for whatever reason

$$I_{zz}^* = \int {x^2 + y^2)dm$$

Over 4 Years ago
Ghowilo
 

I figured out why

Over 4 Years ago
Ghowilo
 

Reply to: latex support added

Username
Password