My Math Forum Some Latex Commands

 New Users Post up here and introduce yourself!

 July 6th, 2011, 01:07 PM #1 Math Team   Joined: Dec 2006 From: Lexington, MA Posts: 3,267 Thanks: 408 Some Latex Commands In case the Latex tutorial doesn't have a list of commands, here are some of my favorites. $\begin{array}{cc} \backslash\text{pi} & \pi \\ \backslash\text{phi} & \phi \\ \backslash\text{equiv} & \equiv \\ \backslash\text{approx} & \approx \\ \backslash\text{perp} & \perp \\ \backslash\text{parallel} & \parallel \\ \backslash\text{cdots} & \cdots \\ \backslash\text{vdots} & \vdots \\ \backslash\text{circ} & \circ \\ \backslash\text{bullet} & \bullet \end{array}$$\begin{array}{cc} \backslash\text{emptyset} & \emptyset \\ \backslash\text{cup} & \cup \\ \backslash\text{cap} & \cap \\ \backslash\text{subset} & \subset \\ \backslash\text{supset} & \supset \\ \backslash\text{vee} & \vee \\ \backslash\text{wedge} & \wedge \\ \backslash\text{flat} & \flat \\ \backslash\text{sharp} & \sharp \\ \backslash\text{natural} & \natural \end{array}$$\begin{array}{cc} \backslash\tex{langle} & \langle \\ \backslash\text{rangle} & \rangle \\ \backslash\text{in} & \in \\ \backslash\text{sim} & \sim \\ \backslash\text{to} & \to \\ \backslash\text{boxdot} & \boxdot \\ \backslash\text{uparrow} & \uparrow \\ \backslash\text{rightarrow} & \rightarrow \\ \backslash\text{downarrow} & \downarrow \\ \backslash\text{leftarrow} & \leftarrow \end{array}$$\begin{array}{cc} \backslash\text{s{q}rt\{3x\}} && \sqrt{3x} \\ \\ \backslash\text{frac\{2x\}\{3y\}} && \frac{2x}{3y} \\ \\ \\ \{\text{9 choose 3}\} && {9\choose3} \\ \\ \\ \backslash\text{overline\{AB\} } && \overline{AB} \\ \backslash\text{vec\{AB\}} && \vec{AB} \\ \backslash\text{hat\{AB\}} && \hat{AB} \\ \\ \backslash\text{cancel\{3ab\}} && \cancel{3ab} \end{array}$ Thanks from Rexan and Yash Malik
 July 6th, 2011, 01:24 PM #2 Senior Member     Joined: Jul 2010 From: St. Augustine, FL., U.S.A.'s oldest city Posts: 12,211 Thanks: 521 Math Focus: Calculus/ODEs Re: Some Latex Commands Instead of {9 \choose 3} I've been using \binom{9}{3} and for \overline{x} I use \bar{x}. I wrote yours on the left and mine on the right: ${9 \choose 3}=\binom{9}{3}$ I prefer the output on the left! $\overline{x}=\bar{x}$ These look the same. Another one I use is \therefore $\therefore$ I prefer exponents to be smaller using the \tiny{x} and \small{x} commands: \sin^{\tiny{-1}}(x): $\sin^{\tiny{-1}}(x)$ \sin^{\small{-1}}(x): $\sin^{\small{-1}}(x)$ \sin^{-1}(x): $\sin^{-1}(x)$ However, sometimes and seemingly arbitrarily, this makes the rest of the expression smaller too, and I can't figure out why! Also, when enclosing a "tall" expression within parentheses (and other bracketing symbols), it doesn't look good with: (\frac{3x^2}{2y^3}): $(\frac{3x^2}{2y^3})$ However, some sites will suggest: \left(\frac{3x^2}{2y^3}\right): $\left(\frac{3x^2}{2y^3}\right)$ But, I've found an alternative (I notice others use it as well) that I prefer: $$\frac{3x^2}{2y^3}$$: $$$\frac{3x^2}{2y^3}$$$ (Notice it is almost as tall as the preceding, but not as dark) However, I've noticed when the expression is quite long, this shortcut doesn't always work, so then I put in the "left" and "right" and it works, although the bracketing symbols sometimes appear too dark or heavy. I use the \text{} command for units: 3\text{ km}: $3\text{ km}$ a = 3.4\text{ \frac{m}{s^2}}: $a= 3.4\text{ \frac{m}{s^2}}$ soroban, I would be interesting in hearing about your use of spacing and alignment!
