OK,
this did not work. I have
[[req-whatnot, Requirement {counter:req-counter}]]
[role="req"]
[backcolor="#0e0e0e"]
.Requirement {req-counter}: /req/what/not
and later
<<req-whatnot>>
I got a in-text title Requirement 22 ..., the later <<xref>> read
"Requirement 24", andf the next one was 25.
Apparently, either the simple evaluation also increments, and/or the
processing order messes it up. Perhaps I should not put the increment in
the xref, but how to have it evaluated without being in the output?
Am Mittwoch, 19. August 2015 15:58:00 UTC+2 schrieb Simon Thum:
>
> Great, I will try that ASAP!
>
> Am Mittwoch, 19. August 2015 11:59:37 UTC+2 schrieb Lex Trotman:
>>
>> On 19 August 2015 at 19:22, Simon Thum <[email protected]> wrote:
>> > Hi,
>> >
>> > In fact I do. But there is no {eval:countername} nor a
>> > {counter-without-increment:coutnername}.
>>
>> the countername is an attribute, so you can just use simple {}
>> attribute references to use the current value
>>
>> > I would prefer to have the counter
>> > in my xref anchor title, with that title explicit, so I can avoid a
>> > redundancy that is currently in the docuement because the xref title is
>> the
>> > actual requirement title.
>> >
>> > I would like to refer to that requirement by number only, without
>> managing
>> > the number myself..
>> >
>> > Cheers,
>> >
>> > Simon
>> >
>> > Am Mittwoch, 19. August 2015 00:41:00 UTC+2 schrieb Lex Trotman:
>> >>
>> >> Can you use http://asciidoc.org/userguide.html#X24 ?
>> >>
>> >> Cheers
>> >> Lex
>> >>
>> >> On 19 August 2015 at 00:19, Simon Thum <[email protected]> wrote:
>> >> > Hi,
>> >> >
>> >> > I am trying to build a custom index (Like tables, sections, etc ) to
>> >> > reference to a certain feature in my document (requirements) with a
>> >> > number.
>> >> >
>> >> > For that I would like to recite a serial number in the anchor text
>> like
>> >> >
>> >> > [[anchor, Requirement number 85 ]]
>> >> >
>> >> > Except I do not wish to spell out the 85, which would be duplicated
>> in
>> >> > the
>> >> > text.
>> >> >
>> >> > Any way to do this or to create another index?
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "asciidoc" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> send
>> >> > an
>> >> > email to [email protected].
>> >> > To post to this group, send email to [email protected].
>> >> > Visit this group at http://groups.google.com/group/asciidoc.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "asciidoc" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to [email protected].
>> > To post to this group, send email to [email protected].
>> > Visit this group at http://groups.google.com/group/asciidoc.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.