Hi All, Hans, I want to use build_parshape and shapetext with the latest standalone ConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int: english/english with the Example below I get a small box with the top part of a T in it. Interresting enough the example works with the TexLive 2012 version! Running with latest standalone the following files are created: -rw-r--r-- 1 staff 14410 14 Mai 13:59 test2.log -rw-r--r-- 1 staff 5132 14 Mai 13:59 test2.pdf -rw-r--r-- 1 staff 634 14 Mai 13:59 test2.synctex.gz -rw-r--r--@ 1 staff 899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 8413 14 Mai 13:59 test2.tuc Using MkIV from TeXLive 2012 the following files are created: -rw-r--r-- 1 staff 561 14 Mai 14:09 test2-mpgraph.mpd -rw-r--r-- 1 staff 19404 14 Mai 14:09 test2.log -rw-r--r-- 1 staff 9638 14 Mai 14:09 test2.pdf -rw-r--r-- 1 staff 3237 14 Mai 14:09 test2.synctex.gz -rw-r--r--@ 1 staff 899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 6079 14 Mai 14:09 test2.tuc And all is well! Goofy as I am I tried the standalone again, this works only partially because the text is not aligned properly. How can it be the file test2-mograph.mpd was used from the TexLive 2012 version! So something is astray! I do know that we are using a newer Metapost, but I assume the problem is the library or how the temporary files are generated or used. Any help would be nice. regards Keith. \useMPlibrary[txt] \startuseMPgraphic{shape} % Shape of the paragraph path p ; p := ((0,1)..(-1,0)..(1,0)--cycle) scaled 5cm ; build_parshape ( p, % shape path .5*\baselinedistance, % offset .5*\baselinedistance, % x offset .5*\baselinedistance, % y offset \baselinedistance, % distance between lines \strutheight, % height of a line \strutdepth, % depth of a line \strutheight % height of the first line ) ; % For visualization purposes only draw p ; \stopuseMPgraphic % For visualization purposes only \defineoverlay[shape][\useMPgraphic{shape}] \setupshapetexts% [bodyfont=10pt] \starttext \startshapetext[shape] \input knuth \endgraf \stopshapetext % The \type{background} is set only to visualize the parshape \startTEXpage[background=shape,offset=2mm] {\getshapetext} \stopTEXpage \stoptext
On 5/14/2013 2:23 PM, Keith J. Schultz wrote:
Hi All, Hans,
I want to use build_parshape and shapetext with the latest standalone ConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int: english/english
with the Example below I get a small box with the top part of a T in it.
Interresting enough the example works with the TexLive 2012 version!
Running with latest standalone the following files are created: -rw-r--r-- 1 staff 14410 14 Mai 13:59 test2.log -rw-r--r-- 1 staff 5132 14 Mai 13:59 test2.pdf -rw-r--r-- 1 staff 634 14 Mai 13:59 test2.synctex.gz -rw-r--r--@ 1 staff 899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 8413 14 Mai 13:59 test2.tuc
Using MkIV from TeXLive 2012 the following files are created: -rw-r--r-- 1 staff 561 14 Mai 14:09 test2-mpgraph.mpd -rw-r--r-- 1 staff 19404 14 Mai 14:09 test2.log -rw-r--r-- 1 staff 9638 14 Mai 14:09 test2.pdf -rw-r--r-- 1 staff 3237 14 Mai 14:09 test2.synctex.gz -rw-r--r--@ 1 staff 899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 6079 14 Mai 14:09 test2.tuc
And all is well!
Goofy as I am I tried the standalone again, this works only partially because the text is not aligned properly. How can it be the file test2-mograph.mpd was used from the TexLive 2012 version!
So something is astray! I do know that we are using a newer Metapost, but I assume the problem is the library or how the temporary files are generated or used.
some kind of initialization issue .. i uploaded a fix (crossed fingers) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Hans,
Am 14.05.2013 um 19:57 schrieb Hans Hagen
On 5/14/2013 2:23 PM, Keith J. Schultz wrote:
Hi All, Hans,
I want to use build_parshape and shapetext with the latest standalone ConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int: english/english
with the Example below I get a small box with the top part of a T in it.
Interresting enough the example works with the TexLive 2012 version! [snip, snip]
So something is astray! I do know that we are using a newer Metapost, but I assume the problem is the library or how the temporary files are generated or used.
some kind of initialization issue .. i uploaded a fix (crossed fingers)
Well, the fix work in a way , yet it has introduced a new problem, or revealed an unnoticed one. The text is now display in the shape, yet there is no drawing preformed! The draw of the path is no preformed. It is even worst. Metapost seems to be doing no drawing at all, even in over overlays! The all are related to a similar error : metapost > initializing number mode 'scaled' metapost > output file 'mpout.log', mode 'w', ftype 'log' metapost > output file 'test2-mpgraph.mpd', mode 'w', ftype 0 metapost > output file 'test2-mpgraph.mpd', mode 'w', ftype 0 metapost > error: (/Users/quayjay/context/tex/texmf-context/metapost/context/base/mp-text.mpiv)
PageFraction false ! Equation cannot be performed (numeric=boolean). <to be read again> : <*> ...0pt; VSize:=597.51323pt; PageFraction:=0>1: (1-1)/(0-1)else:1fi; defau...
! Extra tokens will be flushed. <to be read again> : <*> ...0pt; VSize:=597.51323pt; PageFraction:=0>1: (1-1)/(0-1)else:1fi; defau... I have attached the complete log file and the source. The error occurs, also, when the graphic is framed and put into a picture environment. I had deleted the standalone version and reinstalled with: sh ./first-setup.sh --modules=all --engine=luatex I have running a MacBook Pro 17" with OSX 10.8.3 I will also attach the result(test2.pdf) and the result from TexLive 2012(expected.pdf). regards Keith.
Hi Hans, Everybody,
Am 15.05.2013 um 09:36 schrieb "Keith J. Schultz"
Hi Hans,
Am 14.05.2013 um 19:57 schrieb Hans Hagen
: [snip, snip]
some kind of initialization issue .. i uploaded a fix (crossed fingers)
Well, the fix work in a way , yet it has introduced a new problem, or revealed an unnoticed one.
The text is now display in the shape, yet there is no drawing preformed! The draw of the path is no preformed. It is even worst. Metapost seems to be doing no drawing at all, even in over overlays! The all are related to a similar error : metapost > initializing number mode 'scaled' metapost > output file 'mpout.log', mode 'w', ftype 'log' metapost > output file 'test2-mpgraph.mpd', mode 'w', ftype 0 metapost > output file 'test2-mpgraph.mpd', mode 'w', ftype 0 metapost > error: (/Users/quayjay/context/tex/texmf-context/metapost/context/base/mp-text.mpiv)
PageFraction false ! Equation cannot be performed (numeric=boolean). <to be read again> : <*> ...0pt; VSize:=597.51323pt; PageFraction:=0>1: (1-1)/(0-1)else:1fi; defau...
I believe the source of this is in meta-ini.mkiv: \startMPinitializations PageFraction:=\lastpage>1:(\realfolio-1)/(\lastpage-1)else:1fi; \stopMPinitializations Should this not be: \startMPinitializations PageFraction:=if \lastpage>1:(\realfolio-1)/(\lastpage-1)else:1fi; \stopMPinitializations O.K. just rebuilt formats! Works. Attaching new meta-ini.mkiv Thanx! reagrds Keith.
On 5/15/2013 12:15 PM, Keith J. Schultz wrote:
O.K. just rebuilt formats!
i had that already fixed last night so you probably missed an upload Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Hans,
I had updated around 2100 last night.
Did not catch your upload after 2300.
Sorry.
Am 15.05.2013 um 13:04 schrieb Hans Hagen
On 5/15/2013 12:15 PM, Keith J. Schultz wrote:
O.K. just rebuilt formats!
i had that already fixed last night so you probably missed an upload
Hans
participants (2)
-
Hans Hagen
-
Keith J. Schultz