summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/T3Def.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/mathtrip/src/T3Def.tex')
-rw-r--r--info/mathtrip/src/T3Def.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/info/mathtrip/src/T3Def.tex b/info/mathtrip/src/T3Def.tex
new file mode 100644
index 0000000000..f60127f027
--- /dev/null
+++ b/info/mathtrip/src/T3Def.tex
@@ -0,0 +1,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{&&&&\\}
+