Debian Codegraph @

texk/web2c/synctexdir/synctex-xe-rec.ch3

raw
1 Copyright (c) 2008, 2009 jerome DOT laurens AT u-bourgogne DOT fr
2
3 This file is part of the SyncTeX package.
4
5 Latest Revision: Wed Jul 1 11:17:59 UTC 2009
6
7 License:
8 --------
9 Permission is hereby granted, free of charge, to any person
10 obtaining a copy of this software and associated documentation
11 files (the "Software"), to deal in the Software without
12 restriction, including without limitation the rights to use,
13 copy, modify, merge, publish, distribute, sublicense, and/or sell
14 copies of the Software, and to permit persons to whom the
15 Software is furnished to do so, subject to the following
16 conditions:
17
18 The above copyright notice and this permission notice shall be
19 included in all copies or substantial portions of the Software.
20
21 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 OTHER DEALINGS IN THE SOFTWARE
29
30 Except as contained in this notice, the name of the copyright holder
31 shall not be used in advertising or otherwise to promote the sale,
32 use or other dealings in this Software without prior written
33 authorization from the copyright holder.
34
35 Acknowledgments:
36 ----------------
37 The author received useful remarks from the pdfTeX developers, especially Hahn The Thanh,
38 and significant help from XeTeX developer Jonathan Kew
39
40 Nota Bene:
41 ----------
42 If you include or use a significant part of the synctex package into a software,
43 I would appreciate to be listed as contributor and see "SyncTeX" highlighted.
44
45 Version 1
46 Thu Jun 19 09:39:21 UTC 2008
47
48 Notice:
49 -------
50 This file contains TeX changes for SyncTeX support.
51 It implements the memory management for XeTeX like engines.
52 It must apply after synctex.ch0 and synctex-e.ch1
53
54 @x
55 @p procedure vlist_out; {output a |vlist_node| box}
56 @y
57 @p procedure vlist_out; {output a |vlist_node| box}
58 @z
59
60 @x
61 if upwards then cur_v:=cur_v+depth(this_box) else cur_v:=cur_v-height(this_box);
62 MISSING @<Start vlist {\sl Sync\TeX} information record@> before cur_v:=cur_v-height(this_box);
63 @y
64 @<Start vlist {\sl Sync\TeX} information record@>;
65 if upwards then cur_v:=cur_v+depth(this_box) else cur_v:=cur_v-height(this_box);
66 @z
67
68 @x
69 @<Output a box in a vlist@>=
70 if list_ptr(p)=null then begin
71 if upwards then cur_v:=cur_v-depth(p)-height(p) else cur_v:=cur_v+height(p)+depth(p);
72 end
73 MISSING @<Record void list {\sl Sync\TeX} information@>;
74 @y
75 @<Output a box in a vlist@>=
76 if list_ptr(p)=null then begin
77 if upwards then cur_v:=cur_v-depth(p) else cur_v:=cur_v+height(p);
78 @<Record void list {\sl Sync\TeX} information@>;
79 if upwards then cur_v:=cur_v-height(p) else cur_v:=cur_v+depth(p);
80 end
81 @z
82