diff options
author | Norbert Preining <norbert@preining.info> | 2022-10-02 03:04:14 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-10-02 03:04:14 +0000 |
commit | 097f244236b682cc77c6ecf25be4150091d8daf9 (patch) | |
tree | 26998e72d2b56a87033d9fb72923258fc93ebe53 /info/mathtrip/src/pascal_triangle.tex | |
parent | 4043e29dc8ac56047ac45f872a2ea1f3031b6b05 (diff) |
CTAN sync 202210020304
Diffstat (limited to 'info/mathtrip/src/pascal_triangle.tex')
-rw-r--r-- | info/mathtrip/src/pascal_triangle.tex | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/info/mathtrip/src/pascal_triangle.tex b/info/mathtrip/src/pascal_triangle.tex new file mode 100644 index 0000000000..8610cc6673 --- /dev/null +++ b/info/mathtrip/src/pascal_triangle.tex @@ -0,0 +1,41 @@ +%This command provides the number of the Pascal's triangle +%on the first column of the page 3 +% +%This command has one parameter: +% 1)The width of the text +\newcommand\TThreePascal[1]{% + \def\LineOfTriangle##1{\rule{0pt}{\TThreeInterlinePascal}\centerline{$##1$}} + \parbox[t]{#1}{% + \TThreePascalFontSize + %Line 1 + \LineOfTriangle{1} + %Line 2 + \LineOfTriangle{1\TThreePascalSep{}1} + %Line 3 + \LineOfTriangle{1\TThreePascalSep{}2\TThreePascalSep{}1} + %Line 4 + \LineOfTriangle{1\TThreePascalSep{}3\TThreePascalSep{}3\TThreePascalSep{}1} + %Line 5 + \LineOfTriangle{1\TThreePascalSep{}4\TThreePascalSep{}6\TThreePascalSep{}4% + \TThreePascalSep{}1} + %Line 6 + \LineOfTriangle{1\TThreePascalSep{}5\TThreePascalSep{}10\TThreePascalSep{}10% + \TThreePascalSep{}5\TThreePascalSep{}1} + %Line 7 + \LineOfTriangle{1\TThreePascalSep{}6\TThreePascalSep{}15\TThreePascalSep{}20% + \TThreePascalSep{}15\TThreePascalSep{}6\TThreePascalSep{}1} + %Line 8 + \LineOfTriangle{1\TThreePascalSep{}7\TThreePascalSep{}21\TThreePascalSep{}35% + \TThreePascalSep{}35\TThreePascalSep{}21\TThreePascalSep{}7\TThreePascalSep{}1} + %Line 9 + \LineOfTriangle{1\TThreePascalSep{}8\TThreePascalSep{}28\TThreePascalSep{}56\TThreePascalSep{}70% + \TThreePascalSep{}56\TThreePascalSep{}28\TThreePascalSep{}8\TThreePascalSep{}1} + %Line 10 + \LineOfTriangle{1\TThreePascalSep{}9\TThreePascalSep{}36\TThreePascalSep{}84\TThreePascalSep{}126% + \TThreePascalSep{}126\TThreePascalSep{}84\TThreePascalSep{}36\TThreePascalSep{}9\TThreePascalSep{}1} + %Line 11 + \LineOfTriangle{1\TThreePascalSep{}10\TThreePascalSep{}45\TThreePascalSep{}120\TThreePascalSep{}210% + \TThreePascalSep{}252\TThreePascalSep{}210\TThreePascalSep{}120\TThreePascalSep{}45% + \TThreePascalSep{}10\TThreePascalSep{}1} + }% +} |