My Math Forum  

Go Back   My Math Forum > Welcome > New Users

New Users Post up here and introduce yourself!


Thanks Tree3Thanks
Reply
 
LinkBack Thread Tools Display Modes
July 6th, 2011, 01:07 PM   #1
Math Team
 
Joined: Dec 2006
From: Lexington, MA

Posts: 3,267
Thanks: 406

Some Latex Commands

In case the Latex tutorial doesn't have a list of commands,
here are some of my favorites.


Thanks from Rexan and Yash Malik
soroban is offline  
 
July 6th, 2011, 01:24 PM   #2
Senior Member
 
MarkFL's Avatar
 
Joined: Jul 2010
From: St. Augustine, FL., U.S.A.'s oldest city

Posts: 12,155
Thanks: 461

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:



I prefer the output on the left!



These look the same.

Another one I use is \therefore

I prefer exponents to be smaller using the \tiny{x} and \small{x} commands:

\sin^{\tiny{-1}}(x):

\sin^{\small{-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}):

However, some sites will suggest:

\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}\): (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}:

a = 3.4\text{ \frac{m}{s^2}}:

soroban, I would be interesting in hearing about your use of spacing and alignment!
MarkFL is offline  
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}):

However, some sites will suggest:

\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}\): (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.
Erimess is offline  
July 6th, 2011, 11:28 PM   #4
Senior Member
 
MarkFL's Avatar
 
Joined: Jul 2010
From: St. Augustine, FL., U.S.A.'s oldest city

Posts: 12,155
Thanks: 461

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.
Thanks from kye0229
MarkFL is offline  
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.
Erimess is offline  
July 6th, 2011, 11:49 PM   #6
Senior Member
 
MarkFL's Avatar
 
Joined: Jul 2010
From: St. Augustine, FL., U.S.A.'s oldest city

Posts: 12,155
Thanks: 461

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!
MarkFL is offline  
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?
filipd is offline  
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.
Stupid_man is offline  
July 10th, 2011, 01:46 PM   #9
Global Moderator
 
greg1313's Avatar
 
Joined: Oct 2008
From: London, Ontario, Canada - The Forest City

Posts: 7,434
Thanks: 870

Math Focus: Elementary mathematics and beyond
Re: Some Latex Commands

\begin{align*} . . . &= . . . \\ . . . &= . . . \end{align*}

greg1313 is offline  
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*}

Yep, that works! Thank you!
Stupid_man is offline  
Reply

  My Math Forum > Welcome > New Users

Tags
commands, latex



Search tags for this page
Click on a term to search for related topics.
Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
show that [latex]\mu[/latex] is a measure rayman Real Analysis 2 October 14th, 2013 02:30 AM
latex mathkid New Users 12 November 15th, 2012 09:01 PM
Some unusual LaTeX commands soroban LaTex Help 1 June 27th, 2012 01:29 PM
find [latex]/frac{dy}{dx}[/latex] sivela Calculus 1 April 26th, 2010 04:53 PM
Latex? Infinity LaTex Help 15 January 13th, 2007 09:21 PM





Copyright © 2017 My Math Forum. All rights reserved.