I am not sure I completely understand your question. You get the doubling because you include both the string and the textString. The former is the contents value of the note or highight, while the latter is the text behind the highlight. In Skim we set the string to the textString. That’s why you se the doubling.
As for 3, highlights added by other apps will not be part of the template, as Skim doesn’t see them. So I don’t understand why you would ever get them. Or did you convert them? As I don’t understand what you mean by 3, I am not sure what to do. But perhaps you can add some condition tags for the type of the note around a part of your template. Christiaan > On 29 Nov 2023, at 01:32, Derek Van Ittersum <derek.vanitter...@gmail.com> > wrote: > > Hello, > > I am trying to create a template that will output: > > 1. highlighted text > 2. text notes > 3. notes made on highlights (e.g., in other PDF apps, like the one on my Boox > device, I select the highlight then click "add note" to it) > > I am getting all three of these bits of information with the following > template: > > <$notes.@arraySortedByPageIndexAndBounds> > <$textString?> > <$textString/> (p. > <$page.label?><$page.label/><?$page.label?><$pageIndex.numberByAddingOne/></$page.label?>) > > </$textString?> > <$string?> > <$string/> > > </$string?> > </$notes.@arraySortedByPageIndexAndBounds> > > However--I am getting any highlight without a note on it twice. Is there any > way to amend my template so that I get the 3 bits of information without > repetition? I have tried many different template value keys (e.g., text, > string, contents, textString) but any alteration I have tried to the above > ends up leaving out one of the 3 bits of information. > > Thanks for any help or explanation, > > Derek _______________________________________________ Skim-app-users mailing list Skim-app-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-users