Re: counter an Usage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: counter an Usage

mojavelinux
Administrator
Hendrik,

First, I would advice you to upgrade to the latest stable version, which is 2.0.10. There are no more fixes to the 1.5.x line.

Next, {index:usage} is not a valid attribute reference.

Could you describe what you are trying to accomplish? What is the point of {index:usage}? What do you expect to happen?

Best,

-Dan

On Thu, Jul 11, 2019 at 6:43 AM Hendrik Timmermann [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello, I am Using ASCIIDOCTOR 1.5.6 and  the "usage" to suppress the output is not working

any help or hint?

[caption=""]
.Parts{counter2:index:0}
|===
|Part Id |Description

|PX-{counter:index}
|Description of PX-{index} {index:usage}

|PX-{counter:index}
|Description of PX-{index}
|===

produces

Parts
Part Id Description
PX-1        Description of PX-1 {index:usage}
PX-2        Description of PX-2




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/counter-an-Usage-tp6989.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: counter an Usage

Hendrik Timmermann
Hello Dan,

yes, we are working on the update to 2.x

and the {counter:usage} is in fact not correct. I made a mistake on reading

https://dzone.com/articles/awesome-asciidoctor-use-counters-in-markup

Thank you for fast reply.

Hendrik