diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2011-05-11 10:11:31 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2011-05-11 10:11:31 +0000 |
commit | a90acc5dd1469772046478ad5242406fb5768904 (patch) | |
tree | 48973aaea473061cac78023b7ee76de8c2d7419f /Build/source/texk/web2c | |
parent | 4369b0bd4e140cf2e78637ce3915445235d3c5bf (diff) |
fix a SyncTeX bug in the case where --output-directory option is given.
git-svn-id: svn://tug.org/texlive/trunk@22424 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
5 files changed, 17 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/synctexdir/ChangeLog b/Build/source/texk/web2c/synctexdir/ChangeLog index f1200648a04..a195d5435e5 100644 --- a/Build/source/texk/web2c/synctexdir/ChangeLog +++ b/Build/source/texk/web2c/synctexdir/ChangeLog @@ -1,3 +1,9 @@ +2011-05-11 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * synctex-etex.h, synctex-pdftex.h, synctex-tex.h, synctex-xetex.h: + define SYNCTEX_GET_CURRENT_NAME() as in LuaTeX, since SyncTeX name + should be full path when --output-directory option is given. + 2011-05-09 Taco Hoekwater <taco@luatex.org> * synctex-luatex.h: use an actual function to find the current name. diff --git a/Build/source/texk/web2c/synctexdir/synctex-etex.h b/Build/source/texk/web2c/synctexdir/synctex-etex.h index 7b720ad49bb..7b5fb70081c 100644 --- a/Build/source/texk/web2c/synctexdir/synctex-etex.h +++ b/Build/source/texk/web2c/synctexdir/synctex-etex.h @@ -51,3 +51,6 @@ Thu Jun 19 09:39:21 UTC 2008 # warning SyncTeX for eTeX # include "etexd.h" + +extern char *generic_synctex_get_current_name(void); +#define SYNCTEX_GET_CURRENT_NAME() generic_synctex_get_current_name() diff --git a/Build/source/texk/web2c/synctexdir/synctex-pdftex.h b/Build/source/texk/web2c/synctexdir/synctex-pdftex.h index 7b936ebe38c..b3a0ece2d5e 100644 --- a/Build/source/texk/web2c/synctexdir/synctex-pdftex.h +++ b/Build/source/texk/web2c/synctexdir/synctex-pdftex.h @@ -50,10 +50,11 @@ Thu Jun 19 09:39:21 UTC 2008 # include "pdftexd.h" +extern char *generic_synctex_get_current_name(void); /* We observe pdfoutputvalue in order to determine whether output mode is * pdf or dvi. * We will assume that pdf_output_value equals pdf_output before entering * the synctex_sheet function below, in the including synctex.c file. */ # define SYNCTEX_OFFSET_IS_PDF (pdfoutputvalue>0) # define SYNCTEX_OUTPUT ((pdfoutputvalue>0)?"pdf":"dvi") - +# define SYNCTEX_GET_CURRENT_NAME() generic_synctex_get_current_name() diff --git a/Build/source/texk/web2c/synctexdir/synctex-tex.h b/Build/source/texk/web2c/synctexdir/synctex-tex.h index 94ceccf931d..b110fd01d9a 100644 --- a/Build/source/texk/web2c/synctexdir/synctex-tex.h +++ b/Build/source/texk/web2c/synctexdir/synctex-tex.h @@ -51,3 +51,6 @@ Thu Jun 19 09:39:21 UTC 2008 # warning SyncTeX for TeX # include "texd.h" + +extern char *generic_synctex_get_current_name(void); +# define SYNCTEX_GET_CURRENT_NAME() generic_synctex_get_current_name() diff --git a/Build/source/texk/web2c/synctexdir/synctex-xetex.h b/Build/source/texk/web2c/synctexdir/synctex-xetex.h index 9c80d259088..accf79ea413 100644 --- a/Build/source/texk/web2c/synctexdir/synctex-xetex.h +++ b/Build/source/texk/web2c/synctexdir/synctex-xetex.h @@ -62,9 +62,12 @@ Thu Jun 19 09:39:21 UTC 2008 */ # define synchronization_field_size 1 +extern char *generic_synctex_get_current_name(void); + /* in XeTeX, "halfword" fields are at least 32 bits, so we'll use those for * tag and line so that the sync field size is only one memory_word. */ # define SYNCTEX_TAG_MODEL(NODE,TYPE)\ mem[NODE+TYPE##_node_size-synchronization_field_size].hh.lhfield # define SYNCTEX_LINE_MODEL(NODE,TYPE)\ mem[NODE+TYPE##_node_size-synchronization_field_size].hh.rh +# define SYNCTEX_GET_CURRENT_NAME() generic_synctex_get_current_name() |