Re: Getting link destination errors with index

Mark Summerfield <[email protected]> Wed, 27 Jun 2018 11:39:27 +0100
Newsgroups gmane.comp.type-setting.lout
Organization Qtrac Ltd.
Message-ID <20180627113927.18075339@suki>
On Wed, 27 Jun 2018 13:22:08 +0300
Valery Ushakov <[email protected]> wrote:
> On Wed, Jun 27, 2018 at 11:19:29 +0100, Mark Summerfield wrote:
> 
> > But when I use it twice, I get multiple errors:  
> 
> Can you provide a small self-contained example?

Unfortunately no! The reason is that if I use what the command returns
literally in the .lout file, there's no problem.

So this works fine:

@LP
Etiam laoreet volutpat varius.
{"classes"}@RawIndex{Classes}
{"classes!inheritance"}@RawSubIndex{Inheritance}
{"classes!inheritance!mixins"}@SubSubIndex{Mixins}
Phasellus vitae urna auctor, euismod ligula a, bibendum lacus. Vivamus
sed arcu id ex ultrices pellentesque. Nullam id eleifend nisl. Sed
{"classes"}@RawIndex{Classes}
{"classes!inheritance"}@RawSubIndex{Inheritance}
{"classes!inheritance!mixins"}@SubSubIndex{Mixins}
commodo nibh nec elit mattis, in auctor libero placerat.

But when I use my @X symbol, I get the errors:

@LP
Etiam laoreet volutpat varius.
@X{"lx Classes/Inheritance/Mixins"}
Phasellus vitae urna auctor, euismod ligula a, bibendum lacus. Vivamus
sed arcu id ex ultrices pellentesque. Nullam id eleifend nisl. Sed
@X{"lx Classes/Inheritance/Mixins"}
commodo nibh nec elit mattis, in auctor libero placerat.

Here's the @X definition:

import @BasicSetup 
def @X right XYZXYZWWWXYZ{@F{XYZXYZWWWXYZ @Pipe{}}} # Index entry

And here's the console output of the command
$ lx Classes/Inheritance/Mixins
{"classes"}@RawIndex{Classes}{"classes!inheritance"}@RawSubIndex{Inheritance}{"classes!inheritance!mixins"}@SubSubIndex{Mixins}

(Just in case I also tried the output with each part of the entry
newline-separated, but it didn't help.)

Best wishes,
-- 
Mark Summerfield, Qtrac Ltd.
    ComparePDF - easy to use fast PDF comparison tool
        http://www.qtrac.eu/comparepdf.html