diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/utils/synctex.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/utils/synctex.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Build/source/texk/web2c/luatexdir/utils/synctex.c b/Build/source/texk/web2c/luatexdir/utils/synctex.c index 45a1c060946..081e02ef597 100644 --- a/Build/source/texk/web2c/luatexdir/utils/synctex.c +++ b/Build/source/texk/web2c/luatexdir/utils/synctex.c @@ -673,8 +673,8 @@ void synctex_vlist(halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(this_box,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(this_box,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_record_vlist(this_box); } @@ -699,8 +699,8 @@ void synctex_tsilv(halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(this_box,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(this_box,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; synctex_record_tsilv(this_box); } @@ -724,8 +724,8 @@ void synctex_void_vlist(halfword p, halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(p,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(p,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; /* reset */ synctex_record_void_vlist(p); } @@ -750,8 +750,8 @@ void synctex_hlist(halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(this_box,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(this_box,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; /* reset */ synctex_record_hlist(this_box); } @@ -777,8 +777,8 @@ void synctex_tsilh(halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(this_box,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(this_box,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; /* reset */ synctex_record_tsilh(this_box); } @@ -807,8 +807,8 @@ void synctex_void_hlist(halfword p, halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(p,box_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(p,box_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; /* reset */ synctex_record_void_hlist(p); } @@ -857,8 +857,8 @@ void synctex_math(halfword p, halfword this_box) synctex_ctxt.tag = SYNCTEX_TAG_MODEL(p,medium_node_size); synctex_ctxt.line = SYNCTEX_LINE_MODEL(p,medium_node_size); pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL;/* no need to record once more */ synctex_math_recorder(p);/* always record synchronously */ } @@ -892,8 +892,8 @@ void synctex_horizontal_rule_or_glue(halfword p, halfword this_box) } synctex_ctxt.node = p; pos = synch_p_with_c(cur); - synctex_ctxt.curh = pos.h; - synctex_ctxt.curv = pos.v; + synctex_ctxt.curh = pos.h - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287); + synctex_ctxt.curv = cur_page_size.v - ((SYNCTEX_OFFSET_IS_PDF != 0) ? 0 : 4736287) - pos.v; synctex_ctxt.recorder = NULL; switch(SYNCTEX_TYPE(p)) { case rule_node: |