Introducing LaTeX Math Typesetting
- Context: LaTeX
- Thread starter chroot
- Start date
-
- Tags
- Introducing Latex Typesetting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
766 replies · 754K views
Physics news on Phys.org
Bob3141592
- 236
- 2
Originally posted by Hurkyl
You know, it doesn't all have to be written on one line.
Perhaps not, but it's been a fun (and frustrating!) exercise to learn LaTex, and get it to do exactly what I want it to. If I make compromises before I learn how to do it, I'll never learn what it's capable of.
Bob3141592
- 236
- 2
Originally posted by master_coda
If you want choose notation, just use
[tex]\binom{n}{m}=\binom{n}{n-m}[/tex]
Thanks, Coda. That's much easier!
Bob3141592
- 236
- 2
Okay, back to experimenting/debugging tex:
Got it. Oh, happy day...er.. night.
Got it. Oh, happy day...er.. night.
Last edited:
master_coda
- 591
- 0
You do it like this:
[tex]3^n = \sum_{m=0}^n \left( \binom{n}{m} \cdot \sum_{p=0}^m \binom{m}{p} \right)[/tex]
[tex]3^n = \sum_{m=0}^n \left( \binom{n}{m} \cdot \sum_{p=0}^m \binom{m}{p} \right)[/tex]
Bob3141592
- 236
- 2
Originally posted by master_coda
You do it like this:
I see. The \left and \right are generic, and you ave to supply the character specific delimiter following.
Thanks again!
I do wish LaTex had error messages, giving hints aout why it's parser is bailing out, but I guess that's a bit much to ask for. Ah well, if it was easy, anybody could do it.
Last edited:
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
That sort of output IS generated by the latex program itself -- but getting that parsed into the PHP output would be a bear, basically.Originally posted by Bob3141592
I see. The \left and \right are generic, and you ave to supply the character specific delimiter following.
Thanks again!
I do wish LaTex had error messages, giving hints aout why it's parser is bailing out, but I guess that's a bit much to ask for. Ah well, if it was easy, anybody could do it.![]()
I also have to add the fact that LaTeX errors are usually pretty unhelpful anyway, so there doesn't seem to be much reason to provide it for the user.
- Warren
Bob3141592
- 236
- 2
I've seen &=& used, but I don't understand the difference it makes. Is there a simple explanation? What's the & do in general, if it has a general interpretation.
This stuff is great. Not easy, I must admit, but definitely worth it.
This stuff is great. Not easy, I must admit, but definitely worth it.
master_coda
- 591
- 0
Usually & acts as an alignment character. For example, in:
[tex] \begin{align*}<br /> D^{-\nu}e^{at}&=\frac{1}{\Gamma(\nu)}e^{at}\int_0^t x^{\nu-1}e^{ax}\;dx \\<br /> &=E_t(\nu,a)<br /> \end{align*}[/tex]
the & character specifies how the columns are supposed to be lined up. Note that \\ specifies the end of each line.
The & character is also used to separate columns in a matrix. If someone is using &=& to line up their equations instead of &=, they may be using matrices to align equations.
[tex] \begin{align*}<br /> D^{-\nu}e^{at}&=\frac{1}{\Gamma(\nu)}e^{at}\int_0^t x^{\nu-1}e^{ax}\;dx \\<br /> &=E_t(\nu,a)<br /> \end{align*}[/tex]
the & character specifies how the columns are supposed to be lined up. Note that \\ specifies the end of each line.
The & character is also used to separate columns in a matrix. If someone is using &=& to line up their equations instead of &=, they may be using matrices to align equations.
Tron3k
- 45
- 0
Just figuring this out...
[tex]y = a x^2 + b x + c[/tex]
[tex]x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a}[/tex]
[tex]y = a x^2 + b x + c[/tex]
[tex]x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a}[/tex]
Last edited:
Silverious
- 52
- 0
hmmmm
[tex]d = \frac{1}{2}a t^2[/tex]
[tex]\sum F = ma[/tex]
[tex]\lim_{x\rightarrow c} f(x) = L[/tex]
[tex]0 \leq |x - c| \leq \delta[/tex]
[tex]|f(x) - L| \leq \epsilon[/tex]
[tex]F_g = G \frac{m_1 m_2}{d^2}[/tex]
[tex]this = fun[/tex]
[tex]d = \frac{1}{2}a t^2[/tex]
[tex]\sum F = ma[/tex]
[tex]\lim_{x\rightarrow c} f(x) = L[/tex]
[tex]0 \leq |x - c| \leq \delta[/tex]
[tex]|f(x) - L| \leq \epsilon[/tex]
[tex]F_g = G \frac{m_1 m_2}{d^2}[/tex]
[tex]this = fun[/tex]
Allegro
- 11
- 0
Let's give it a try (using TexAide):
[tex]\frac{{\sqrt s }}{{s - a^2 }}[/tex]
[tex]\displaystyle{\int_2^4 {\left[ {8(t - 2)} \right]^{-0.5} dt = } \left[ {\frac{1}{{\sqrt 2 }}(t - 2)^{0.5} } \right]_2^4 = 1}[/tex]
With compliments to TeXaide.
[tex]\frac{{\sqrt s }}{{s - a^2 }}[/tex]
[tex]\displaystyle{\int_2^4 {\left[ {8(t - 2)} \right]^{-0.5} dt = } \left[ {\frac{1}{{\sqrt 2 }}(t - 2)^{0.5} } \right]_2^4 = 1}[/tex]
With compliments to TeXaide.
Last edited:
phoenixthoth
- 1,600
- 2
how do i go about installing such a thing on my discussion forum? any help much appreciated!
Allegro
- 11
- 0
TeXaide
Hello phoenixthoth,
#1.
Download TeXaide:
http://www.mathtype.com/en/products/TeXaide/
#2.
Type in an equation in TeXaide and copy it.
#3
Paste it in your message on the Physics Forum,then go to my previous message and click on quote,then you can see how it is done.
Delete all superfluous characters.
Best regards.
Hello phoenixthoth,
#1.
Download TeXaide:
http://www.mathtype.com/en/products/TeXaide/
#2.
Type in an equation in TeXaide and copy it.
#3
Paste it in your message on the Physics Forum,then go to my previous message and click on quote,then you can see how it is done.
Delete all superfluous characters.
Best regards.
Last edited:
phoenixthoth
- 1,600
- 2
Originally posted by Allegro
Hello phoenixthoth,
#1.
Download TeXaide:
http://www.mathtype.com/en/products/TeXaide/
#2.
Type in an equation in TeXaide and copy it.
Paste it in your message on the Physics Forum,between:
First type: [tex]\displaystyle{....}and finish with[/tex]
where ... is your equation.
Delete all superfluous characters.
#3.
Go to my previous message and click on quote,then you can see how it is done.
Best regards.
how do i go about installing such a thing on my discussion forum? any help much appreciated!
thanks for trying to help but that wasn't my question. let me try to be more careful.
0. i already know how to make equations appear on this forum.
1. i have my own discussion forum.
2. i want to install something that will enable me to do what i can do on this forum on that forum.
i tried mimetex (from http://www.forkosh.com/htdocs/mimetex.html), but I'm having trouble compiling their source files into a mimetex.cgi file. it would help trememdously to just have a copy of that cgi file in question so that i can put it on my server. when i tried compiling their source files, i got a bunch of errors that i suspect are related to the fact that I'm running windows or perhaps the compiler I'm using. I'm trying to get the anti-aliasing gif version to work by entering
cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi
but it gives lots of errors.
so if you know anything on how to install an equivalent gif generator that uses html, let me know. any help is appreciated!
master_coda
- 591
- 0
Originally posted by chroot
Oh, of course... hmmm, yeah. There's really no way around that.
- Warren
There really isn't any reason you would want superscripted text and tex in the same message anyway.
lethe
- 645
- 0
let's see if it works over here:
[tex]\int_M d\omega=\int_{\partial M}\omega[/tex]
[tex]\int_M d\omega=\int_{\partial M}\omega[/tex]
lethe
- 645
- 0
Originally posted by chroot
lethe, your link is apparently not valid. What is happening? As far as I know, [itex]\TeX[/itex] is working fine.
- Warren
this morning, it seemed like LaTeX wasn't working. i guess i linked to a post that i later deleted or something. i guess that is why the link i gave didn't work (although i don't think a broken anchor is usually enough to break a link, but whatever.)
anyway, try this link. look at matt grime's post near the bottom.
everywhere there should be a LaTeX image, intsead, you get "latex still being generated, please reload" messages. i was getting the same thing in my posts, which i later deleted in order to try to recify the problem.
at any rate, whatever the problem was, it seems to be fixed now, although you can still see the weird messages now.
Staff Emeritus
Science Advisor
Gold Member
- 14,922
- 28
More misformatting
I can't figure out what's going on with this one (though I haven't tried a lot)
Using this theorem, if [itex]x^3 - x^2 - 8x + 12[/itex] has a rational root, then it can be written in the form [itex]p/q[/itex] where [itex]p \in \{1, -1\}[/itex] and [itex]q \in \{1, -1, 2, -2, 3, -3, 4, -4, 6, -6, 12, -12\}[/itex]. Only 12 possibilities to try, so if one exists you can find it by exhaustion.
I can't figure out what's going on with this one (though I haven't tried a lot)
Using this theorem, if [itex]x^3 - x^2 - 8x + 12[/itex] has a rational root, then it can be written in the form [itex]p/q[/itex] where [itex]p \in \{1, -1\}[/itex] and [itex]q \in \{1, -1, 2, -2, 3, -3, 4, -4, 6, -6, 12, -12\}[/itex]. Only 12 possibilities to try, so if one exists you can find it by exhaustion.
Last edited by a moderator:
ilml
- 5
- 0
[tex]a_x[/tex]
jhirlo
- 40
- 0
I've downloaded that pdf file with code instuctions, but there's no "non equal" sign .
Do you know the code (it's for slashed equal sign)?
Do you know the code (it's for slashed equal sign)?
Similar threads
Mathematica How to type mathematical equations using LaTeX
- Greg Bernhardt
- · Replies 3 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 3
LaTeX How Do I Use LaTeX on This Site?
- Chris L T521
- · Replies 15 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 15
LaTeX Guide to Using LaTeX for Equations
- Redbelly98
- · Replies 4 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 4
Challenge Math Challenge - November 2018
- fresh_42
- · Replies 175 ·
- Math Proof Training and Practice
- Replies
- 175
Challenge Math Challenge - March 2019
- fresh_42
- · Replies 97 ·
- Math Proof Training and Practice
- Replies
- 97