* positiongraphics @ 2006-07-08 18:49 Hans van der Meer 2006-07-08 21:16 ` positiongraphics Hans van der Meer 2006-07-11 15:08 ` positiongraphics Hans Hagen 0 siblings, 2 replies; 7+ messages in thread From: Hans van der Meer @ 2006-07-08 18:49 UTC (permalink / raw) First everything is OK and then suddenly I start getting errors in (metafun) position graphics: ! Missing `)' has been inserted. <to be read again> ; l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); The mpgraph.mp file says at this point: PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, 72.9016pt); shifted (609.52148pt,476.59792pt));; What is happening? Hans van der Meer ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-08 18:49 positiongraphics Hans van der Meer @ 2006-07-08 21:16 ` Hans van der Meer 2006-07-11 13:13 ` positiongraphics Taco Hoekwater 2006-07-11 15:08 ` positiongraphics Hans Hagen 1 sibling, 1 reply; 7+ messages in thread From: Hans van der Meer @ 2006-07-08 21:16 UTC (permalink / raw) I have some further information on the problem below. It turns out not something with position graphics. Instead it is a rogue footnote (that is being colored). It seems that this happens only when the footnote is at a particular point on the page; it is therefore next to impossible to give a minimal example. With some extra thought what happens seems to be this. > PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, > 72.9016pt); The area above is made and somehow finished with a semicolon. Then the next part, the shift is put out: > shifted (609.52148pt,476.59792pt));; Together making a statement which is correct except for the intervening semicolon. As it occurs only at specificly placed footnotes, it looks like a subtle flaw in the footnote background generation. I would be happy for a solution, because otherwise typesetting text with footnotes could become a nightmare. Hans van der Meer On Jul 8, 2006, at 20:49, Hans van der Meer wrote: > First everything is OK and then suddenly I start getting errors in > (metafun) position graphics: > > ! Missing `)' has been inserted. > <to be read again> > ; > l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); > > The mpgraph.mp file says at this point: > > PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, > 72.9016pt); > shifted (609.52148pt,476.59792pt));; > > What is happening? > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-08 21:16 ` positiongraphics Hans van der Meer @ 2006-07-11 13:13 ` Taco Hoekwater 0 siblings, 0 replies; 7+ messages in thread From: Taco Hoekwater @ 2006-07-11 13:13 UTC (permalink / raw) Hans van der Meer wrote: > I have some further information on the problem below. > It turns out not something with position graphics. > Instead it is a rogue footnote (that is being colored). > It seems that this happens only when the footnote is at a particular > point on the page; > it is therefore next to impossible to give a minimal example. How large is it? Iff below 5MB, just email me directly. Taco ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-08 18:49 positiongraphics Hans van der Meer 2006-07-08 21:16 ` positiongraphics Hans van der Meer @ 2006-07-11 15:08 ` Hans Hagen 2006-07-11 19:43 ` positiongraphics Hans van der Meer 1 sibling, 1 reply; 7+ messages in thread From: Hans Hagen @ 2006-07-11 15:08 UTC (permalink / raw) Hans van der Meer wrote: > First everything is OK and then suddenly I start getting errors in > (metafun) position graphics: > > ! Missing `)' has been inserted. > <to be read again> > ; > l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); > > The mpgraph.mp file says at this point: > > PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, > 72.9016pt); > shifted (609.52148pt,476.59792pt));; > > What is happening? > can you make a minimal failing example? looks like an ; too much Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-11 15:08 ` positiongraphics Hans Hagen @ 2006-07-11 19:43 ` Hans van der Meer 2006-07-12 8:21 ` positiongraphics Taco Hoekwater 0 siblings, 1 reply; 7+ messages in thread From: Hans van der Meer @ 2006-07-11 19:43 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 310 bytes --] I send the offending mpgraph.mp file. It has ;'s all over. There are so many ;;'s and even some ;;;'s that I am tempted to think that one of the translation scripts is the culprit, adding a ; per newline maybe? I am sorry not having taken a look into the ruby scripts, but my ruby knowledge is nihil. [-- Attachment #2: syllabus-s-mpgraph.mp --] [-- Type: application/octet-stream, Size: 5839 bytes --] % runtime graphics of job "syllabus-s" mpgraph:=1; randomseed:=996;; _special_div_ := 1000; ; if unknown context_tool: input mp-tool; fi;; if unknown context_spec: input mp-spec; fi;; if unknown context_grph: input mp-grph; fi;; graphictextformat:="context";; graphictextdirective "\global \loadfontfileoncetrue \usetypescript [luc]\setupbodyfont [luc,sans,11pt] ";; string contextversion;; contextversion:="2006.06.09 13:05";; if not known _data_prefix_:; string _data_prefix_,_data_suffix_;; fi;; _data_prefix_:="syllabus-s-mpd-";; _data_suffix_:=".mpd";; boolean collapse_data; collapse_data:=true;; _data_suffix_:=".mpd"; ; color OverlayColor,OverlayLineColor;; def initialize_form_numbers =; do_initialize_numbers;; enddef;; vardef ForegroundBox =; unitsquare xysized(HSize,VSize); enddef ;; vardef PageFraction =; if 9>1: (7-1)/(9-1) else: 1 fi; enddef ;; if unknown context_page: input mp-page; fi;; boolean PageStateAvailable,OnRightPage,InPageBody;; PageStateAvailable:=true;; path PlainTextArea;; if unknown context_core : input mp-core.mp ; fi ;; ;; \input custom def init_pens = pensize := 2pt; pickup pensquare scaled pensize; squarePen := savepen; pickup pensquare scaled 0.5pensize; smallsquarePen := savepen; pickup pencircle scaled 0.5pensize; smallcirclePen := savepen; pickup pencircle scaled pensize; circlePen := savepen; enddef; def frame_ (expr width, height, gap, org, pn) = clearpen; fill block (width+2gap,height+2gap) shifted (org-(gap,gap)) withcolor (scaledrgb(1,.894118,.882353,1)); if known pn: pickup pn; if penX > 0: draw block (width+2gap,height+2gap) shifted (org-(gap,gap)) withcolor transparent (1,0,(scaledrgb(0,1,0,1))); fi fi enddef; def FrameO (expr width, height, gap, org) = frame_ (width, height, gap, org, framePen) enddef; def Frame (expr width, height, gap) = FrameO(width, height, gap, origin) enddef; def frameO (expr width, height, gap, org) = frame_ (width, height, gap, org, currentpen) enddef; def frame (expr width, height, gap) = frameO (width, height, gap, origin) enddef; framePenSize := 0; if framePenSize = 0: clearpen; else: pickup pensquare scaled framePenSize; fi framePen := savepen; defineDefaultColors((scaledrgb(.184314,.309804,.309804,1)), (scaledrgb(1, 1,.941176,1)), (scaledrgb(.184314,.309804,.309804,1)), (scaledrgb(1,.894118,.882353,1))); defineColors((scaledrgb(.184314,.309804,.309804,1)), (scaledrgb(1,.972549,.862745,1)), (scaledrgb(.184314,.309804,.309804,1)), (scaledrgb(1,.894118,.882353,1)), AltFill); extra_beginfig := extra_beginfig & "resetDefaultColors " & "init_pens "; def xorop (expr c, radius) = Block.oval (c, radius, radius, "\bf +"); enddef; def addop (expr c, radius) = Block.rectangle (c, radius, radius, "\bf +"); enddef; ; defaultfont:="hlhr8y";; defaultscale:=11.0pt/10pt;; cmykcolors:=true;; spotcolors:=true;; OverlayWidth:=609.52148pt ;; OverlayHeight:=476.59792pt ;; OverlayDepth:=476.59792pt ;; OverlayColor:=(scaledrgb(0.94,.84706,.8647,1));; OverlayLineWidth:=0.4pt ;; OverlayLineColor:=(0,0,0);; BaseLineSkip:=16.32397pt;; LineHeight:=16.32397pt;; BodyFontSize:=11.0pt;; TopSkip:=11.75328pt;; StrutHeight:=11.75328pt;; StrutDepth:=4.57068pt;; CurrentWidth:=609.52148pt;; CurrentHeight:=476.59792pt;; EmWidth:=11.0pt;; ExHeight:=5.82999pt;; PageNumber:=6;; RealPageNumber:=7;; LastPageNumber:= lastpage;; prologues:=2;; HSize:=609.52148pt;; VSize:=476.59792pt;; OnRightPage:=true;; InPageBody:=true ;; def LoadPageState =; OnRightPage:=true;; OnOddPage:=true;; RealPageNumber:=7;; PageNumber:=6;; NOfPages:=9;; PaperHeight:=600.0pt;; PaperWidth:=800.0pt;; PrintPaperHeight:=600.0pt;; PrintPaperWidth:=800.0pt;; TopSpace:=50.50049pt;; BottomSpace:=44.44885pt;; BackSpace:=95.23926pt;; CutSpace:=95.23926pt;; MakeupHeight:=505.05066pt;; MakeupWidth:=609.52148pt;; TopHeight:=0.0pt;; TopDistance:=0.0pt;; HeaderHeight:=0.0pt;; HeaderDistance:=0.0pt;; TextHeight:=476.59792pt;; FooterDistance:=0.0pt;; FooterHeight:=28.45274pt;; BottomDistance:=0.0pt;; BottomHeight:=0.0pt;; LeftEdgeWidth:=0.0pt;; LeftEdgeDistance:=0.0pt;; LeftMarginWidth:=85.35826pt;; LeftMarginDistance:=16.06445pt;; TextWidth:=609.52148pt;; RightMarginDistance:=16.06445pt;; RightMarginWidth:=85.35826pt;; RightEdgeDistance:=0.0pt;; RightEdgeWidth:=0.0pt;; InnerMarginDistance:=16.06445pt;; InnerMarginWidth:=85.35826pt;; OuterMarginDistance:=16.06445pt;; OuterMarginWidth:=85.35826pt;; InnerEdgeDistance:=0.0pt;; InnerEdgeWidth:=0.0pt;; OuterEdgeDistance:=0.0pt;; OuterEdgeWidth:=0.0pt;; PageOffset:=0.0pt;; PageDepth:=0.0pt;; LayoutColumns:=1;; LayoutColumnDistance:=0.0pt;; LayoutColumnWidth:=609.52148pt;; enddef;; ResetTextAreas;; RegisterTextArea(95.23926pt,72.9016pt,609.52148pt,476.59792pt,4.57068pt);;; SaveTextAreas;; ResetTextAreas;; RegisterTextArea(95.23926pt,187.82343pt,609.52148pt,92.43059pt,58.32957pt);;; ;; PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt,72.9016pt); shifted (609.52148pt,476.59792pt));; local_multi_par_area:=false;; ;; let mprunend = end ; beginfig(1); verbatimtex \global \loadfontfileoncetrue \usetypescript [luc]\setupbodyfont [luc,sans,11pt] etex; boxgridtype := 0 ;; boxlinetype := 0 ;; boxfilltype := 1 ;; boxgridcolor := (scaledrgb(0,0,1,1)) ;; boxlinecolor := (scaledrgb(0,0,1,1)) ;; boxfillcolor := (scaledrgb(.901961,.901961,.980392,1)) ;; boxfilloffset := 0.0pt ;; boxlinewidth := 0.4pt ;; boxgridwidth := 0.4pt ;; boxlineradius := 5.5pt ;; ; ; prepare_multi_pars(7,223.74072pt,428.98647pt,0.0pt,11.75328pt,4.57068pt,7,322.86159pt,428.98647pt,0.0pt,11.75328pt,4.57068pt,0,0pt,0pt,0pt,0pt,0pt, 0,0pt,0pt,0pt,0pt,0pt,0,0,0,0,0,0) ; relocate_multipars(-(95.23926pt,72.9016pt)) ; draw_multi_pars ;; ; ; endfig; let end=mprunend; end. end [-- Attachment #3: Type: text/plain, Size: 616 bytes --] Hans van der Meer On Jul 11, 2006, at 17:08, Hans Hagen wrote: > Hans van der Meer wrote: >> First everything is OK and then suddenly I start getting errors in >> (metafun) position graphics: >> >> ! Missing `)' has been inserted. >> <to be read again> >> ; >> l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); >> >> The mpgraph.mp file says at this point: >> >> PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, >> 72.9016pt); >> shifted (609.52148pt,476.59792pt));; >> >> What is happening? >> > can you make a minimal failing example? looks like an ; too much > > Hans > > [-- Attachment #4: Type: text/plain, Size: 139 bytes --] _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-11 19:43 ` positiongraphics Hans van der Meer @ 2006-07-12 8:21 ` Taco Hoekwater 2006-07-12 19:52 ` positiongraphics Hans van der Meer 0 siblings, 1 reply; 7+ messages in thread From: Taco Hoekwater @ 2006-07-12 8:21 UTC (permalink / raw) Hans van der Meer wrote: > I send the offending mpgraph.mp file. It has ;'s all over. There are so > many ;;'s and even some ;;;'s that I am tempted to think that one of > the translation scripts is the culprit, adding a ; per newline maybe? I > am sorry not having taken a look into the ruby scripts, but my ruby > knowledge is nihil. The tex input file would be more useful. The mpgraph file is autogenerated from that, after all. Taco ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: positiongraphics 2006-07-12 8:21 ` positiongraphics Taco Hoekwater @ 2006-07-12 19:52 ` Hans van der Meer 0 siblings, 0 replies; 7+ messages in thread From: Hans van der Meer @ 2006-07-12 19:52 UTC (permalink / raw) On Jul 12, 2006, at 10:21, Taco Hoekwater wrote: > > > Hans van der Meer wrote: >> I send the offending mpgraph.mp file. It has ;'s all over. There >> are so >> many ;;'s and even some ;;;'s that I am tempted to think that one of >> the translation scripts is the culprit, adding a ; per newline >> maybe? I >> am sorry not having taken a look into the ruby scripts, but my ruby >> knowledge is nihil. > > The tex input file would be more useful. The mpgraph file is > autogenerated from that, after all. I am afraid that isn't possible just now. The problem seems very specific in the placing of the footnote (narrow margin of error) and after editing my current text it has vanished. It looks like one of those erratic problems that tend to occur mostly when one is in a hurry. Seeing the value of the shift: > PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, > 72.9016pt); > shifted (609.52148pt,476.59792pt));; and considering I am using pages with a reduced height, I suspect this is just about equivalent to 1 \textheight. But the point is that inside a metapost statement "boundingbox ... shifted ..." a ";" has appeared and that cannot be good. Sorry not having a minimal example at hand at the moment. When less pressed for time I will do some experiments with changing pagefill (I guess best done by placing rules of varying height). Surely I will contact again if I found such an example. > > Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context Hans van der Meer ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-12 19:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-07-08 18:49 positiongraphics Hans van der Meer 2006-07-08 21:16 ` positiongraphics Hans van der Meer 2006-07-11 13:13 ` positiongraphics Taco Hoekwater 2006-07-11 15:08 ` positiongraphics Hans Hagen 2006-07-11 19:43 ` positiongraphics Hans van der Meer 2006-07-12 8:21 ` positiongraphics Taco Hoekwater 2006-07-12 19:52 ` positiongraphics Hans van der Meer
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).