Debian Codegraph @

texmf-dist/doc/latex/longdivision/README.md

raw
1 longdivision v1.2.2
2 ========================
3 Author: Hood Chatham
4 Email: [email protected]
5 Date: 2023-10-21
6 Description:
7 License: All files have the Latex Project Public License.
8 Files:
9 longdivision.sty
10 longdivision_manual.tex
11 longdivision_manual.pdf
12 README.md
13
14
15 Does the long division algorithm and typesets the results. The dividend must
16 be a positive decimal number and the divisor must be a positive integer.
17 Correctly handles repeating decimals, putting a bar over the repeated part of
18 the decimal. Handles dividends up to 20 digits long gracefully (though the
19 typeset result will take up about a page) and dividends between 20 and 60
20 digits long slightly less gracefully.
21
22 Defines macros \longdivision and \intlongdivision. Each takes two arguments,
23 a dividend and divisor. \longdivision keeps dividing until the remainder is
24 zero, or it encounters a repeated remainder. \longdivision stops when the
25 dividend stops (though the dividend doesn't have to be an integer).
26
27 \intlongdivision behaves similarly to the \longdiv command defined in
28 longdiv.tex, though I think \intlongdivision looks better, and it can handle
29 much larger dividends and divisors (the dividend is only constrained by the
30 size of the page, and the divisor can be up to 8 digits long).
31
32 See the package manual for more information. To compile the manual, you need
33 the file pgfmanual-en-macros.tex from the tikz manual. I am not allowed to
34 include this file on the CTAN repositiory due to rules against file duplication,
35 but you can find it on github:
36 https://github.com/hoodmane/longdivision/blob/master/pgfmanual-en-macros.tex
37
38 Email me at [email protected] to submit bug reports, request new features, etc.
39 The current development copy is hosted at https://github.com/hoodmane/longdivision.
40
41
42 Changelog:
43 ==========
44 ## [1.2.1](2023-10-21)
45 ### Fixed:
46 - The decimal separator no longer goes missing when the "stage" is set to a low
47 enough number that digits after the decimal separator are not inspected.
48 - Added "brazilian" style (contributed by gh-user Felipe-Math)
49
50 ## [1.2.1](2021-07-17)
51 ### Fixed:
52 - The stage option works again.
53
54 ## [1.2.0] (2020-05-09)
55 ### Added:
56 - An option to control the decimal separator
57 - Options to specify "digit separator" and "digit group length"
58 - A "separators in work" option to put spaces rather than punctuation in the work
59 - Change the division sign in "german style" long division
60
61 ### Fixed:
62 - Math mode usage used to be inconsistent. Now if not used in math mode,
63 typesetting is consistently not in math mode, if used in math mode it is
64 consistently in math mode.
65 - Major improvements to typesetting engine should allow changes in the future to be less painful.
66 - A few deprecated expl3 commands have been replaced (thanks to a pull request from Phelype Oleinik).
67
68
69 ## [1.1.0] (2018-10-08)
70 ### Added:
71 - Multiple typesetting styles
72 - Multiple styles for indicating a repeating decimal
73 - Typesetting partial long division (as suggested by Cameron McLeman).
74
75 ### Fixed:
76 - If the "\longdivision" command is in math mode, the numbers are typeset in math mode too (reported by Yu-Tsiang Tai).
77 - The "\longdivision" command now can handle macros as arguments (as suggested by Mike Jenck).
78
79
80 ## [1.0.0] (2017-02-05)
81