1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
r23716 | karl | 2011-08-26 23:29:30 +0000 (Fri, 26 Aug 2011) | 1 line
branch2011: import synctex coordinate fix from trunk r23644
Index: Build/source/texk/web2c/synctexdir/synctex-luatex.h
===================================================================
--- Build/source/texk/web2c/synctexdir/synctex-luatex.h (revision 23715)
+++ Build/source/texk/web2c/synctexdir/synctex-luatex.h (revision 23716)
@@ -1,6 +1,6 @@
/* synctex-luatex.h
- Copyright (c) 2010 Taco Hoekwater <taco@luatex.org>
+ Copyright (c) 2010, 2011 Taco Hoekwater <taco@luatex.org>
This file is part of LuaTeX.
@@ -50,9 +50,12 @@
#define SYNCTEX_HEIGHT(NODE) height(NODE)
#define SYNCTEX_VALUE int_par(synctex_code)
-#define SYNCTEX_CURV (dimen_par(page_height_code)-static_pdf->posstruct->pos.v)
-#define SYNCTEX_CURH static_pdf->posstruct->pos.h
+#define SYNCTEX_CURVV (dimen_par(page_height_code)-static_pdf->posstruct->pos.v)
+#define SYNCTEX_CURHH static_pdf->posstruct->pos.h
+#define SYNCTEX_CURV (static_pdf->o_mode==OMODE_PDF?SYNCTEX_CURVV:SYNCTEX_CURVV-4736287)
+#define SYNCTEX_CURH (static_pdf->o_mode==OMODE_PDF?SYNCTEX_CURHH:SYNCTEX_CURHH-4736287)
+
#define SYNCTEX_GET_JOB_NAME() makecstring(job_name)
#define SYNCTEX_GET_LOG_NAME() get_full_log_name()
Index: Build/source/texk/web2c/synctexdir/ChangeLog
===================================================================
--- Build/source/texk/web2c/synctexdir/ChangeLog (revision 23715)
+++ Build/source/texk/web2c/synctexdir/ChangeLog (revision 23716)
@@ -1,3 +1,8 @@
+2011-08-22 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * synctex-luatex.h, synctex-xetex.h: Define SYNCTEX_CURH and
+ SYNCTEX_CURH to yield correct coordinates in dvi and pdf mode.
+
2011-06-11 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* synctex_parser_utils.c: fix a typo.
Index: Build/source/texk/web2c/synctexdir/synctex-xetex.h
===================================================================
--- Build/source/texk/web2c/synctexdir/synctex-xetex.h (revision 23715)
+++ Build/source/texk/web2c/synctexdir/synctex-xetex.h (revision 23716)
@@ -1,9 +1,9 @@
/*
-Copyright (c) 2008, 2009 jerome DOT laurens AT u-bourgogne DOT fr
+Copyright (c) 2008-2011 jerome DOT laurens AT u-bourgogne DOT fr
This file is part of the SyncTeX package.
-Latest Revision: Wed Jul 1 11:16:29 UTC 2009
+Latest Revision: Wed Aug 22 07:20:29 UTC 2011
License:
--------
@@ -57,6 +57,9 @@
# define SYNCTEX_OFFSET_IS_PDF (nopdfoutput==0)
# define SYNCTEX_OUTPUT (nopdfoutput!=0?"xdv":"pdf")
+#define SYNCTEX_CURH ((nopdfoutput==0)?(curh+4736287):curh)
+#define SYNCTEX_CURV ((nopdfoutput==0)?(curv+4736287):curv)
+
/* WARNING:
The definition below must be in sync with their eponym declarations in synctex-xetex.ch1
*/
|