| 1 |
/* synctex.h |
| 2 |
|
| 3 |
Copyright (c) 2008-2017 jerome DOT laurens AT u-bourgogne DOT fr |
| 4 |
|
| 5 |
This file is part of the SyncTeX package. |
| 6 |
|
| 7 |
Version 1 |
| 8 |
Lates Revision: Sat Apr 22 10:07:05 UTC 2017 |
| 9 |
|
| 10 |
Permission is hereby granted, free of charge, to any person |
| 11 |
obtaining a copy of this software and associated documentation |
| 12 |
files (the "Software"), to deal in the Software without |
| 13 |
restriction, including without limitation the rights to use, |
| 14 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 15 |
copies of the Software, and to permit persons to whom the |
| 16 |
Software is furnished to do so, subject to the following |
| 17 |
conditions: |
| 18 |
|
| 19 |
The above copyright notice and this permission notice shall be |
| 20 |
included in all copies or substantial portions of the Software. |
| 21 |
|
| 22 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 23 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 24 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 25 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 26 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 27 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 28 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 29 |
OTHER DEALINGS IN THE SOFTWARE |
| 30 |
|
| 31 |
Acknowledgments: |
| 32 |
---------------- |
| 33 |
The author received useful remarks from the pdfTeX developers, especially Hahn The Thanh, |
| 34 |
and significant help from XeTeX developer Jonathan Kew |
| 35 |
|
| 36 |
Nota Bene: |
| 37 |
---------- |
| 38 |
If you include or use a significant part of the synctex package into a software, |
| 39 |
I would appreciate to be listed as contributor and see "SyncTeX" highlighted. |
| 40 |
|
| 41 |
*/ |
| 42 |
|
| 43 |
# ifndef __SYNCTEX_HEADER__ |
| 44 |
# define __SYNCTEX_HEADER__ |
| 45 |
|
| 46 |
#include "synctex-common.h" |
| 47 |
|
| 48 |
/* Free all memory used, close and remove the file if any. */ |
| 49 |
void synctexabort(boolean log_opened); |
| 50 |
|
| 51 |
/* Send this message when starting a new input. */ |
| 52 |
extern void synctexstartinput(void); |
| 53 |
|
| 54 |
/* Recording the "{..." line. In *tex.web, use synctex_sheet(pdf_output) at |
| 55 |
* the very beginning of the ship_out procedure. |
| 56 |
*/ |
| 57 |
extern void synctexsheet(integer mag); |
| 58 |
|
| 59 |
/* Recording the "}..." line. In *tex.web, use synctex_teehs at |
| 60 |
* the very end of the ship_out procedure. |
| 61 |
*/ |
| 62 |
extern void synctexteehs(void); |
| 63 |
|
| 64 |
/* Recording the "<..." line. In pdftex.web, use synctex_pdfxform(p) at |
| 65 |
* the very beginning of the pdf_ship_out procedure. |
| 66 |
*/ |
| 67 |
extern void synctexpdfxform(halfword p); |
| 68 |
|
| 69 |
/* Recording the ">" line. In pdftex.web, use synctex_mrofxfdp at |
| 70 |
* the very end of the ship_out procedure. |
| 71 |
*/ |
| 72 |
extern void synctexmrofxfdp(void); |
| 73 |
|
| 74 |
/* This message is sent when a vlist will be shipped out, more precisely at |
| 75 |
* the beginning of the vlist_out procedure in *TeX.web. It will be balanced |
| 76 |
* by a synctex_tsilv, sent at the end of the vlist_out procedure. p is the |
| 77 |
* address of the vlist We assume that p is really a vlist node! */ |
| 78 |
extern void synctexvlist(halfword this_box); |
| 79 |
|
| 80 |
/* Recording a "}" line ending a vbox: this message is sent whenever a vlist |
| 81 |
* has been shipped out. It is used to close the vlist nesting level. It is |
| 82 |
* sent at the end of each vlist_out procedure in *TeX.web to balance a former |
| 83 |
* synctex_vlist sent at the beginning of that procedure. */ |
| 84 |
extern void synctextsilv(halfword this_box); |
| 85 |
|
| 86 |
/* This message is sent when a void vlist will be shipped out. |
| 87 |
* There is no need to balance a void vlist. */ |
| 88 |
extern void synctexvoidvlist(halfword p, halfword this_box); |
| 89 |
|
| 90 |
/* Send this message when an hlist will be shipped out, more precisely at |
| 91 |
* the beginning of the hlist_out procedure in *TeX.web. It must be balanced |
| 92 |
* by a synctex_tsilh, sent at the end of the hlist_out procedure. p is the |
| 93 |
* address of the hlist. */ |
| 94 |
extern void synctexhlist(halfword this_box); |
| 95 |
|
| 96 |
/* Send this message at the end of the various hlist_out procedure in *TeX.web |
| 97 |
* to balance a former synctex_hlist. */ |
| 98 |
extern void synctextsilh(halfword this_box); |
| 99 |
|
| 100 |
/* This message is sent when a void hlist will be shipped out. |
| 101 |
* There is no need to balance a void hlist. */ |
| 102 |
extern void synctexvoidhlist(halfword p, halfword this_box); |
| 103 |
|
| 104 |
/* Send this message whenever an inline math node will ship out. */ |
| 105 |
extern void synctexmath(halfword p, halfword this_box); |
| 106 |
|
| 107 |
/* Send this message whenever an horizontal rule or glue node will ship out. */ |
| 108 |
extern void synctexhorizontalruleorglue(halfword p, halfword this_box); |
| 109 |
|
| 110 |
/* Send this message whenever a kern node will ship out. */ |
| 111 |
extern void synctexkern(halfword p, halfword this_box); |
| 112 |
|
| 113 |
/* Recording the "f" line. In pdftex.web, use synctex_pdfrefxform when \pfdrefxform si used. |
| 114 |
*/ |
| 115 |
extern void synctexpdfrefxform(int objnum); |
| 116 |
|
| 117 |
/* this message is sent whenever a char node ships out */ |
| 118 |
extern void synctexchar(halfword p, halfword this_box); |
| 119 |
|
| 120 |
/* this message should be sent to record information |
| 121 |
for a node of an unknown type */ |
| 122 |
extern void synctexnode(halfword p, halfword this_box); |
| 123 |
|
| 124 |
/* For debugging purpose only */ |
| 125 |
extern void synctexcurrent(void); |
| 126 |
|
| 127 |
# endif |