ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta
@ 2014-11-15 11:18 Fabrice Couvreur
  2014-11-15 16:41 ` Rik Kabel
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2014-11-15 11:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,
Macro written by Hans does not work.
Best regards,
Fabrice

% macros=mkvi
\starttext

\starttexdefinition MyOtherHeader #where #day #month #year #title

\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}
 path p;
 p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt;
 fill p withcolor white ;
 draw p withpen pencircle scaled 2pt withcolor 0.625white ;
 picture d ;
 d :=
textext("\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad")
 shifted .5[ulcorner p,urcorner p];
 fill boundingbox d withcolor white ; draw d ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\framed [
        width=\hsize,
        height=5em,
        foregroundstyle=\itx,
        Background=whatever,
        frame=off,
        ]
           {#title
        }

\stoptexdefinition

\MyOtherHeader{Premières STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Second
degré : résolution d'une équation du second degré}}

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1702 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] 3+ messages in thread

* Re: Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta
  2014-11-15 11:18 Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta Fabrice Couvreur
@ 2014-11-15 16:41 ` Rik Kabel
  2014-11-16 11:24   ` Fabrice
  0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel @ 2014-11-15 16:41 UTC (permalink / raw)
  To: ntg-context


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

On 2014-11-15 06:18, Fabrice Couvreur wrote:
> Background=whatever,


Please change B to b and retry.

-- 
rik

[-- Attachment #1.2: Type: text/html, Size: 684 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] 3+ messages in thread

* Re: Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta
  2014-11-15 16:41 ` Rik Kabel
@ 2014-11-16 11:24   ` Fabrice
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2014-11-16 11:24 UTC (permalink / raw)
  To: ntg-context

HiRik,
Sorry, I do not know how I could replace "b" with "B"!
I did not think to check because this macro worked very well so far
Thank you,
Fabrice
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2014-11-16 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15 11:18 Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta Fabrice Couvreur
2014-11-15 16:41 ` Rik Kabel
2014-11-16 11:24   ` Fabrice

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