Home | Community | Message Board


The Hawk's EyePlease support our sponsors.

Community >> Science and Technology

Welcome to the Shroomery Message Board! Please login or register to post messages and view our members-only content. You'll gain access to additional forums, encrypted messages, file attachments, board customizations, and much more!

Pages: 1
OfflineYthanA
0011101111111110
Male User Gallery


Folding@home Statistics
Registered: 08/08/97
Posts: 10,858
Loc: Upstate NY
Last seen: 1 hour, 27 minutes
LaTeX support in forum posts
    #8377077 - 05/08/08 11:14 AM (3 months, 27 days ago)

I saw someone mention LaTeX support in this forum a while ago and I finally got around to adding it. Just use [tex] tags and enter your expression. I've never used LaTeX myself but here are some examples from http://www.linuxjournal.com/article/7870:

Code:
[tex]
\begin{displaymath}
\frac{a^2 - b^2}{a + b} = a - b
\end{displaymath}
[/tex]


Formula: 0

Code:
[tex]
\begin{displaymath}
\mathop{\mathrm{corr}}(X,Y)=
\frac{\displaystyle
\sum_{i=1}^n(x_i-\overline x)
(y_i-\overline y)}
{\displaystyle\biggl[
\sum_{i=1}^n(x_i-\overline x)^2
\sum_{i=1}^n(y_i-\overline y)^2
\biggr]^{1/2}}
\end{displaymath}
[/tex]


Formula: 1

Code:
[tex]
\begin{displaymath}
I(z) = \sin( \frac{\pi}{2} z^2 ) \sum_{n=0}^\infty
\frac{ (-1)^n \pi^{2n} }{1 \cdot 3
\cdots (4n + 1) } z^{4n + 1}
-\cos( \frac{\pi}{2} z^2 ) \sum_{n=0}^\infty
\frac{ (-1)^n \pi^{2n + 1} }{1 \cdot 3
\cdots (4n + 3) } z^{4n + 3}
\end{displaymath}
[/tex]


Formula: 2

Code:
[tex]
\psset{unit=0.5cm}
\begin{pspicture}(-4,-0.5)(4,8)
\psgrid[subgriddiv=0,griddots=5,
gridlabels=7pt](-4,-0.5)(4,8)
\psline[linewidth=1pt]{->}(-4,0)(+4,0)
\psline[linewidth=1pt]{->}(0,-0.5)(0,8)
\psplot[plotstyle=curve,
linewidth=0.5pt]{-4}{0.9}{10 x exp}
\rput[l](1,7.5){$10^x$}
\psplot[plotstyle=curve,linecolor=red,
linewidth=0.5pt]{-4}{3}{2 x exp}
\rput[l](2.2,7.5){\color{blue}$e^x$}
\psplot[plotstyle=curve,linecolor=blue,
linewidth=0.5pt]{-4}{2.05}{2.7183 x exp}
\rput[l](3.2,7.5){\color{red}$2^x$}
\rput(4,8.5){\color{white}change\normalcolor}
\rput(-4,-1){\color{white}bounding box\normalcolor}
\end{pspicture}
[/tex]


Formula: 3


--------------------
Visit the Growery!


Post Extras: Print Post  Remind Me!  Notify Moderator    
Invisibledeimya
Phase transiting
 User Gallery


Registered: 08/26/04
Posts: 379
Loc: ausländer.ch
Re: LaTeX support in forum posts [Re: Ythan]
    #8377146 - 05/08/08 11:37 AM (3 months, 27 days ago)

oooh, thanks Ythan, no more excuses for handwaving :awesome:

testing 1 2

Formula: 0

sweet !


--------------------
The future is a race between education and catastrophe.
-- H.G. Wells


Post Extras: Print Post  Remind Me!  Notify Moderator   Ignore User 
OfflineDieCommie
Ally


Registered: 12/11/03
Posts: 5,950
Loc: The Union
Last seen: 18 minutes, 33 seconds
Re: LaTeX support in forum posts [Re: deimya]
    #8377295 - 05/08/08 12:15 PM (3 months, 27 days ago)

Formula: 0

Cool. Hopefully the formulas wont scare people from the threads :grin:


edit - hmmm, my 'q' hat doesnt work.

\mathbf{\hat{q}}_i = \frac{1}{h_i} \sum_{j=1}^{3} \mathbf{\hat{x}}_j \frac{\partial x_j}{\partial q_i}


Post Extras: Print Post  Remind Me!  Notify Moderator   Ignore User 
OfflineYthanA
0011101111111110
Male User Gallery


Folding@home Statistics
Registered: 08/08/97
Posts: 10,858
Loc: Upstate NY
Last seen: 1 hour, 27 minutes
Re: LaTeX support in forum posts [Re: DieCommie]
    #8377810 - 05/08/08 02:12 PM (3 months, 27 days ago)

Hmmm... that could be a little tricky to track down... I'm guessing it's some sort of a font issue but I'm not sure. Just to confirm does this generated .tex file look correct?

Code:
    \documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pst-plot}
\usepackage{color}
\pagestyle{empty}
\begin{document}
\mathbf{\hat{q}}_i = \frac{1}{h_i} \sum_{j=1}^{3} \mathbf{\hat{x}}_j \frac{\partial x_j}{\partial q_i}
\end{document}



