ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas Floeren" <thomas.floeren@boschung.com>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Problem with metapost textbackgrounds on Windows
Date: Mon, 17 Aug 2009 08:30:46 +0200	[thread overview]
Message-ID: <02c001ca1f04$41866f20$8614a8c0@boschung.local> (raw)
In-Reply-To: <f5d0b64b0908041103g759b57c1w944ec77f486ea8b9@mail.gmail.com>

There seems to be a typo in anch-pgr.mkII which prevents textbackgrounds from working:

line 654 '\enableparposition' should probably read '\enableparpositions'.

If you copy the following lines into your environment it should work:

\def\initializeparbackgrounds
  {\ifcase\totalnofparbackgrounds\else
     \enableparpositions
   \fi}

Regards
Thomas

 

________________________________

From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Kevin D. Robbins
Sent: Tuesday, August 04, 2009 8:03 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Problem with metapost textbackgrounds on Windows


Thanks, Mojca. 

Also, a further bit of investigation on Windows shows that building the example (saved in foo.tex) with "context foo.tex" or "texexec --lua foo.tex" produces the results I reported. But, building without lua using "texexec foo.tex" gives a different error but does produce the expected gray background behind the \startC ... \stopC block. Here is the error when building with "texexec foo.tex":

! Undefined control sequence.
\initializeparbackgrounds ...e \enableparposition
                                                  \fi
<inserted text> ...page \initializeparbackgrounds
                                                  \loadctxpreplist \checkref...

\doateverystarttext ->\the \everystarttext
                                           \global \everystarttext \emptytoks
\starttext ->\doateverystarttext
                                 \ifcase \textlevel \registerfileinfo [begin...
l.36 \starttext

Continuing the run just by hitting enter completes the build with the correct background drawn.

Kevin


On Tue, Aug 4, 2009 at 11:48 AM, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:


	On Tue, Aug 4, 2009 at 19:18, Kevin D. Robbins wrote:
	> Hello all,
	>
	> In the example below, I mean for a gray box with rounded corners to be
	> placed behind \startC ... \stopC blocks. This example compiles properly on
	> Linux with the latest ConTeXt beta and LuaTeX synced from the minimals just
	> minutes ago.
	>
	> On Windows, also updated from minimals this morning, I get the following
	> error and no text background:
	
	
	I'll try to make sure what LuaTeX version is used on Windows. At the
	time of synchronisation there was no luatex snapshot yet and it the
	meantime server name has been changed. (Nobody has complained so far,
	so I almost forgot about it.)
	
	Mojca
	___________________________________________________________________________________
	If your question is of interest to others as well, please add an entry to the Wiki!
	
	maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
	webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
	archive  : https://foundry.supelec.fr/projects/contextrev/
	wiki     : http://contextgarden.net
	___________________________________________________________________________________
	



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-08-17  6:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-04 17:18 Kevin D. Robbins
2009-08-04 17:48 ` Mojca Miklavec
2009-08-04 18:03   ` Kevin D. Robbins
2009-08-17  6:30     ` Thomas Floeren [this message]
2009-08-17  8:44       ` 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='02c001ca1f04$41866f20$8614a8c0@boschung.local' \
    --to=thomas.floeren@boschung.com \
    --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).