Closed Yevgnen closed 7 years ago
This needs definitely code adjustments. Especially how interleave--sort-notes
is implemented. The question is where should those headings be placed? At the beginning, at the end? Should all headings without interleave_page_note
be sorted the same way or should this be specified for each heading individually?
Currently I think, sorting all headings that aren't page notes to the end is a good approach. But this needs some more thinking. Thank you for reporting this.
Regards, Sebastian
UPDATE:
The actual problem was that we gave the value of the interleave_page_note
property to string-to-number
. But this property can be nil, so it failed.
Headlines without page note property are sorted above those with this property (We use -1 for the lack of the property. I think this is the most sensible approach because this won't collide ever with the page note property. PDF pages won't be negative, hopefully :))
Since I use
org-ref
to handle my references, sometimes it may necessary to insert bibliography into notes. I use a individual heading to keep these thing but it seems thatinterleave
does not allow any other headings which doesn't have property:interleave_page_note
. Thus this alerts an error when quitting in docview asOne workaround is to manually add a
:interleave_page_note
for any other headings for a suitable value(in the reference case, a large one). What would the best workflow to do this ? Thanks !