CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/refcount



refcount package for

References are not numbers, however they often store numerical data such as section or page numbers. ref or pageref cannot be used for counter assignments or calculations because they are not expandable, generate warnings, or can even be links. The package provides expandable macros to extract the data from references. Packages hyperref, nameref, titleref, and babel are supported.

Download the contents of this package in one zip archive (322.8k).

refcount – Counter operations with label references

Provides commands \setcounterref and \addtocounterref which use the section (or whatever) number from the reference as the value to put into the counter, as in:

Commands \setcounterpageref and \addtocounterpageref do the corresponding thing with the page reference of the label.

No .ins file is distributed; process the .dtx with plain to create one.

Bug trackerhttps://github.com/ho-tex/refcount/issues
Version3.6 2019-12-15
LicensesThe Project Public License 1.3
Copyright1998, 2000, 2006, 2008, 2010, 2011 Heiko Oberdiek
2016–2019 Oberdiek Package Support Group
MaintainerHeiko Oberdiek
TDS archiverefcount.tds.zip
Contained inTeX Live as refcount
MiKTeX as refcount
TopicsLabel and References
Guest Book Sitemap Contact Contact Author