# Combinations in TeX

Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last
• May 6th 2006, 10:55 PM
CaptainBlack
Combinations in TeX
We seem to spend a lot of effort typing things like $\displaystyle {52 \choose 5}$ in TeX.

If you examine the TeX I used for this "{52 \choose 5}", I think some of us
will save ourselves a lot of effort :cool:

RonL
• May 7th 2006, 08:40 AM
ThePerfectHacker
Quote:

Originally Posted by CaptainBlack
We seem to spend a lot of effort typing things like $\displaystyle {52 \choose 5}$ in TeX.

If you examine the TeX I used for this "{52 \choose 5}", I think some of us
will save ourselves a lot of effort :cool:

RonL

That is a good tip for the combinations problem.
Maybe, if you looked at my code you saw me using
Code:

\left(\begin{array}{c}n\\m\end{array}\right)
I asked my calculus teacher If I can give in a test answered in LaTeX. That would be fun.
• May 7th 2006, 10:50 AM
CaptainBlack
Quote:

Originally Posted by ThePerfectHacker
That is a good tip for the combinations problem.
Maybe, if you looked at my code you saw me using
Code:

\left(\begin{array}{c}n\\m\end{array}\right)
I asked my calculus teacher If I can give in a test answered in LaTeX. That would be fun.

I have been using the TeX quick reference card, where this comes from.
It can be cound on refcards.com

RonL
• May 7th 2006, 11:17 AM
earboth
Quote:

Originally Posted by CaptainBlack
I have been using the TeX quick reference card, where this comes from.
It can be cound on refcards.com

RonL

Hello,

Greetings

EB
• May 7th 2006, 12:26 PM
Jameson
I suggest that there be a sticky of common tex tags, such as the limit definition of a derivative made here to save time for all. I get sick of typing in that limit all the time. :mad:
• May 7th 2006, 01:28 PM
ThePerfectHacker
Quote:

Originally Posted by Jameson
I suggest that there be a sticky of common tex tags, such as the limit definition of a derivative made here to save time for all. I get sick of typing in that limit all the time. :mad:

I like the idea, I suggest CaptainBlack be its author, he seems to be the best expert in $\displaystyle \mathbb{T} \mathcal{E} \mathbb{X}$
• May 7th 2006, 08:21 PM
CaptainBlack
Quote:

Originally Posted by ThePerfectHacker
I like the idea, I suggest CaptainBlack be its author, he seems to be the best expert in $\displaystyle \mathbb{T} \mathcal{E} \mathbb{X}$

If you let me know what you want in the list I will oblige, the
difficult I will do at once; the impossible will take a little longer :cool:

RonL
• May 7th 2006, 08:36 PM
earboth
Quote:

Originally Posted by CaptainBlack
I have been using the TeX quick reference card, where this comes from.
It can be cound on refcards.com

RonL

Hello,

I've got a minor problem and as you are the best expert in TEX (as ThePerfectHacker stated) I'm sure you can help me:

I would like to write vectors with an arrow over several letters. I've attached an image to demonstrate how to do. This was made with OpenOffice where you have the command widevec{}, which doesn't work with TEX.

And the \buildrel macro doesn't work too:

$\displaystyle \buildrel\longrightarrow\over{A_a B_b}$

Greetings

EB
• May 7th 2006, 11:30 PM
CaptainBlack
Quote:

Originally Posted by earboth
Hello,

I've got a minor problem and as you are the best expert in TEX (as ThePerfectHacker stated) I'm sure you can help me:

I would like to write vectors with an arrow over several letters. I've attached an image to demonstrate how to do. This was made with OpenOffice where you have the command widevec{}, which doesn't work with TEX.

And the \buildrel macro doesn't work too:

$\displaystyle \buildrel\longrightarrow\over{A_a B_b}$

Greetings

EB

Your buildrel looks OK to me:

$\displaystyle \buildrel{\longrightarrow}\over{A_b B_c}$

Do you want an even longer arrow?

$\displaystyle \overrightarrow{A_a B_b C_c D_d}$ :cool:

Interestingly this last command is not on the quick reference sheet :eek:

RonL
• May 8th 2006, 07:34 AM
earboth
Quote:

Originally Posted by CaptainBlack
...

Do you want an even longer arrow?...
RonL

Hello

$\displaystyle \overrightarrow{T_h a^n k_s}$

Greetings

EB
• May 8th 2006, 07:54 AM
CaptainBlack
Quote:

Originally Posted by earboth
Hello

$\displaystyle \overrightarrow{T_h a^n k_s}$

Greetings

EB

$\displaystyle \underrightarrow{\overleftarrow{Y_ou'_r\ W^e{}_{ll}c_o{}^{me}}}$

RonL
• May 8th 2006, 09:39 AM
JakeD
Quote:

Originally Posted by Jameson
I suggest that there be a sticky of common tex tags, such as the limit definition of a derivative made here to save time for all. I get sick of typing in that limit all the time. :mad:

CaptainBlack asked for a list of tags to include. So as not to completely reinvent the wheel here, I suggest looking at this set of stickies from another math help site for ideas on that. It's a good start, but of course it doesn't have all your favorite tags. :)
• May 8th 2006, 02:26 PM
ThePerfectHacker
Here is something I discovered.

If you want to define a piecewise function say the absolute value function what you do is:
Code:

|x|=       \left\{                 \begin{array}{c}                   x \mbox{ if } x\geq 0\\                                                     -x \mbox{ if } x<0                      \end{array}       \right
If that is your whole code, then you can igonore the last part.
Code:

|x|=       \left\{                 \begin{array}{c}                 x \mbox{ if } x\geq 0\\                                                     -x \mbox{ if } x<0
The reason is because there is nothing following this. You cannot do this if there would be something following the code, but other here this trick works and saves me time.
----
$\displaystyle \left\{ \begin{array}{c} x\mbox{ if } x\geq 0\\ -x\mbox{ if } x<0$
• May 11th 2006, 03:13 AM
how can i put a horizontal line through text i want to strike out? the \not doesn't look very good ie:
$\displaystyle \int \frac{dv}{\not{dt}} \not{dt}$
• May 12th 2006, 09:05 AM
CaptainBlack
Quote:

$\displaystyle \int \frac{dv}{\not{dt}} \not{dt}$