* Use a predefined command in a new environment
@ 2014-04-29 18:16 Fabrice
2014-04-29 20:55 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice @ 2014-04-29 18:16 UTC (permalink / raw)
To: ntg-context
Hello,
Further to the discussion topic "Numbering in a frame with a new
environment"
I want to use ACFRAME (thanks Wolfgang) command in a new environment.
Is this the best way to achieve this ?
thank you,
Fabrice
> \defineframed
> [ACFRAME]
> [frame=off,
> width=fit,
> align=flushleft,
> location=low,
> background=color,
> backgroundcolor=lightgray]
>
>
> \setupbodyfont[pagella,11pt]
>
> \definetextbackground
> [definitionframe]
> [command=\ACFRAME,
> backgroundoffset=.25cm,
> offset=.5cm,
> frame=off,
> location=paragraph,
> frame=off,]
>
>
>
> \defineenumeration
> [defi]
> [text=Définition,
> before={\startdefinitionframe},
> after={\stopdefinitionframe},
> style=italic,
> stopper=,
> ]
> \starttext
>
> \startdefi
> \input knuth
> \stopdefi
> \stoptext
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Use a predefined command in a new environment
2014-04-29 18:16 Use a predefined command in a new environment Fabrice
@ 2014-04-29 20:55 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-04-29 20:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.04.2014 um 20:16 schrieb Fabrice <couvreur.fabrice@wanadoo.fr>:
> Hello,
> Further to the discussion topic "Numbering in a frame with a new environment"
> I want to use ACFRAME (thanks Wolfgang) command in a new environment.
> Is this the best way to achieve this ?
Take a look into the metafun manual, it has a few examples for framed texts
where the the enumeration title sits in a separate frame.
Wolfgang
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2014-04-29 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-29 18:16 Use a predefined command in a new environment Fabrice
2014-04-29 20:55 ` Wolfgang Schuster
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).