ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Cc: debian-tex-maint@lists.debian.org
Subject: Re: ConTeXt 2007.01.12 problem
Date: Sat, 13 Jan 2007 02:50:22 +0000	[thread overview]
Message-ID: <E1H5YyM-0008MY-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Sat, 13 Jan 2007 01:23:14 +0100." <45A82672.5030605@elvenkind.com>

Several>> ! Undefined control sequence.
Several>> \initializenextposition ...dosetpositionpapersize

Taco> There was a new upload at 6pm, but I have not yet tested if that fixes
Taco> it.

When I upgraded to 2007.01.12 01:02 via the Debian package, I got the
same error that others have reported.  I just tested 2007.01.12 15:56
and the problem is fixed, so thanks for the quick work.  Here is the
test file (same as I've been using for dvipos), and it showed the
problem in dvi and pdf modes.  I'm using pdftex 1.40.0 (with Taco's
patch for the off-by-one-error) in /usr/local/bin.

============================================================
\defineoverlay [foregraphics] [\positionoverlay{foregraphics}]
\setupbackgrounds
  [page]
  [background={foreground,foregraphics}]

\starttext

\hpos{r23}{7} \quad \hpos{r24}{8} 

\startMPpositiongraphic{mypos:line}
  mpprocset := 0;  % context doesn't yet handle the new mpprocsets
  path pa, pb, pab ; numeric na, nb ;
  initialize_box(\MPpos{\MPvar{from}}) ;
  na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ;
  initialize_box(\MPpos{\MPvar{to}}) ;
  nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ;
  if na=nb :
    pab := center pa -- center pb ;
    pab := pab cutbefore (pab intersectionpoint pa) ;
    pab := pab cutafter (pab intersectionpoint pb) ;
    pickup pencircle;
    draw pab;
    anchor_box(\MPanchor{\MPvar{from}}) ;
  fi ;
\stopMPpositiongraphic

\startpositionoverlay{foregraphics}
  \setMPpositiongraphic{r23}{mypos:line}{to=r24}
\stoppositionoverlay

The pattern.

\stoptext
============================================================

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)

  reply	other threads:[~2007-01-13  2:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 14:43 Alan Bowen
2007-01-12 14:47 ` Hans Hagen
2007-01-12 14:52   ` Alan Bowen
2007-01-12 14:52 ` Hans Hagen
2007-01-12 15:07   ` Alan Bowen
2007-01-12 15:08     ` Hans Hagen
2007-01-12 15:23       ` Alan Bowen
2007-01-12 15:39         ` Hans Hagen
2007-01-12 19:47 ` [NTG-context] " Mike Bird
2007-01-12 19:51   ` Norbert Preining
2007-01-12 19:54   ` Taco Hoekwater
2007-01-12 20:21     ` [NTG-context] " Mike Bird
2007-01-13  0:05       ` Norbert Preining
2007-01-13  0:23         ` Taco Hoekwater
2007-01-13  2:50           ` Sanjoy Mahajan [this message]
2007-01-13  8:52             ` Hans Hagen
2007-01-13 14:10               ` Sanjoy Mahajan
2007-01-14 18:56                 ` Hans Hagen
2007-01-13  9:03     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1H5YyM-0008MY-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=debian-tex-maint@lists.debian.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).