Register to reply 
Introducing LaTeX Math Typesetting 
Share this thread: 
#19
Nov1903, 02:33 PM

P: 419

Lets have a go....
[tex]2\pi\sqrt{l/g}[/tex] [tex]\gamma \equiv \frac{1}{\sqrt{1  v^2/c^2}}[/tex] edit: After three attempts I got it to work!! 


#20
Nov2003, 11:47 AM

Emeritus
Sci Advisor
PF Gold
P: 10,427

Displaying vectors can be tricky.
The default \vec LaTeX command produces a little arrow over the top of vectors, e.g. [tex]\lambda_j = \vec{\lambda} \cdot \vec{e}_j[/tex] If you'd prefer to make your vectors boldface, just redefine the \vec command. See the source for this image to see how the command is redefined. [tex] \renewcommand{\vec}[1]{\mbox{\boldmath $ #1 $}} \lambda_j = \vec{\lambda} \cdot \vec{e}_j[/tex]  Warren 


#21
Nov2003, 10:29 PM

P: 657

does this always generate display mode, or can we make it do inline mode as well?



#22
Nov2003, 10:30 PM

Emeritus
Sci Advisor
PF Gold
P: 10,427

 Warren 


#23
Nov2003, 10:47 PM

P: 657




#24
Nov2003, 10:52 PM

Emeritus
Sci Advisor
PF Gold
P: 10,427

 Warren 


#25
Nov2003, 10:56 PM

P: 837

Display math:
[tex]\sum_i x^i[/tex] (inline) math, [tex]\mbox{$\sum_i x^i$}[/tex], hacked 


#26
Nov2003, 10:57 PM

P: 837




#27
Nov2003, 10:58 PM

Emeritus
Sci Advisor
PF Gold
P: 10,427

Ambi,
Cool, I tried a few things and couldn't find anything that displayed differently! Using \mbox is a fine way to do it.  Warren 


#28
Nov2003, 10:59 PM

Emeritus
Sci Advisor
PF Gold
P: 10,427

If it becomes a serious wishlist item for a lot of people, I can consider adding some attributes like mode=displaymath or mode=inline to the [ tex ] tag. Otherwise, \mbox is the easiest way to accomplish it.
 Warren 


#29
Nov2003, 11:01 PM

P: 657




#30
Nov2003, 11:02 PM

Emeritus
Sci Advisor
PF Gold
P: 10,427

[tex]y = m x + b[/tex] [tex]\mbox{ $ y = m x + b $ }[/tex]  Warren 


#31
Nov2003, 11:04 PM

P: 657




#32
Nov2003, 11:05 PM

P: 657




#33
Nov2003, 11:06 PM

P: 837




#34
Nov2003, 11:12 PM

P: 837

Yes, we have amsmath; I only recently started using it, so I keep forgetting about it...
However, if you're proposing \text as a replacement for \mbox in this instance ... [tex]\mbox{$\sum_i x^i$}[/tex] [tex]\text{$\sum_i x^i$}[/tex] 


Register to reply 
Related Discussions  
How can I make math (by latex) available in my post?  Forum Feedback & Announcements  5  
Typesetting Problems  General Math  2  
Math Typesetting  General Math  10  
A math book on introducing proofs(?)  General Math  29  
Notation for recursion  better typesetting  General Math  0 