| 1 |
Copyright (c) 2008-2011 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:29 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 |
Description forthcoming |
| 51 |
|
| 52 |
@x srcdir/etex.ch l.536 |
| 53 |
@/@<Cases for |print_param|@>@/ |
| 54 |
othercases print("[unknown integer parameter!]") |
| 55 |
@y |
| 56 |
@/@<synctex case for |print_param|@>@/ |
| 57 |
@/@<Cases for |print_param|@>@/ |
| 58 |
othercases print("[unknown integer parameter!]") |
| 59 |
@z |
| 60 |
|
| 61 |
@x etex.ch l.1568 |
| 62 |
kern_node:cur_h:=cur_h+width(p); |
| 63 |
math_node: @<Handle a math node in |hlist_out|@>; |
| 64 |
@y |
| 65 |
kern_node: begin |
| 66 |
@<Record |kern_node| {\sl Sync\TeX} information@>; |
| 67 |
cur_h:=cur_h+width(p); |
| 68 |
end; |
| 69 |
math_node: begin |
| 70 |
@<Record |math_node| {\sl Sync\TeX} information@>; |
| 71 |
@<Handle a math node in |hlist_out|@>; |
| 72 |
end; |
| 73 |
@z |
| 74 |
|
| 75 |
@x etex.ch l.3965 |
| 76 |
@<Reverse the complete hlist...@>= |
| 77 |
begin save_h:=cur_h; temp_ptr:=p; p:=new_kern(0); link(prev_p):=p; |
| 78 |
@y |
| 79 |
@<Reverse the complete hlist...@>= |
| 80 |
begin save_h:=cur_h; temp_ptr:=p; p:=new_kern(0); |
| 81 |
sync_tag(p+medium_node_size):=0; {{\sl Sync\TeX}: do nothing, it is too late} |
| 82 |
link(prev_p):=p; |
| 83 |
@z |
| 84 |
|
| 85 |
@x etex.ch l.4186 |
| 86 |
hlist_node,vlist_node: begin r:=get_node(box_node_size); |
| 87 |
@y |
| 88 |
hlist_node,vlist_node: begin r:=get_node(box_node_size); |
| 89 |
@<Copy the box {\sl Sync\TeX} information@>; |
| 90 |
@z |
| 91 |
|
| 92 |
@x synctex-e-mem.ch0 l.100 |
| 93 |
glue_node: begin r:=get_node(medium_node_size); add_glue_ref(glue_ptr(p)); |
| 94 |
{{\sl Sync\TeX}: proper size for glue} |
| 95 |
glue_ptr(r):=glue_ptr(p); leader_ptr(r):=null; |
| 96 |
end; |
| 97 |
@y |
| 98 |
glue_node: begin r:=get_node(medium_node_size); add_glue_ref(glue_ptr(p)); |
| 99 |
{{\sl Sync\TeX}: proper size for glue} |
| 100 |
@<Copy the medium sized node {\sl Sync\TeX} information@>; |
| 101 |
glue_ptr(r):=glue_ptr(p); leader_ptr(r):=null; |
| 102 |
end; |
| 103 |
@z |
| 104 |
|
| 105 |
@x etex.ch l.4459 |
| 106 |
name:=19; print("( "); incr(open_parens); update_terminal; |
| 107 |
end |
| 108 |
else name:=18 |
| 109 |
@y |
| 110 |
name:=19; print("( "); incr(open_parens); update_terminal; |
| 111 |
end |
| 112 |
else begin |
| 113 |
name:=18; |
| 114 |
@<Prepare pseudo file {\sl Sync\TeX} information@>; |
| 115 |
end |
| 116 |
@z |
| 117 |
|
| 118 |
@x synctex-mem.ch0 l.236 |
| 119 |
primitive("synctex",assign_int,int_base+synctex_code);@/ |
| 120 |
@!@:synctex_}{\.{\\synctex} primitive@> |
| 121 |
@y |
| 122 |
primitive("synctex",assign_int,int_base+synctex_code);@/ |
| 123 |
@!@:synctex_}{\.{\\synctex} primitive@> |
| 124 |
|
| 125 |
@ @<synctex case for |print_param|@>= |
| 126 |
synctex_code: print_esc("synctex"); |
| 127 |
@z |
| 128 |
|
| 129 |
@x synctex-rec.ch0 l.267 |
| 130 |
@ @<Prepare terminal input {\sl Sync\TeX} information@>= |
| 131 |
synctex_tag:=0; |
| 132 |
@y |
| 133 |
@ @<Prepare terminal input {\sl Sync\TeX} information@>= |
| 134 |
synctex_tag:=0; |
| 135 |
|
| 136 |
@ @<Prepare pseudo file {\sl Sync\TeX} information@>= |
| 137 |
synctex_tag:=0; |
| 138 |
@z |