CTAN update: suanpan-l3
1.Renamed the bid command to bead. 2.Added range syntax support for the \rods command, supporting both start-end and start-end-step forms. 3.Added an optional counting point parameter for the \rods command. 4.Added the numrods option to set the maximum number of rods, allowing flexible control over the size of the abacus. 5.Implemented static component caching to reduce redundant drawing. 6.Improved the error reporting mechanism. 7.Revised and enhanced the documentation.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/suanpan-l3 More information is at https://ctan.org/pkg/suanpan-l3
Thanks for the upload. For the CTAN Team Manfred Lotz CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .
suanpan-l3 – Traditional Chinese 7-bids suanpan (abacus) package based on l3draw
This traditional Chinese 7-bids abacus drawing package utilizes l3draw and is developed with expl3. It can effectively manage both upper and lower bids, while also considering bottom bid, top bid, and hanging bid.
The package offers a unique environment for drawing abacuses, denoted as suanpan. Within this environment, 7 specialized macros are available for the creation of abacuses. The \rod macro is used to lay out a single rod, while the \rod* macro draws a counting point on this rod’s beam. The \rods macro is capable of laying out a set of rods. The \bid macro colors the specified bid. The \bids macro colors all inner bids that are near the beam, while the \bids* macro colors all outer bids that are far from the beam. Lastly, the \lrframe macro is used to lay out the left and right frames of an abacus.
At the same time, the package offers customization options for abacus, including line width, draw color, fill color, bid space, rod space, etc. These can be configured through package options, suanpan environment options, or the \suanpanset macro.
| Paket | suanpan-l3 |
| Version | 2.0.0 2026-08-04 |
| Copyright | 2020–2026 Nan Geng |
| Betreuer | Nan Geng |