blob: 6ff5a2716475dcff83a7a9db662644dc487a0e25 (
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
56
57
58
59
60
61
|
____________________________________
calcfrac
v0.2
28/10/2023
TeX & LaTeX package
____________________________________
Author : TeXpérimental
Email : texperimental@mailo.fr
Licence : Released under the LaTeX Project Public License v1.3c or
later, see http://www.latex-project.org/lppl.txt
Status : maintained
************************ LISEZ-MOI FRANÇAIS ************************
Ce package a des intentions pédagogiques. Les 7 vidéos montrant la
totalité de son écriture à partir de rien sont disponibles sur
youtube à partir de l'épisode 24 :
https://youtu.be/6lF4P6B3msw
C'est pourquoi il est livré sans aucune documentation autre que
la brève description ci-dessous.
Ce package met à disposition la macro \calcfrac qui admet comme
argument obligatoire une expression numérique contenant des
fractions. Par exemple
\calcfrac{1/2-2/3+3/4-2}
\calcfrac{2/(1/2-1/3)-2/3}
\calcfrac{1-(2-(3-(4-2/3)))/5}
Elle renvoie 3 arguments qui sont le signe, le numérateur et
le dénominateur du résultat.
Ces 3 arguments sont passés à une macro publique \cfdisp que
l'utilisateur peut programmer à sa guise (une version générique
qui devrait convenir au plus grand nombre est fournie)
************************** README ENGLISH **************************
This package is intended for educational purposes. The 7 videos
showing its writing from scratch are available on youtube from
episode 24:
https://youtu.be/6lF4P6B3msw
This is why it is delivered without any documentation other than
the brief description below.
This package provides the \calcfrac macro, which accepts one
mandatory argument being a numerical expression containing
fractions. For example
\calcfrac{1/2-2/3+3/4-2}
\calcfrac{2/(1/2-1/3)-2/3}
\calcfrac{1-(2-(3-(4-2/3)))/5}
It returns 3 arguments which are the sign, the numerator
and the denominator of the result.
These 3 arguments are passed to a public macro \cfdisp
which the users can program as they wish (a generic version
which should be suitable for most users is provided)
|