| 1 |
\documentclass[pagesize=auto, fontsize=12, DIV=11]{scrartcl} |
| 2 |
|
| 3 |
\usepackage{fixltx2e} |
| 4 |
\usepackage{etex} |
| 5 |
\usepackage{lmodern} |
| 6 |
\usepackage[T1]{fontenc} |
| 7 |
\usepackage{textcomp} |
| 8 |
\usepackage{hologo} |
| 9 |
\usepackage{microtype} |
| 10 |
\usepackage{hyperref} |
| 11 |
|
| 12 |
\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} |
| 13 |
\newcommand*{\pkg}[1]{\textsf{#1}} |
| 14 |
\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} |
| 15 |
\makeatletter |
| 16 |
\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} |
| 17 |
\makeatother |
| 18 |
\newcommand*{\opt}[1]{\texttt{#1}} |
| 19 |
|
| 20 |
\addtokomafont{title}{\rmfamily} |
| 21 |
\addtokomafont{subtitle}{\mdseries} |
| 22 |
|
| 23 |
\title{The \pkg{pdfsync} package\thanks{This manual corresponds to \pkg{pdfsync.sty}~v1.1, dated~2008/01/26.}} |
| 24 |
\subtitle{A \LaTeX\ package for synchronizing between source and \textsc{pdf} output} |
| 25 |
\author{J. Laurens\thanks{\mail{[email protected]}}} |
| 26 |
\date{2008/01/26} |
| 27 |
|
| 28 |
|
| 29 |
\begin{document} |
| 30 |
|
| 31 |
\maketitle |
| 32 |
|
| 33 |
|
| 34 |
\section{Presentation} |
| 35 |
|
| 36 |
\pkg{pdfsync.sty} allows one to synchronize between \LaTeX\ source and \textsc{pdf} output. |
| 37 |
When used with a text editor and a PDF viewer that both support \pkg{pdfsync}, |
| 38 |
you can navigate from the source to the output and vice versa. |
| 39 |
This is some kind of \pkg{srcltx} ported from \textsc{dvi} to \textsc{pdf}. |
| 40 |
|
| 41 |
When you typeset \texttt{foo.tex} with \pkg{pdfsync.sty} and either \texttt{pdfetex} or \texttt{xetex}, |
| 42 |
a \texttt{foo.pdfsync} auxiliary file is created. It only contains geometrical information |
| 43 |
used by text editors or PDF viewers for synchronization. |
| 44 |
You can delete this file when you are done. |
| 45 |
|
| 46 |
Actually, i\TeX Mac, i\TeX Mac2, \TeX Shop, Auc\TeX\ are |
| 47 |
text editors implementing \pkg{pdfsync} support at various level. |
| 48 |
i\TeX Mac, i\TeX Mac2, \TeX Shop, \TeX niscope, PDFView are |
| 49 |
PDF viewers implementing \pkg{pdfsync} support at various level. |
| 50 |
|
| 51 |
This is most certainly the last update of this package, |
| 52 |
this technology will most certainly be embedded in \hologo{pdfTeX} and \hologo{XeTeX} engines and won't rely any longer on \textsc{pdf} techniques. |
| 53 |
As a matter of fact, synchronization will be available both for \textsc{dvi}, \textsc{xdv} and \textsc{pdf}. |
| 54 |
Also it will work the same for Plain, \LaTeX\@, Con\TeX t and whatsoever. |
| 55 |
Moreover, synchronization will not modify any package. |
| 56 |
|
| 57 |
|
| 58 |
\section{News} |
| 59 |
|
| 60 |
\begin{itemize} |
| 61 |
\item 01/30/2007: version~1.1 is the second version officially available. |
| 62 |
Some internals were modified in order to provide a stronger \cmd{\pdfsyncstart}, \cmd{\pdfsyncstop} pair. |
| 63 |
Paul Taylor's \pkg{diagram} package now works with \pkg{pdfsync}. You may have to update. |
| 64 |
Anticipating over \hologo{pdfTeX} improvements, this package will load with option ``\opt{off}'' if the \cmd{\synchronize} macro is defined |
| 65 |
\end{itemize} |
| 66 |
|
| 67 |
|
| 68 |
\section{Installation} |
| 69 |
|
| 70 |
If this package is not already included in your \TeX\ distribution, |
| 71 |
just copy the \texttt{pdfsync.sty} file to the proper location. |
| 72 |
On Mac~OS~X, it can be |
| 73 |
% |
| 74 |
\begin{verbatim} |
| 75 |
YOUR_HOME_DIRECTORY/Library/texmf/tex/latex/graphics/graphics.sty |
| 76 |
\end{verbatim} |
| 77 |
% |
| 78 |
where you should replace \verb+YOUR_HOME_DIRECTORY+ by its actual value. |
| 79 |
|
| 80 |
|
| 81 |
\section{Usage} |
| 82 |
|
| 83 |
Put \verb+\usepackage{pdfsync}+ in your \LaTeX\ preamble. |
| 84 |
|
| 85 |
In case of severe conflicts with another package, try instead |
| 86 |
% |
| 87 |
\begin{verbatim} |
| 88 |
\usepackage[novbox]{pdfsync} |
| 89 |
\end{verbatim} |
| 90 |
|
| 91 |
If \pkg{pdfsync} breaks only some part of your \LaTeX\ code, you can try to |
| 92 |
enclose it in |
| 93 |
% |
| 94 |
\begin{verbatim} |
| 95 |
\pdfsyncstop \pdfsyncstart |
| 96 |
\end{verbatim} |
| 97 |
% |
| 98 |
pair. If you want to add |
| 99 |
more control point add \cmd{\pdfsync} at sensible locations in your code. |
| 100 |
In that case, |
| 101 |
% |
| 102 |
\begin{verbatim} |
| 103 |
\usepackage[off]{pdfsync} |
| 104 |
\end{verbatim} |
| 105 |
% |
| 106 |
will disable \textsc{pdf} synchronization |
| 107 |
and \cmd{\relax} the above commands. |
| 108 |
|
| 109 |
|
| 110 |
\section{Bugs} |
| 111 |
|
| 112 |
\pkg{pdfsync} uses extremely sensible code. |
| 113 |
You should not use \pkg{pdfsync} on final documents because |
| 114 |
it can change the layout rather significantly |
| 115 |
(different page/line breaks are the most obvious changes), |
| 116 |
despite this is rather rare, |
| 117 |
17th~Murphy's law states that it will happen to you when it absolutely must not\dots |
| 118 |
|
| 119 |
The accuracy of \textsc{pdf} synchronization depends on the application used for that purpose. |
| 120 |
i\TeX Mac2 is actually the most accurate implementation because it combines \pkg{pdfsync} |
| 121 |
with \textsc{pdf} searching. The lack of accuracy, is not a bug in \pkg{pdfsync} a priori. |
| 122 |
|
| 123 |
You should report bugs and package conflicts to \\ |
| 124 |
\null\quad\quad\href{mailto:[email protected]}{\texttt{jlaurens AT users DOT sourceforge DOT net.}} |
| 125 |
|
| 126 |
|
| 127 |
\section{Credits:} |
| 128 |
|
| 129 |
The original idea of \pkg{pdfsync} was proposed by Piero~D'Ancona in the summer of 2003. |
| 130 |
He and Jerome~Laurens both created the first working package. |
| 131 |
Hans~Hagen and David~Kastrup made very significant enhancements to the original code. |
| 132 |
|
| 133 |
|
| 134 |
\section{License} |
| 135 |
|
| 136 |
This program is free software; you can redistribute it and/or modify |
| 137 |
it under the terms of the The \LaTeX\ Project Public License version~1.3c at least \\ |
| 138 |
\url{http://www.latex-project.org/lppl.txt} |
| 139 |
|
| 140 |
|
| 141 |
\section{Home page} |
| 142 |
|
| 143 |
The official site where you will find both the latest version and the \texttt{.pdfsync} file specifications is \\ |
| 144 |
\null\quad\quad\url{http://itexmac.sourceforge.net/pdfsync.html} |
| 145 |
|
| 146 |
\bigskip |
| 147 |
|
| 148 |
copyright 2007, \href{mailto:[email protected]}{\texttt{jlaurens AT users DOT sourceforge DOT net}} |
| 149 |
|
| 150 |
\end{document} |