ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michal Kvasnicka <quasar@econ.muni.cz>
Subject: Re: A change in textext Metafun maco?
Date: Thu, 27 Mar 2003 12:16:34 +0100	[thread overview]
Message-ID: <200303271216.34646.quasar@econ.muni.cz> (raw)
In-Reply-To: <5.1.0.14.1.20030326143910.030ee480@server-1>

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Good evening.

I can't find the reason of the bug. So I send a minimal test file. The problem 
is, that the frame has title "unkonwn", not "Example" as I expected. Many 
thanks for your help. 

Michal Kvasnicka

[-- Attachment #2: smalltest.tex --]
[-- Type: text/x-tex, Size: 1708 bytes --]

% interface=english, output=pdf

\startMPinclusions
  verbatimtex
    \definefontsynonym [Serif]            [cmr10]
    \definefontsynonym [SerifBold]        [cmbx10]
    \definefontsynonym [SerifItalic]      [cmti10]
    \definefontsynonym [SerifSlanted]     [cmti10]
    \definefontsynonym [SerifBoldItalic]  [cmbxti10]
    \definefontsynonym [SerifBoldSlanted] [cmbxti10]
    \definefontsynonym [SerifCaps]        [cmr10]
    \definefontsynonym [SansItalic]       [txsssl8z]
   \definebodyfont [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt]
        [rm] [default]
   \setupbodyfont[10pt]
   \setupinterlinespace[line=13pt]
 etex
\stopMPinclusions

\startuseMPgraphic{FunnyFrame} 
  picture pic; 
  numeric w, h, o; 
  pic:=textext.rt(\MPstring{FunnyFrame}); 
  w:=\overlaywidth;
  h:=\overlayheight;
  o:=BodyFontSize; 
  pic:=pic shifted (1.5o,h-ypart center pic); 
  fill boundingbox pic withcolor white;
  draw pic; 
  drawoptions (withpen pencircle scaled 1pt);% withcolor .625red); 
  draw (1.5o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner pic,h);
  draw boundingbox pic; 
  setbounds currentpicture to unitsquare xyscaled(w,h); 
\stopuseMPgraphic

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 
\defineframedtext[FunnyText]
  [width=broad,height=fit,before={\blank[line]},after={\blank[line]},
   frame=off,background=FunnyFrame]
\def\FrameTitle#1{%
  \setMPtext{FunnyFrame}{\hbox spread 1em{\hss\ss\bfx\strut#1\hss}}}
\setMPtext{FunnyFrame}{}

\def\startexample{%
  \FrameTitle{Example}
  \startFunnyText
}
\def\stopexample{%
  \stopFunnyText
}



\starttext
\input tufte
\input tufte
\input tufte

\startexample
\input tufte
\stopexample

\input tufte
\input tufte
\input tufte
\stoptext

  reply	other threads:[~2003-03-27 11:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 11:16 Michal Kvasnicka
2003-03-26 13:40 ` Hans Hagen
2003-03-27 11:16   ` Michal Kvasnicka [this message]
2003-03-27 11:51     ` Patrick Gundlach
2003-03-27 12:28       ` Jens-Uwe Morawski
2003-03-27 13:18       ` Michal Kvasnicka
2003-03-27 13:27         ` Patrick Gundlach

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=200303271216.34646.quasar@econ.muni.cz \
    --to=quasar@econ.muni.cz \
    --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).