From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14355 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Synchronization (.tex <-> .pdf) Date: Mon, 22 Dec 2003 16:58:28 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20031222165049.01e087a0@server-1> 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"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1072109607 11071 80.91.224.253 (22 Dec 2003 16:13:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 16:13:27 +0000 (UTC) Cc: jerome.laurens@u-bourgogne.fr Original-X-From: ntg-context-admin@ntg.nl Mon Dec 22 17:13:23 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 1AYSgN-0003f2-00 for ; Mon, 22 Dec 2003 17:13:23 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5B86110AFC; Mon, 22 Dec 2003 17:13:18 +0100 (MET) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 592A310AFC for ; Mon, 22 Dec 2003 16:58:44 +0100 (MET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id hBMFwbq25727; Mon, 22 Dec 2003 16:58:37 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 4085721F7C; Mon, 22 Dec 2003 16:58:43 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 81C1517EA8; Mon, 22 Dec 2003 15:58:41 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: 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:14355 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14355 At 15:38 22/12/2003, Steffen Wolfrum wrote: >I don't now how many ConTeXt user are aware of the idea of=20 >synchronization. In the LaTeX area of TeX it has a kind of tradition=20 >(Textures, srcltx, ...) for dvi output. > >For PDF output J=E9r=F4me Laurens has now written a package (for use with= =20 >iTeXMac and TeXShop) that makes the advantages from source-output=20 >synchronization also available for the todays standard PDF. But as so many= =20 >things in the TeX world it is written as a "plug-in" for LaTeX. > >Does anybody has an idea how to use this great achievement also with= ConTeXt? >For those who would like to have a look at J=E9r=F4me's great work, I= insert=20 >his code at the end of this email. It's not that complicated to implement this kind of support in context, but= =20 i'd rather start from the editor's specs, so what is it that texshop wants= =20 as input (syntax and so)? Once that is known, i can have a look at it and=20 see to what extend it can be supported in an non-interfering way.=20 (furthermore i'd also support it in dvi mode) (in one of old context manuals the typeset result is crosslinked to the=20 input in a similar way; one reason for me to drop it is that in many cases= =20 my output is not in sync with the source, i.e. as soon as you move data=20 around ...) Hans >%%%% 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=20 >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.net >%%%% iTeXMac is supporting pdfsync >%%%% Copy this file to ~/Library/texmf/tex/latex or=20 >~/Library/TeX/texmf/tex/latex if available >%%%% This file is distributed under the GPL and the "smart licence":=20 >please 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=20 > instead.}% > \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=20 > 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% >=20 >\immediate\write\PDFPOS{l\space\the\PDFSYNC@rder\space\the\inputlineno}% > \def\position{\the\pdflastxpos\space\the\pdflastypos}% > \ifPDFSYNCStar% >=20 >\edef\argument{{p*\space\the\PDFSYNC@rder\space\noexpand\position}}% > \else% >=20 >\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@maketit= le\pdfsyncstart} > \let\PDFSYNC@newline\\\def\\{{\@PDFSYNC}\PDFSYNC@newline}% > \global\let\PDFSYNC@verse\verse >=20 >\global\def\verse{\PDFSYNC@verse\let\PDFSYNC@newline\\\def\\{{\@PDFSYNC}\PD= FSYNC@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 > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd= =20 >op virussen. >Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst=20 >waar op wordt gecontroleerd. ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------