# Combinations in TeX

Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last
• May 6th 2006, 11:55 PM
CaptainBlack
Combinations in TeX
We seem to spend a lot of effort typing things like ${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, 09:40 AM
ThePerfectHacker
Quote:

Originally Posted by CaptainBlack
We seem to spend a lot of effort typing things like ${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, 11: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, 12:17 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,

Greetings

EB
• May 7th 2006, 01: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, 02: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 $\mathbb{T} \mathcal{E} \mathbb{X}$
• May 7th 2006, 09: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 $\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, 09: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:

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

Greetings

EB
• May 8th 2006, 12:30 AM
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:

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

Greetings

EB

Your buildrel looks OK to me:

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

Do you want an even longer arrow?

$
\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, 08:34 AM
earboth
Quote:

Originally Posted by CaptainBlack
...

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

Hello

$
\overrightarrow{T_h a^n k_s}
$

Greetings

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

Originally Posted by earboth
Hello

$
\overrightarrow{T_h a^n k_s}
$

Greetings

EB

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

RonL
• May 8th 2006, 10: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, 03: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.
----
$\left\{ \begin{array}{c} x\mbox{ if } x\geq 0\\ -x\mbox{ if } x<0$
• May 11th 2006, 04:13 AM
how can i put a horizontal line through text i want to strike out? the \not doesn't look very good ie:
$\int \frac{dv}{\not{dt}} \not{dt}$
• May 12th 2006, 10:05 AM
CaptainBlack
Quote:

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