--------------------
Visit the Growery!


Post Extras: Print Post  Remind Me!  Notify Moderator    
OfflineYthanA
0011101111111110
Male User Gallery


Folding@home Statistics
Registered: 08/08/97
Posts: 10,858
Loc: Upstate NY
Last seen: 1 hour, 27 minutes
Re: LaTeX support in forum posts [Re: Ythan]
    #8377862 - 05/08/08 02:27 PM (3 months, 27 days ago)

Nevermind I figured it out, \hat is only supported in math mode, once you wrap the math in $ signs it works properly:

Formula: 0

Should the $ signs be inserted by default? I assume that would interfere with some other functionality, does it matter?


--------------------
Visit the Growery!


Post Extras: Print Post  Remind Me!  Notify Moderator    
OfflineDieCommie
Ally


Registered: 12/11/03
Posts: 5,950
Loc: The Union
Last seen: 18 minutes, 33 seconds
Re: LaTeX support in forum posts [Re: Ythan]
    #8378292 - 05/08/08 04:34 PM (3 months, 27 days ago)

When I type a LaTeX report, I use $ signs to put the math 'in line', meaning embedded in the text. I use \[ and \] to put the math on its own separate line.

Since the only purpose of LaTeX here is to display math and not text, I see no reason why using $ signs would reduce functionality.


--------------------
Behold yon miserable creature. That Point is a Being like ourselves, but confined to the non-dimensional Gulf. He is himself his own World, his own Universe; of any other than himself he can form no conception; he knows not Length, nor Breadth, nor Height, for he has had no experience of them; he has no cognizance even of the number Two; nor has he a thought of Plurality; for he is himself his One and All, being really Nothing. Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy.


Post Extras: Print Post  Remind Me!  Notify Moderator   Ignore User 
OfflineSeussA
Error: divide byzero


Folding@home Statistics
Registered: 04/27/01
Posts: 15,467
Loc: Caribbean
Last seen: 27 minutes, 30 seconds
Re: LaTeX support in forum posts [Re: Ythan]
    #8378344 - 05/08/08 04:47 PM (3 months, 27 days ago)

Very cool!


--------------------
Just another spore in the wind.


Post Extras: Print Post  Remind Me!  Notify Moderator    
InvisibleJrsxt
OrganicMycologist


Registered: 05/14/07
Posts: 711
Re: LaTeX support in forum posts [Re: Seuss]
    #8388495 - 05/11/08 09:36 AM (3 months, 24 days ago)

Formula: 0

Nice


--------------------
SUPPLIES


Post Extras: Print Post  Remind Me!  Notify Moderator   Ignore User 
Invisiblemaggotz
Male


Folding@home Statistics
Registered: 06/24/06
Posts: 5,568
Re: LaTeX support in forum posts [Re: Ythan]
    #8394557 - 05/12/08 09:29 PM (3 months, 22 days ago)

sweet.


Post Extras: Print Post  Remind Me!  Notify Moderator   Ignore User 
OfflineAnnomM
※※※※※※
 User Gallery


Folding@home Statistics
Registered: 12/22/02
Posts: 5,261
Loc: sdnalrehteN ehT
Last seen: 9 hours, 42 minutes
Re: LaTeX support in forum posts [Re: Ythan]
    #8395689 - 05/13/08 07:54 AM (3 months, 22 days ago)

Thank you!!!!


Post Extras: Print Post  Remind Me!  Notify Moderator    
Jump to top. Pages: 1

Community >> Science and Technology

Similar ThreadsPosterViewsRepliesLast post
* LaTeX Linux
TheCow
259 9 04/23/08 10:54 PM
by TheCow
* Isn't anyone else interested in SCIENCE or TECHNOLOGY? Just call this the computer forum..
freddurganS
846 16 02/09/05 12:01 AM
by Vvellum
* so, i just called at&t dsl tech support
automanM
246 9 12/21/07 01:50 PM
by badchad
* My 100,0000,0000,0000th post
Baby_Hitler
181 8 12/12/05 05:50 PM
by Baby_Hitler
* Viewing the Forums in "Flat Mode"
FirstAvailable
155 3 04/19/07 03:04 PM
by Ythan
* NTFS-3G - Full NTFS read / write support for Linux
automanM
106 1 07/15/06 01:17 PM
by supercollider
* Posting from XO-1
GoodbyeOrbS
95 3 03/08/08 03:01 PM
by Fungi_x
* How is a forum like this created?
( 1 2 all )
sporecaster
363 23 06/20/06 08:23 PM
by Colonel Kurtz Ph.D

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / UBBCode is enabled
Moderator:  Lana, Diploid, automan 
396 topic views. 1 registered and 2 anonymous users are browsing this forum.
[ Toggle Favorite | Print Topic ]

del.icio.us del.icio.us Digg digg Furl Furl MyWeb MyWeb Reddit reddit StumbleUpon StumbleUpon
Search this thread:
MycoLuvPlease support our sponsors.

Copyright 1997-2008 Mind Media. Some rights reserved.

Generated in 0.143 seconds spending 0.04 seconds on 16 queries.