July 6th, 2011, 11:17 PM   #3
Senior Member

Joined: Apr 2011
From: USA

Posts: 782
Thanks: 1

Re: Some Latex Commands

Quote:
 Originally Posted by MarkFL Also, when enclosing a "tall" expression within parentheses (and other bracketing symbols), it doesn't look good with: (\frac{3x^2}{2y^3}): $(\frac{3x^2}{2y^3})$ However, some sites will suggest: \left(\frac{3x^2}{2y^3}\right): $\left(\frac{3x^2}{2y^3}\right)$ But, I've found an alternative (I notice others use it as well) that I prefer: $$\frac{3x^2}{2y^3}$$: $$$\frac{3x^2}{2y^3}$$$ (Notice it is almost as tall as the preceding, but not as dark) However, I've noticed when the expression is quite long, this shortcut doesn't always work, so then I put in the "left" and "right" and it works, although the bracketing symbols sometimes appear too dark or heavy.
I was gonna say, I saw you do this and I tried it and it didn't work. What is "quite long"? I use a backslash-space to making spacings between things a lot, and a lone \ almost makes me think of a space, so knowing me, I'd get confused.

July 6th, 2011, 11:28 PM   #4
Senior Member

Joined: Jul 2010
From: St. Augustine, FL., U.S.A.'s oldest city

Posts: 12,211
Thanks: 521

Math Focus: Calculus/ODEs
Re: Some Latex Commands

Quote:
 Originally Posted by Erimess ... What is "quite long"?...
I usually run into it when evaluating definite integrals and let the latex stretch across the screen to the point where those with older CRT displays with 4:3 ratio truncate the text...about 61 characters of regular text in width.

I just always use the preview option to make sure everything looks right, and if it doesn't, then I scramble to make it right, whatever I have to do.

 July 6th, 2011, 11:44 PM #5 Senior Member   Joined: Apr 2011 From: USA Posts: 782 Thanks: 1 Re: Some Latex Commands Hmm, I don't think I've done any "tall" stuff (in my case, just fractions) that were that big, but it still didn't work. But I have trouble with \cdot sometimes too - I think especially when there's parenthesis or fractions involved. I forget cause I tend to avoid it. And yes, I preview everything. No way would I ever trust everything came out right. In fact, 95% of the time I manage to screw up at least one thing.
July 6th, 2011, 11:49 PM   #6
Senior Member

Joined: Jul 2010
From: St. Augustine, FL., U.S.A.'s oldest city

Posts: 12,211
Thanks: 521

Math Focus: Calculus/ODEs
Re: Some Latex Commands

Quote:
 Originally Posted by Erimess ...In fact, 95% of the time I manage to screw up at least one thing.
Me too!

I use the preview after just about every line so that I don't have a whole page of errors to correct at once!

 July 7th, 2011, 02:46 AM #7 Senior Member   Joined: Sep 2010 Posts: 101 Thanks: 0 Re: Some Latex Commands Now when there is LaTeX thread, how do you insert new lines in text or expression?
 July 8th, 2011, 10:03 PM #8 Newbie   Joined: Jul 2011 Posts: 17 Thanks: 0 Re: Some Latex Commands ^ I wonder that too. Also, how do you make it aligned? \begin{aligned} ... \end{aligned} didn't work for me earlier.
 July 10th, 2011, 01:46 PM #9 Global Moderator     Joined: Oct 2008 From: London, Ontario, Canada - The Forest City Posts: 7,935 Thanks: 1129 Math Focus: Elementary mathematics and beyond Re: Some Latex Commands \begin{align*} . . . &= . . . \\ . . . &= . . . \end{align*} \begin{align*} . . .=
July 10th, 2011, 02:01 PM   #10
Newbie

Joined: Jul 2011

Posts: 17
Thanks: 0

Re: Some Latex Commands

Quote:
 Originally Posted by greg1313 \begin{align*} . . . &= . . . \\ . . . &= . . . \end{align*} \begin{align*} . . .=
Yep, that works! Thank you!

 Tags commands, latex

### My Maths Commands

Click on a term to search for related topics.
 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post rayman Real Analysis 2 October 14th, 2013 02:30 AM mathkid New Users 12 November 15th, 2012 08:01 PM soroban LaTex Help 1 June 27th, 2012 01:29 PM sivela Calculus 1 April 26th, 2010 04:53 PM Infinity LaTex Help 15 January 13th, 2007 08:21 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top