jcoo092 / LaTeX-cP-systems

A LaTeX package to aid typesetting of cP systems, a Membrane Computing variant created by Nicolescu & collaborators
LaTeX Project Public License v1.3c
0 stars 0 forks source link

Cross-referencing labels for rules #8

Open jcoo092 opened 4 years ago

jcoo092 commented 4 years ago

The cpruleset environment works quite well for typesetting cP systems rules (or, at least, it seems to so far), but there currently isn't any built-in functionality in this package to cross-reference the rules. E.g., using label inside a cprule and then ref elsewhere right now just ends up returning the number of the section containing the rule. This should be improved so that automatic cross-referencing can occur, just as with tables, figures, etc.

At a minimum, the final implementation should work with the standard ref command, hyperref's autoref command, and cleveref's cref command.

jcoo092 commented 3 years ago

Commit https://github.com/jcoo092/LaTeX-cP-systems/commit/ad0e484b06d01bb8ce8becf371904a664f0ddc0d has introduced some very minimal functionality for this. Currently, it doesn't nothing to help with hyperref or cleveref (but see https://tex.stackexchange.com/a/610616/113430 for some hints on how that might be achieved with hyperref at least).

jcoo092 commented 3 years ago

The latest release, v0.22, now includes built-in hyperlinking, following Ulrike Fischer's example on TeX.StackExchange. I haven't actually checked its compatibility with a document which isn't using hyperref, however...