blob: 51072ee8ab84c49238be532c39c06d15ee558161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
\begingroup
\input{T3Def.tex}
\begin{NiceTabular}{|wl{\ColOne}|wl{\ColTwo}|wl{\ColThree}|wl{\ColFour}|wl{\ColFive}|}\hline
%Line 1: Global title
\Block[c]{1-5}{\titleTable}&&&&\\\hline
%Line 2: few mathematical constant
\Block[c]{1-5}{%
\deflength{\MathContentSize}{\ColOne+\ColTwo+\ColThree+\ColFour+\ColFive-8\tabcolsep}%
\TThreeConstants{\MathContentSize}} & & & & \\\hline
%Line 3: Title of the five columns
\Block[c]{1-1}{$i$} &
\Block[c]{1-1}{$2^i$} &
\Block[c]{1-1}{$p_i$} &
\Block[c]{1-1}{General} &
\Block[c]{1-1}{Probability cont.} \\\hline
%Line 4: The list of numbers (i, power 2, prime), the general formulae,
%and first part prob.
\Block[c]{\value{TThreeNumbersPart}-1}{%
\deflength{\MathContentSize}{\ColOne-2\tabcolsep}%
\TThreeSeqNb{\MathContentSize}}&
\Block[c]{\value{TThreeNumbersPart}-1}{%
\deflength{\MathContentSize}{\ColTwo-2\tabcolsep}%
\TThreePowerTwo{\MathContentSize}} &
\Block[c]{\value{TThreeNumbersPart}-1}{%
\deflength{\MathContentSize}{\ColThree-1\tabcolsep}%
\TThreeFirstPrimes{\MathContentSize}} &
\Block[c]{\value{TThreeGeneralPart}-1}{%
\deflength{\MathContentSize}{\ColFour-2\tabcolsep}%
\TThreeGeneral{\MathContentSize}} &
\Block[c]{\value{TThreeProbBPart}-1}{%
\deflength{\MathContentSize}{\ColFive-1\tabcolsep}%
\vspace{\TThreeMoveProbA}%
\TThreeProb{\MathContentSize}}\\
\BiggestNbLines{\value{TThreeNumbersPart}}
{\value{TThreeGeneralPart}}
{\value{TThreeProbBPart}}
\AddBlankLines{\value{NbBlankLines}-2}{\TThreeEmptyLine}\\\cline{1-4}
%Line 5 the intermediary title
\Block[c]{1-3}{Pascal's Triangle} &&&\Block[c]{1-1}{Probability}&\\\cline{1-4}
%Line 6 the triangle of pascal and some text on probability.
\Block[c]{\value{TThreePascalPart}-3}{%
\deflength{\MathContentSize}{\ColOne+\ColTwo+\ColThree-2\tabcolsep}%
\TThreePascal{\MathContentSize}}& & &
\Block[c]{\value{TThreeProbAPart}-1}{%
\vspace*{\TThreeMoveProbB}%
\deflength{\MathContentSize}{\ColFour-2\tabcolsep}%
\TThreeProbTwo{\MathContentSize}} & \\
\BiggestNbLines{\value{TThreePascalPart}}
{\value{TThreeProbAPart}}
{0}
\AddBlankLines{\value{NbBlankLines}-2}{\TThreeEmptyLine}\\\hline
\end{NiceTabular}
\endgroup
|