[NTG-context] issue with interaction

Pablo Rodriguez oinos at gmx.es
Mon Sep 24 16:42:49 CEST 2018


Hans,

I have the following sample (sorry, but I’m afraid I don’t know how to
write a lopp here):

    \setupinteraction[state=start]
    \setupcomment[location=inmargin]
    \showframe
    \starttext
    This is a sample comment.
    \startcomment
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Comment]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Help]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Insert]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Key]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Newparagraph]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Paragraph]
    Just a comment
    \stopcomment

    This is a sample comment.
    \startcomment[symbol=Note]
    Just a comment
    \stopcomment
    \stoptext

The /Rect entries are the following:

  /Rect [ 52.939237 702.3845 58.913537 708.3588 ]
  /Rect [ 9.183458 687.714 58.913537 696.3768 ]
  /Rect [ 35.19556 671.22738 58.913537 681.8377 ]
  /Rect [ 29.281004 659.0063 58.913537 667.2867 ]
  /Rect [ 38.44558 642.2687 58.913537 652.8671 ]
  /Rect [ -15.526249 627.83718 58.913537 638.579 ]
  /Rect [ 5.754209 613.4176 58.913537 624.15939 ]
  /Rect [ 34.538389 601.328 58.913537 609.6084 ]

I don’t know how the lower-left x coordinate is calculated, but I think
it should be the same for all annotation types. If location is in
margin, the lower-left x coordinate should be around 35 user units.

I have checked it with Acrobat Reader, evince, mupdf-gl, SumatraPDF and
PDF.js (within Firefox).

I think it makes sense to unify the lower-left x coordinate for this
kind of annotation when located in margin.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list