Added convenience macros to add types
This commit is contained in:
@ -215,6 +215,8 @@ use an empty group (e.g. `\def\crfnmPageEnumDelim{}`).
|
||||
Adding support for new types consists in defining the related macros in your preamble.
|
||||
Here is a commented example that would add support for references to lines in ConTeXt
|
||||
if this feature were not already included in _crossrefenum_.
|
||||
We suppose that the labels are inserted in the document using the standard ConTeXt macros,
|
||||
i.e. `\someline` for line references and `\pagereference` for page references.
|
||||
|
||||
```{.tex}
|
||||
% Register the types. Take care about capitalization!
|
||||
@ -226,10 +228,8 @@ if this feature were not already included in _crossrefenum_.
|
||||
\def\crfnm@pageline{Pageline}
|
||||
|
||||
%% Add them to the lists of known types.
|
||||
\crfnm@newListFrom[\crfnm@simpleRefTypes][\crfnm@line] -> \crfnm@simpleRefTypes
|
||||
\crfnm@newListFrom[\crfnm@doubleRefTypes][\crfnm@pageline] -> \crfnm@doubleRefTypes
|
||||
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@line] -> \crfnm@supportedTypes
|
||||
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@pageline] -> \crfnm@supportedTypes
|
||||
\crfnm@declareType[simple][\crfnm@line]
|
||||
\crfnm@declareType[double][\crfnm@pageline]
|
||||
```
|
||||
|
||||
```{.tex}
|
||||
|
Reference in New Issue
Block a user