From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14354 Path: main.gmane.org!not-for-mail From: Nigel King Newsgroups: gmane.comp.tex.context Subject: Re: Synchronization (.tex <-> .pdf) Date: Mon, 22 Dec 2003 15:56:44 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1072109140 10075 80.91.224.253 (22 Dec 2003 16:05:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 16:05:40 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Dec 22 17:05:38 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYSYs-00037X-00 for ; Mon, 22 Dec 2003 17:05:38 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E361210B32; Mon, 22 Dec 2003 17:05:21 +0100 (MET) Original-Received: from mailhost1.dircon.co.uk (mailhost1.dircon.co.uk [194.112.32.65]) by ref.ntg.nl (Postfix) with ESMTP id 8B89F10AFC for ; Mon, 22 Dec 2003 16:56:25 +0100 (MET) Original-Received: from [1.1.3.76] (pipinghot.gw.dircon.net [195.157.154.158]) by mailhost1.dircon.co.uk (Postfix) with ESMTP id 56B2963F547 for ; Mon, 22 Dec 2003 15:56:25 +0000 (GMT) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Original-To: In-Reply-To: Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14354 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14354 Now that would be a Christmas present! I didn't dare ask. --=20 Nigel > From: Steffen Wolfrum > Reply-To: ntg-context@ntg.nl > Date: Mon, 22 Dec 2003 15:38:25 +0100 > To: ntg-context@ntg.nl > Cc: jerome.laurens@u-bourgogne.fr > Subject: [NTG-context] Synchronization (.tex <-> .pdf) >=20 > Hi, >=20 > I don't now how many ConTeXt user are aware of the idea of synchronizatio= n. In > the LaTeX area of TeX it has a kind of tradition (Textures, srcltx, ...) = for > dvi output. >=20 > For PDF output J=E9r=F4me Laurens has now written a package (for use with iTe= XMac > and TeXShop) that makes the advantages from source-output synchronization= also > available for the todays standard PDF. But as so many things in the TeX w= orld > it is written as a "plug-in" for LaTeX. >=20 > Does anybody has an idea how to use this great achievement also with ConT= eXt? > For those who would like to have a look at J=E9r=F4me's great work, I insert = his > code at the end of this email. >=20 > Thank you very much, >=20 > Steffen Wolfrum >=20 >=20 > %%%% This is pdfsync.sty > %%%% 2003-12-08: > %%%% There is a bug in using everyvbox... novbox is now the default > %%%% bug fixed: $0$ was no visible > %%%% 2003-11-28: > %%%% comment characters added to fix an error. Don't know exactly the > cause... > %%%% Default option is all... > %%%% Could not use \everydisplay... (bug in eqnarray) > %%%% 2003-11-19 > %%%% first version > %%%% usage: \usepackage[display,cr,vbox]{PDFSYNC} > %%%% appends reference points before each \par and at each \hbox, inline = math; > %%%% optionally also at every displayed math, with the option [display] > %%%% optionally also at every \cr, with the option [cr] > %%%% optionally also at every \vbox, with the option [vbox] > %%%% > %%%% If you want additional files to be parsed, please use the command > %%%% \include (which is redefined below) > %%%% This file is due to Piero D'Ancona and jlaurens@users.sourceforge.ne= t > %%%% iTeXMac is supporting pdfsync > %%%% Copy this file to ~/Library/texmf/tex/latex or > ~/Library/TeX/texmf/tex/latex if available > %%%% This file is distributed under the GPL and the "smart licence": plea= se > make things better if you can > %%%% =A9 2003, jlaurens@users.sourceforge.net > % > \NeedsTeXFormat{LaTeX2e}% > \ProvidesPackage{pdfsync}[2003/12/08 v0.3]% > \newif\ifPDFSYNCOK% > \newif\ifPDFSYNCStar% > \newif\ifPDFSYNCPar \PDFSYNCPartrue% > \newif\ifPDFSYNCMath \PDFSYNCMathtrue% > \newif\ifPDFSYNCCr \PDFSYNCCrtrue% > \newif\ifPDFSYNCHBox \PDFSYNCHBoxtrue% > \newif\ifPDFSYNCVBox \PDFSYNCVBoxfalse% > \newif\ifPDFSYNCExtra \PDFSYNCExtratrue% > \newwrite\PDFPOS% > \newcount\PDFSYNC@folio\PDFSYNC@folio=3D0% > \newcount\PDFSYNC@rder\PDFSYNC@rder=3D0% > \DeclareOption{nopar}{\PDFSYNCParfalse}% > \DeclareOption{nomath}{\PDFSYNCMathfalse}% > \DeclareOption{nocr}{\PDFSYNCCrfalse}% > \DeclareOption{nohbox}{\PDFSYNCHBoxfalse}% > \DeclareOption{novbox}{\PDFSYNCVBoxfalse}% > \DeclareOption{vbox}{\PDFSYNCVBoxtrue}% > \DeclareOption{noextra}{\PDFSYNCExtrafalse}% > \DeclareOption{nothing}{\let\pdfsyncstart\pdfsyncstop}% > \ProcessOptions\relax% > \RequirePackage{everyshi}% > \ifx\pdfsavepos\undefined% > \wlog{Synchronization is only available with pdf. Use a dvi viewer instea= d.}% > \let\pdfsyncstart\relax% > \let\pdfsyncstop\relax% > \let\pdfsync\relax% > \let\@PDFSYNC\relax% > \else% > \def\pdfsyncstart{\global\PDFSYNCOKtrue}% > \def\pdfsyncstop{\global\PDFSYNCOKfalse}% > \EveryShipout{\@PDFSYNC\global\advance\PDFSYNC@folio by > 1\immediate\write\PDFPOS{s\space\the\PDFSYNC@folio}}% > \immediate\openout\PDFPOS\jobname.pdfsync% > \immediate\write\PDFPOS{\jobname}% control info > \immediate\write\PDFPOS{version 0}% control info > \let\PDFSYNC@include\include% > \def\PDFSYNC@@include#1{% > \immediate\write\PDFPOS{(#1}% > \PDFSYNC@include{#1}\immediate\write\PDFPOS{)}}% > \let\include\PDFSYNC@@include% > \def\@PDFSYNC{% > \ifPDFSYNCOK% > \pdfsavepos% > \immediate\write\PDFPOS{l\space\the\PDFSYNC@rder\space\the\inputlineno}% > \def\position{\the\pdflastxpos\space\the\pdflastypos}% > \ifPDFSYNCStar% > \edef\argument{{p*\space\the\PDFSYNC@rder\space\noexpand\position}}% > \else% > \edef\argument{{p\space\the\PDFSYNC@rder\space\noexpand\position}}% > \fi% > \expandafter\write\expandafter\PDFPOS\argument% > \global\advance\PDFSYNC@rder by 1% > \fi}% > \def\pdfsync{\global\PDFSYNCStartrue\@PDFSYNC\global\PDFSYNCStarfalse}% > \def\PDFSYNC@Extra{% > % =20 > \let\PDFSYNC@maketitle\maketitle\def\maketitle{\pdfsyncstop\PDFSYNC@maket= itle\ > pdfsyncstart} > \let\PDFSYNC@newline\\\def\\{{\@PDFSYNC}\PDFSYNC@newline}% > \global\let\PDFSYNC@verse\verse > \global\def\verse{\PDFSYNC@verse\let\PDFSYNC@newline\\\def\\{{\@PDFSYNC}\= PDFSY > NC@newline}}% > }% > \AtBeginDocument{% > \pdfsyncstart% > \ifPDFSYNCPar\global\let\p@@r\par\gdef\par{{\@PDFSYNC}\p@@r}\fi% > \ifPDFSYNCMath\everymath{{\@PDFSYNC}}\fi% > \ifPDFSYNCCr\everycr {{\@PDFSYNC}}\fi% > \ifPDFSYNCHBox\everyhbox {{\@PDFSYNC}}\fi% > \ifPDFSYNCVBox\everyvbox {{\@PDFSYNC}}\fi%there is a bug here > \ifPDFSYNCExtra\PDFSYNC@Extra\fi% > }% > \fi% > \endinput >=20 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context