Is it possible to use @Pipe in a def?
Mark Summerfield <[email protected]> Tue, 26 Jun 2018 08:40:52 +0100
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Organization | Qtrac Ltd. |
| Message-ID | <20180626084052.3a64b038@suki> |
Hi,
In the user manual it has this example:
@ID lines @Break "sort" @Pipe {
Gaskell, Elizabeth
Lawrence, D. H.
Austen, Jane
Dickens, Charles
}
This works fine for me on Linux.
However, when I try to make it into a symbol:
import @BasicSetup
def @SortedLines right x{
lines @Break "sort" @Pipe{x}
}
And then use it:
@ID @SortedLines{
Gaskell, Elizabeth
Lawrence, D. H.
Austen, Jane
Dickens, Charles
}
It just prints the original lines unsorted.
Is it possible to make such a symbol? Or is there a workaround?
--
Mark Summerfield, Qtrac Ltd.
ComparePDF - easy to use fast PDF comparison tool
http://www.qtrac.eu/comparepdf.html