diff options
author | Karl Berry <karl@freefriends.org> | 2008-01-30 23:33:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-01-30 23:33:01 +0000 |
commit | 34581f02f7e9465cfd1e9c43d18c0dbe07aa0f94 (patch) | |
tree | 222e6d8fd139d6f3f1d326ac36e13f15a1fc1890 /Master/texmf-dist/tex | |
parent | 112910f3c62e5f91ebd1a1de6e2a38d89783dac0 (diff) |
pdfsync update (30jan08)
git-svn-id: svn://tug.org/texlive/trunk@6456 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfsync/pdfsync.sty | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfsync/pdfsync.sty b/Master/texmf-dist/tex/latex/pdfsync/pdfsync.sty index c7eb74c49d8..a016948c6db 100644 --- a/Master/texmf-dist/tex/latex/pdfsync/pdfsync.sty +++ b/Master/texmf-dist/tex/latex/pdfsync/pdfsync.sty @@ -15,6 +15,13 @@ % Actually, iTeXMac, iTeXMac2, TeXShop, TextMate, AucTeX are text editors implementing pdfsync support at various level. % iTeXMac, iTeXMac2, TeXShop, TeXniscope, PDFView are PDF viewers implementing pdfsync support at various level. % +% Version +% ------- +% - 01/25/2008: This is the second version officially available. +% Some internals were modified in order to provide a stronger +% \pdfsyncstart, \pdfsyncstop pair. +% Anticipating over pdftex improvements, this package will load with option "off" if the \synchronize macro is defined +% % Install % ------- % If this package is not already included in you TeX distribution, just copy the pdfsync.sty file to the proper location. @@ -64,7 +71,7 @@ % % http://itexmac.sourceforge.net/pdfsync.html % -% copyright 2006, jlaurens AT users DOT sourceforge DOT net +% copyright 2006-2008, jlaurens AT users DOT sourceforge DOT net % \ifx\pdfsync\undefined\else\message{**** pdfsync.sty: WARNING, the package is already loaded.}\expandafter\endinput\fi \def\c@nfigPDFSYNC@ff{% @@ -72,15 +79,21 @@ \let\pdfsyncstart\relax% \let\pdfsyncstop\relax% }% +\ifx\synchronize\undefined\else +\message{**** pdfsync.sty: WARNING, the package is obsolete with this version of pdftex.}% +\c@nfigPDFSYNC@ff +\let\c@nfigPDFSYNC@ff=\undefined +\expandafter\endinput +\fi \ifx\pdfsavepos\undefined -\message{**** pdfsync.sty: WARNING, synchronization is only available with pdfetex like engines.}% +\message{**** pdfsync.sty: WARNING, synchronization is only available with pdftex like engines.}% \c@nfigPDFSYNC@ff \let\c@nfigPDFSYNC@ff=\undefined \expandafter\endinput \fi % Defining the preamble of the style file: \NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{pdfsync}[2007/01/15 v1.0]% +\ProvidesPackage{pdfsync}[2008/01/26 v1.1]% % start of the code \let\c@nfigPDFSYNCp@r\relax% \let\c@nfigPDFSYNCm@th\relax% @@ -116,15 +129,17 @@ \def\c@nfigPDFSYNChb@x{\wlog{**** pdfsync.sty: Synchronizing at \string\everyhbox}% \newtoks\PDFSYNCeveryhb@x \PDFSYNCeveryhb@x\everyhbox -\everyhbox{\ifPDFSYNC@unblocked +\everyhbox{\PDFSYNCeveryhb@xcontent}% +\def\PDFSYNCeveryhb@xon{\ifPDFSYNC@unblocked \begingroup \PDFSYNC@unblockedfalse \setbox\z@\hbox\bgroup \@PDFSYNC \setbox\z@\hbox\bgroup\bgroup - \aftergroup\PDFSYNC@endhbox\the\PDFSYNCeveryhb@x - \PDFSYNC@unblockedtrue - \fi}% + \aftergroup\PDFSYNC@endhbox + \the\PDFSYNCeveryhb@x + \PDFSYNC@unblockedtrue\fi} +\def\PDFSYNCeveryhb@xoff{\the\PDFSYNCeveryhb@x} \let\everyhbox\PDFSYNCeveryhb@x \def\PDFSYNC@endhbox{\ifnum\lastnodetype>\m@ne \egroup \unhbox\z@ \egroup \unhbox\z@ @@ -134,15 +149,16 @@ \def\c@nfigPDFSYNCvb@x{\wlog{**** pdfsync.sty: Synchronizing at \string\everyvbox}% \newtoks\PDFSYNCeveryvb@x \PDFSYNCeveryvb@x\everyvbox -\everyvbox{\ifPDFSYNC@unblocked +\everyvbox{\PDFSYNCeveryvb@xcontent}% +\def\PDFSYNCeveryvb@xon{\ifPDFSYNC@unblocked \begingroup \PDFSYNC@unblockedfalse \setbox\z@\vbox\bgroup \@PDFSYNC \setbox\z@\vtop\bgroup\bgroup - \aftergroup\PDFSYNC@endvbox\the\PDFSYNCeveryvb@x - \PDFSYNC@unblockedtrue - \fi}% + \aftergroup\PDFSYNC@endvbox + \the\PDFSYNCeveryvb@x\PDFSYNC@unblockedtrue\fi} +\def\PDFSYNCeveryvb@xoff{\the\PDFSYNCeveryvb@x} \let\everyvbox\PDFSYNCeveryvb@x \def\PDFSYNC@endvbox{\ifnum\lastnodetype>\m@ne \egroup @@ -216,12 +232,16 @@ \let\pdfsync\@pdfsync% \let\@PDFSYNC\@@PDFSYNC% \let\InputIfFileExists\PDFSYNCInputIfFileExists@n% +\let\PDFSYNCeveryhb@xcontent\PDFSYNCeveryhb@xon +\let\PDFSYNCeveryvb@xcontent\PDFSYNCeveryvb@xon }% \def\pdfsyncstop{% -\let\shipout\PDFSYNCship@ut@ld% +%\let\shipout\PDFSYNCship@ut@ld% \let\pdfsync\relax% \let\@PDFSYNC\relax% \let\InputIfFileExists\PDFSYNCInputIfFileExists@ff% +\let\PDFSYNCeveryhb@xcontent\PDFSYNCeveryhb@xoff +\let\PDFSYNCeveryvb@xcontent\PDFSYNCeveryvb@xoff }% % \c@nfigPDFSYNCp@r% |