ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MPLibrabray "txt" broken!?
@ 2013-05-14 12:23 Keith J. Schultz
  2013-05-14 17:57 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Keith J. Schultz @ 2013-05-14 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2402 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 6058 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-15 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 12:23 MPLibrabray "txt" broken!? Keith J. Schultz
2013-05-14 17:57 ` Hans Hagen
2013-05-15  7:36   ` Keith J. Schultz
2013-05-15 10:15     ` Keith J. Schultz
2013-05-15 11:04       ` Hans Hagen
2013-05-15 14:23         ` Keith J. Schultz

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).