summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/T3Def.tex
blob: f60127f0271589a944d467714250fc1c7a45cf3c (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
%Basically the page 5 is divided in 3 horizontal
%zones and 3 columns.
%
%The first column goes over all the zone, the second is splitted
%over 2 zones and the third column is splitted over 3 zones.

%Fix the dimentions of the 3 columns of this page
\deflength{\ColOne}{\TThreeColOne}
\deflength{\ColTwo}{\TThreeColTwo}
\deflength{\ColThree}{\TThreeColThree}
\deflength{\ColFour}{\TThreeColFour}
\deflength{\ColFive}{\TableWidth - \ColOne - \ColTwo -\ColThree -\ColFour -8\tabcolsep}

\input{const.tex} %The command produced is \TThreeConstants
\input{power2.tex} %The command produced is \TThreePowerTwo
\input{seq_nb.tex} %The command produced is \TThreeSeqNb
\input{first_prime.tex} %The command produced is \TThreeFirstPrimes
\input{misc.tex} %The command produced is \TThreeGeneral
\input{prob.tex} %The command produced is \TThreeProb
\input{prob2.tex} %The command produced is \TThreeProbTwo
\input{pascal_triangle.tex} %The command produced is \TThreePascal

%This command is to create Intertitle
%The command has two parameters:
%   1) Anything which expand to someting to avoid to put spacing
%      command before the title. This parameter is optionnal.
%   2) The text of the title
\newcommand\TThreeTitle[2][\DoNothing]{%
    \ifdefempty{#1}{\AdjustSpace{\TThreeInterTitle}}{}%
    \noindent \IntertitleShape{#2}%
    \par
}

%This macro is the separator used in the line of Pascal's triangle.
%Between xelatex and lualatex, the management of space
%is not identical and the separator should be changed.
\newcommand\TThreePascalSep{%
    \def\sep{~}%
    \ifluatex
        \def\sep{\,}%
    \fi
    \sep
} 

%This command defines a blank line for the tabular
%used as the base of the page 10.
\newcommand\TThreeEmptyLine{&&&&\\}