Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Wolfgang Schuster
Ursula Hermann schrieb am 28.02.19 um 11:43: Dear List! I have the following example. I would like to have two columns that are in the distance small. So I have tried: \setuppapersize[A5] \startcolumns \defineframed    [tightframed][width=5cm,width.1\textwidth,align=right] \tightframed

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Marco Patzer
olumns [distance=2cm] > So I have tried: > > \setuppapersize[A5] > \startcolumns > \defineframed >[tightframed][width=5cm,width.1\textwidth,align=right] 1. Usually you don't define stuff in the main text. That's what the setup area (before \starttext) if for. 2. wi

[NTG-context] Distance between two Columns

2019-02-28 Thread Ursula Hermann
Dear List! I have the following example. I would like to have two columns that are in the distance small. So I have tried: \setuppapersize[A5] \startcolumns \defineframed [tightframed][width=5cm,width.1\textwidth,align=right] \tightframed{Small} \column \tightframed{A really really long line

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
t; >[header] > >[text] > >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
> > [frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \startset

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
off, > topframe=off, > bottomframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > > \startsetups [headertext] > > \setupheadertexts >[{ > \startfra

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o

[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
code? %%%%%% \defineframed [MyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{MyFrame} picture p ; numeric o ; path a, b ; pair c ; %p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Theorem]

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
ethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
  \mainlanguage[fr]   \setupbackgrounds     [header]     [text]     [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt]   \defineframed    [headerframed]    [frame=off,     height=fit,     width=fit]    \startsetups [headertext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
mframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > >\startsetups [headertext] > \setupheadertexts > [{ > \startframed [headerfr

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset=0.5em, style=\ss, toffset=.25\lineheight,

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
command, say \defineframed \setupframed ... the concepts are the same (only a few commands for practical reasons behave different) And lately I often see here that setups are named like "foo:bar". What is the meaning of the double colon? variants (same command, different options) or

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Fabrice Couvreur
h frames). > \definecolor[MyColorA][s=0.8784] > \definecolor[MyColorB][m=0.27,y=1] > > \defineframed >[FrameTitle] >[frame=off, > foregroundstyle=\bfx\ss, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > location=dept

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Hans Hagen
that (if that is possible with frames). \definecolor[MyColorA][s=0.8784] \definecolor[MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Wolfgang Schuster
the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text={Exercice}, headstyle={\bf

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Alan Braslau
offset= On Tue, 7 Aug 2018 11:55:29 +0200 Fabrice Couvreur wrote: > Hello, > I find that the text is near the bottom line of the frame, how to add > a little space ? > Thanks > Fabrice > > \defineframed > [ACFRAME] > [frame=on, >width=fit, >a

[NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Fabrice Couvreur
Hello, I find that the text is near the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
le here I get the correct behaviour: the text is > not in bold face. > > Best regards: OK > >> On 15 Jul 2018, at 23:39, Fabrice Couvreur > <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Good evening, >> In the code below, why is the text in bold ? &g

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
in bold face. > > Best regards: OK > > On 15 Jul 2018, at 23:39, Fabrice Couvreur > wrote: > > Good evening, > In the code below, why is the text in bold ? > Thank you > Fabrice > > \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
> \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=

Re: [NTG-context] Strange behavior with font pagella

2018-07-15 Thread Rik Kabel
On 7/15/2018 17:39, Fabrice Couvreur wrote: \setupbodyfont[pagella,11pt] \defineframed    [ACFRAME]    [frame=off,     offset=0pt,     location=low,     width=\struttotal,     background=color,     backgroundcolor=black,     foregroundcolor=white,     forgroundstyle=bold] \defineprocessor

[NTG-context] Strange behavior with font pagella

2018-07-15 Thread Fabrice Couvreur
Good evening, In the code below, why is the text in bold ? Thank you Fabrice \setupbodyfont[pagella,11pt] \defineframed [ACFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white

[NTG-context] Compile problem after update

2018-07-15 Thread Fabrice Couvreur
, rulethickness=2pt] \defineframed[headerframed] [frame=off, location=depth, bottomoffset=\lineheight, align=middle, width=fit] \setupheadertexts[\headerframed{\ss\sc\bf\red Contrôle n\high{o}\,1

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 20 May 2018 08:02:46 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: \definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idr

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Wolfgang Schuster
\definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom] \starttext \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stoptext Wolfgang

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
EXpage === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \convertedcounter[MQT]\par

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
page > === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \converte

Re: [NTG-context] Framed & before/after

2018-03-22 Thread Wolfgang Schuster
Procházka Lukáš Ing. <mailto:l...@pontex.cz> 21. März 2018 um 14:24 Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or:http://wiki.contextgarden.net/Command/setupframedtexts ? In the following e

Re: [NTG-context] Framed & before/after

2018-03-22 Thread Aditya Mahajan
On Thu, 22 Mar 2018, Henri Menke wrote: On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote: Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or: http://wiki.contextgarden.net/Command

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Henri Menke
On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote: > Hello, > > does \framed recognize before and after keys, as mentioned here: > > http://wiki.contextgarden.net/Command/defineframed > or: http://wiki.contextgarden.net/Command/setupframedtexts ? > >

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
On 03/21/2018 02:24 PM, Procházka Lukáš Ing. wrote: > Hello, > > does \framed recognize before and after keys, as mentioned here: > > http://wiki.contextgarden.net/Command/defineframed > or: http://wiki.contextgarden.net/Command/setupframedtexts ? Hi Lukáš, \fr

[NTG-context] Framed & before/after

2018-03-21 Thread Procházka Lukáš Ing .
Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or: http://wiki.contextgarden.net/Command/setupframedtexts ? In the following example it seems both keys are ignored: \defineframed[AddressBox][before

[NTG-context] Scale figure to fill a box

2018-02-04 Thread Wolfgang Schuster
the image extends outside of the borders of the frame. A option to clip parts – which can be disabled – of the image which are outside of the frame would be a nice extension to this command (e.g. in case you want a image in a table cell). \setupexternalfigure[location=default] \defineframed

Re: [NTG-context] Question about an environment

2018-01-31 Thread Fabrice Couvreur
. 2. 3. Thank you. Fabrice 2018-01-28 22:54 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hello, > How to make the first item on the baseline of the numbering as in the > first exercise ? > Thanks. > Fabrice > > \defineframed > [ACFRAME] &g

[NTG-context] Question about an environment

2018-01-28 Thread Fabrice Couvreur
Hello, How to make the first item on the baseline of the numbering as in the first exercise ? Thanks. Fabrice \defineframed [ACFRAME] [frame=off, boffset=0pt, width=fit, align=flushleft, location=low, background=color, backgroundcolor=MyColorA] \defineframed [EXFRAME

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
expected and one at the beginning of the framed text which I don’t want. One more thing, is there no way to show the number of the Definition? you can download a beta and try \defineenumeration[Theorem] [alternative=empty, before=\startMyText, after=\stopMyText] \defineframed

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
of the framed text which I don’t want. One more thing, is there no way to show the number of the Definition? Thanks again. Best regards, Dalyoung %% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed [FunnyFramed] [frame

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
[\??constructionrenderings:\v!empty] \noindent \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups \protect % till here \defineenumeration[Theorem] [alternative=empty, before=\startMyText, after=\stopMyText] \defineframed [MyFramed] [frame=off, loffset

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
of Theorems: \defineframed [FunnyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a, b ; pair c ; p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Th

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
}[] shows ?? instead of numbers while \in{Exam}[] shows correctly. Is there a way to show the numbers correctly? Thank you for reading. Best regards, Dalyoung %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
> > Dalyoung > > %% first method > %1. use \enumerationparameter{text} and add “text=Theorem” in > \defineenumeration. > %%% > \defineframed >   [FunnyFramed] >   [frame=off, >    loffset=1ex, >    roffset=1ex, >    foregroundstyle=\ssbf]

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
the similar problem. Thanks Wolfgang again. Best regards, Dalyoung %% first method %1. use \enumerationparameter{text} and add “text=Theorem” in \defineenumeration. %%% \defineframed [FunnyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
=] \setupfootertexts[\tfxx Page \pagenumber\,/\,\lastpage][] \definecolor[darkgray] [s=.25] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt, ] \defineframed[headerframed] [ frame=off, % For visualization set

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
t; >>> # >>> MyLayout.tex >>> # >>> >>> % macros=mkvi >>> >>> \startenvironment MyLayout >>> >>> \setuplayout >>>[header=3\lineheight, >>> headerdistance=\lineheight] >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik
aderdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed[headerframed] [

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
;> MyLayout.tex >>> # >>> >>> % macros=mkvi >>> >>> \startenvironment MyLayout >>> >>> \setuplayout >>>[header=3\lineheight, >>> headerdistance=\lineheight] >>> >>> \setupbackgro

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
e >> >> # >> MyLayout.tex >> # >> >> % macros=mkvi >> >> \startenvironment MyLayout >> >> \setuplayout >>[header=3\lineheight, >> headerdistance=\lineheight] >> >> \setupbackg

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
out >[header=3\lineheight, > headerdistance=\lineheight] > > \setupbackgrounds > [header] > [text] > [ > frame=off, > bottomframe=on, > framecolor=darkgray, > rulethickness=2pt, > ] > > \defineframed[headerframed] &g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
# MyLayout.tex # % macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
\startenvironment MyLayout \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt, ] \defineframed[headerframed] [ frame=off

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
his is > how I would have done it: > > > > % macros=mkvi > > \showframe > > > > \setuplayout > > [header=3\lineheight, > >headerdistance=\lineheight] > > > > \setupbackgrounds > > [header] > > [text] > > [ > >frame=off, &

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
> % macros=mkvi > > \showframe > > > > \setuplayout > > [header=3\lineheight, > >headerdistance=\lineheight] > > > > \setupbackgrounds > > [header] > > [text] > > [ > >frame=off, &

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Jean-Pierre Delange
> % macros=mkvi > \showframe > > \setuplayout > [header=3\lineheight, >headerdistance=\lineheight] > > \setupbackgrounds > [header] > [text] > [ >frame=off, >bottomframe=on, >framecolor=darkgray, >rulethickness=2

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
e it: > > > > % macros=mkvi > > \showframe > > > > \setuplayout > > [header=3\lineheight, > >headerdistance=\lineheight] > > > > \setupbackgrounds > > [header] > > [text] > > [ > >frame=off, > >bot

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
> I would have done it: > > % macros=mkvi > \showframe > > \setuplayout > [header=3\lineheight, >headerdistance=\lineheight] > > \setupbackgrounds > [header] > [text] > [ >frame=off, >bottomframe=on, >framecolor=dar

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Aditya Mahajan
, ] \defineframed[headerframed] [ frame=off, % For visualization set this to on height=fit, width=fit, location=bottom, boffset=\lineheight, ] \starttexdefinition MyHeader #where #day #month #year

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Henri
 headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [frame=off,    bottomframe=on,    framecolor=darkgray,    rulethickness=2pt]    \defineframed   [headerframed]   [frame=off,width=fit,height=\headerheight] \starttexdefinition MyHeader #where #day #month #year #titl

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
=on, framecolor=darkgray, rulethickness=2pt] \defineframed[headerframedleft] [frame=off, align=left, width=fit,height=\headerheight] \defineframed[headerframedright] [frame=off, align=right

Re: [NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
[noheader] [header=26pt, headerdistance=25pt, backspace=2cm, width=middle, topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax, footer=16pt, height=middle] \setuplayout [header=\zeropoint, headerdistance=25pt, backspace=2cm, width=m

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
art][text][frame=off, > bottomframe=on,framecolor=gray,rulethickness=2pt] > > \setupheader[style=bold] > > \setuppagenumbering > [alternative=, > location=footer] > > \defineframed[headerframed] > [frame=off, >

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Pablo Rodriguez
[1][noheader] \setupbackgrounds[header,state=start][text][frame=off, bottomframe=on,framecolor=gray,rulethickness=2pt] \setupheader[style=bold] \setuppagenumbering [alternative=, location=footer] \defineframed[headerframed] [frame=off,

[NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
,rulethickness=2pt] \setupheader[style=bold] \setuppagenumbering [alternative=, location=footer] \defineframed[headerframed] [frame=off, location=depth, bottomoffset=\lineheight, align=middle, width=fit

Re: [NTG-context] source code and result side by side

2017-08-04 Thread Henning Hraban Ramm
macros that >>> behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). >>> But in this case, there is a simpler solution: >>> >>> \defineframed >>> [CodeExampleFramed] >>> [ >>> frame=off, >>>

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
Am 2017-07-31 um 03:26 schrieb Aditya Mahajan <adit...@umich.edu>: > You can't do that with buffers. If you need to define your own macros that > behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But > in this case, there is a simpler solution: >

Re: [NTG-context] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya, \defineframed [headerframed] [ ..., location=depth, ..., ] Fabrice 2017-08-01 12:21 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Aditya, > Neither command responds to what I'm trying to do. I will try to be > clea

Re: [NTG-context] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
.., > >] > > If you mean the space between the header and the bottom frame of the > header, you can play around with > > \defineframed > [headerframed] > [ > ..., > bottomoffset=..., > ..., > ] > > > Aditya >

Re: [NTG-context] About \setupbackgrounds

2017-07-31 Thread Aditya Mahajan
the space between the bottom rule of the header and where the text starts in the page, you can change that using \setuplayout [ ..., headerdistance=..., ] If you mean the space between the header and the bottom frame of the header, you can play around with \de

[NTG-context] About \setupbackgrounds

2017-07-31 Thread Fabrice Couvreur
\lineheight, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=2cm] \setupbackgrounds[header][text][frame=off, bottomframe=on] \setupheader[style=bold] \defineframed[headerframed] [frame=off, align=middle, width=fit] \setupheadertexts

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Aditya Mahajan
ur own macros that behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But in this case, there is a simpler solution: \defineframed [CodeExampleFramed] [ frame=off, width=0.5\textwidth, align=normal, ] \definebuffer [CodeExample] \define\stopCodeE

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
etter (critic on high level: the sum symbol is higher than the highlight box, relevant on fractions). Another option (slightly better visually, but increases the interline distance) \defineframed[texthighlight] [ background=color, backgroundcolor=gray, frame=off, location=middle,

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
In the code below, the vertical spacing of the second level should be like that of the first level Thank you Fabrice \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframed [algorithmframe] [width=\textwidth, align=normal, strut=no, offset=1ex, foregroundstyle

Re: [NTG-context] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
N, >>alternative=top, >>number=yes] >> >> In order to put the word « Exercice » in the frame you should define a >> special command, for instance \MyTextCommand and the say text = >> \MyTextCommand >> >> Best regrads: OK >> >&g

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
; Best regrads: OK > >> On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com >> <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Hello, >> I would like a title without the parentheses and the text "Exercice" in the >> fram

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
mand and the say text = \MyTextCommand > > Best regrads: OK > >> On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com >> <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Hello, >> I would like a title without the parenthe

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
pecial command, for instance \MyTextCommand and the say text = > \MyTextCommand > > Best regrads: OK > > On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hello, > I would like a title without the parentheses and the text &qu

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Otared Kavian
like a title without the parentheses and the text "Exercice" in the > frame with the number. > Thank you. > Fabrice > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background

[NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
Hello, I would like a title without the parentheses and the text "Exercice" in the frame with the number. Thank you. Fabrice \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundc

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
ke three columns and one row. But three rows and one column, it > is possible. > > You’re getting three columns but each framedtext has the width of the > textblock and two > of your three frames are shown outside of the visible space, using framed > instead of > framedtext

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Wolfgang Schuster
shown outside of the visible space, using framed instead of framedtext helps. \defineframed [algorithmframe] [width=fit, align=normal, strut=no, offset=1ex, foregroundstyle={\switchtobodyfont[8pt]}, background=color, location=middle, backgroundcolor=lightgray, fram

[NTG-context] text–formula separation inside a frame

2016-10-05 Thread Florian Leupold
, and/or (even better) a possible fix? Thanks a lot! Florian MWE: \defineframed[Framed][width=\textwidth, height=5cm, align=normal] \starttext This formula is preceded by normal spacing: \placeformula[-]\startformula 1+1=2 \stopformula \Framed{ This formula somehow is preceded by too much spacing

[NTG-context] text–formula separation inside a frame

2016-09-25 Thread Florian Leupold
Dear list, I have got a problem with spacing before a formula inside a frame. The text–formula separation somehow is bigger when it occurs in a frame (see MWE below). Is there an explanation, and/or (even better) a possible fix? Thanks a lot! Florian MWE: \defineframed[Framed][width

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
### > > Keep your examples minimal, the custom frame isn’t necessary, the table > can be shorter (the setups can be removed as well) and the conversionset > isn’t necessary. > > \defineframed > [FRAME] > [frame=off, >offset=0pt, >location=low, >

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Wolfgang Schuster
estion Thanks fabrice Keep your examples minimal, the custom frame isn’t necessary, the table can be shorter (the setups can be removed as well) and the conversionset isn’t necessary. \defineframed [FRAME] [frame=off, offs

[NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
Hello, I noticed a problem with standalone context and not with texlive 2016 2 Question 3 Question instead of 1 Question 2 Question Thanks fabrice \defineframed [FRAME] [frame=off, offset=0pt, location=low, width

[NTG-context] Bug with standalone ?

2016-08-26 Thread Fabrice Couvreur
Hello, If I compile the file with context from texlive 2016, no problem. But with context from standalone, I get an error ("tex error on line 1 in file /home/fab/ntg53.tex: ! Missing } inserted") thank you, Fabrice \defineframed [FRAME] [frame=off, offset=0pt, location=low

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Fabrice Couvreur
;] > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > You can play with the position of the frame and place the number on the > same line as the content: > > \defineframed > [ACFRAME] > [frame=off, >offset=0p

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Wolfgang Schuster
same line as the content: \defineframed [ACFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=red, foregroundcolor=white, forgroundstyle=bold]

[NTG-context] Question about headcommand

2016-07-21 Thread Fabrice Couvreur
Hello, In the code below, why headcommand enough ? thanks, Fabrice \setupbodyfont[pagella,11pt] \defineframed [ACFRAME] [width=0.5cm, height=0.5cm, background=color, backgroundcolor=red, foregroundcolor=white, forgroundstyle=bold

Re: [NTG-context] Partial \framed

2016-06-06 Thread Thomas Fehige
eMPgraphic{rightbracket}} \defineframed [bracketframed] [frame=off, offset=1ex, leftframe=bracket, rightframe=bracket, framecolor=red, foregroundstyle=\ssx, foregroundcolor=darkgray, align=normal, width=max] \starttext \bracketframed{\input knuth }

Re: [NTG-context] Partial \framed

2016-06-06 Thread Wolfgang Schuster
= (0,0) ; z[3] = (-EmWidth,0) ; draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ; \stopuseMPgraphic \installleftframerenderer {bracket}{\useMPgraphic {leftbracket}} \installrightframerenderer{bracket}{\useMPgraphic{rightbracket}} \defineframed [bracketframed] [fra

Re: [NTG-context] after with fixed position

2016-05-01 Thread Pablo Rodriguez
gn=high]{#2}} > > you can define a new frame using: > > \defineframed[chapterframe][frame=off, height=10mm, align=high] Many thanks for the tipp, Aditya. Pablo -- http://www.ousia.tk ___ If your question

Re: [NTG-context] after with fixed position

2016-05-01 Thread Aditya Mahajan
On Sun, 1 May 2016, Pablo Rodriguez wrote: For future reference (and replying to myself), the solution may read: OT, but ... \define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}} you can define a new frame using: \defineframed[chapterframe][frame=off

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread DesdeChaves
middle] > \setupmarginframed[inmargin][align=middle,location=outer] > > \definelayer[infolayer][width=\framedwidth,height=\framedheight] > > \startsetups[infolayer:place] > > \setlayer[infolayer][preset=middleright]{\rotate{\getvariable{infotext}{points}}} > \stopsetups >

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread Wolfgang Schuster
riable{infotext}{points}}} \stopsetups \defineframed[infobox][frame=off,width=max,background=infolayer,setups=infolayer:place] \define[2]\Info {\par \setvariable{infotext}{points}{#2}% \infobox[height=#1]{}} \starttext \startitemize[n] \starthead{Question 1} \Info{9cm}{20 \p

Re: [NTG-context] Line wrapping inconsistency with tolerance, alignment and framed

2015-07-24 Thread Hans Hagen
within and without a framed consistently? Any insight is welcome. alignment settings are local in a framed (and similar cases) \defineframed[myframe][align={flushleft,horizontal,stretch,verytolerant},frame=off,offset=overlay] Christoph MWE: \setuptolerance[horizontal,stretch,verytolerant

[NTG-context] footnotes in floating tables

2015-07-19 Thread Henry House
={\blank[0cm]},spaceafter=2ex,spacebefore=1ex,headstyle=\sc] \setupTABLE[frame=off,offset=0ex] \setupTABLE[c][distance=0.6em] \def\tableheadrulethickness{1.0pt} \defineframed[footnoteframed]\setupframed[footnoteframed][width=\hsize,frame=off,align=right,top=\hbox\bgroup,bottom=\egroup

Re: [NTG-context] What is a better way to do this macro?

2015-07-16 Thread Idris Samawi Hamid ادريس سماوي حامد
] \defineframed[Choice][frame=off,location=bottom,align=middle,offset=0pt] \defineframed[ChoiceTop][frame=off,location=bottom,align=middle,offset=0pt,top={\setupinterlinespace[line=1.2em]}] \defineframed[ChoiceTopBottom][frame=off,location=bottom,align=middle,offset=0pt,top={\setupinterlinespace[line

  1   2   3   >