From: "Keith J. Schultz" <keithjschultz@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: MPLibrabray "txt" broken!?
Date: Tue, 14 May 2013 14:23:35 +0200 [thread overview]
Message-ID: <5D530638-CD82-4756-A842-7CFA967D3008@web.de> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2013-05-14 12:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 12:23 Keith J. Schultz [this message]
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
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=5D530638-CD82-4756-A842-7CFA967D3008@web.de \
--to=keithjschultz@web.de \
--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).