Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Hans Hagen
On 1/4/2018 10:11 AM, Jeong Dal wrote: numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, just omit the height key

[NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
={\white\translate[en=Example, kr=예]}, % textcommand=, numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, prefix=yes, prefixsegments=chapter, way=bychapter, %counter=Exam, %number=yes

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Aditya Mahajan
On Thu, 7 Dec 2017, Floris van Manen wrote: it might be simpler to have a ‘watch’ option for the context compiler combined with an ‘open result’. e.g. the coffeescript compiler allows for a ‘-w’ option, it will keep the compiler running in the background and start compiling the file(s

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Floris van Manen
it might be simpler to have a ‘watch’ option for the context compiler combined with an ‘open result’. e.g. the coffeescript compiler allows for a ‘-w’ option, it will keep the compiler running in the background and start compiling the file(s) as soon as it detects any changes. i guess

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Jeong Dal
. Best regards, Dalyoung > you need "numbercommand": > > \defineenumeration >[Example] > [headcommand={\framed[background=color,backgroundcolor=red]}, > > numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, > > titlecom

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Hans Hagen
you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes

[NTG-context] about \inframed[] in \defineenumeration

2017-12-04 Thread Jeong Dal
%%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
aw p withcolor black ; >     setbounds currentpicture to a ; > \stopuseMPgraphic  > > > \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]  > > \defineframedtext >   [FunnyText] >   [frame=off, >    background=FunnyFrame, >    before={\blank[line,halflin

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
eMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [title=no, text=Theorem,

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-23 Thread Thomas Floeren
ckground > > \stoptext > > > The first box is OK and as expected. But with the second one (containing a > “paragraph”) the right offset gets miscalculated, so that the text runs into > the edge of the background. > > With a beta from July or so

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
ipsed .95 ; fill b withcolor .85white ; %.425green;%. draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\

Re: [NTG-context] framed with titles

2017-11-13 Thread Jeong Dal
}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\textwidth]%\overlaywidth]% \def\FrameTitle #1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} \defineenumeration[Thm] [%text=\thm, style=, title=yes, prefix=yes

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
ramed text \defineframedtext [MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition]

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
o the code below and test it (note that the frame is red in this sample). % Début de la définition d'un texte encadré en rouge % Defining a framed text \defineframedtext [MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off, backgrou

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
xtbackground >> contains a multi-column “paragraph”. >> >> The first box is OK and as expected. But with the second one >> (containing a “paragraph”) the right offset gets miscalculated, so that >> the text runs into the edge of the background. >> >>

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Pablo Rodriguez
. But with the second one > (containing a “paragraph”) the right offset gets miscalculated, so that > the text runs into the edge of the background. > > With a beta from July or so the behavior was still OK. Hi Thomas, I can confirm the bug. It works fine with ConTeXt from TeX Li

[NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
} {a b c } \stopTestPar \stoptextbackground \stoptext The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background. With a beta from July or so the behavior was still OK. Thanks

Re: [NTG-context] Difficulties with learning about ConTeXt

2017-10-23 Thread Pablo Rodriguez
m which does not require one to load external > packages with subtle interactions. Hi Raghu, my experience with LaTeX was brief when compared with yours: about seven years. I think I may be using ConTeXt for almost a decade. My background is in humanities. I cannot code, although I may read

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Hans Hagen
  \setupbackgrounds  [page][setups=placeisbn,background=isbn]   \startmakeup   [cover4]   \scale [width=\textwidth] {\red \Title}   \stopmakeup \stoptext For me  (Win64, current standalone beta), compilation halts with: lua error   > lua error on line 4 in file

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
figure[cow.pdf][width=3cm]} \stopsetups \starttext \setupbackgrounds [page][setups=placeisbn,background=isbn] \startmakeup [cover4] \scale [width=\textwidth] {\red \Title} \stopmakeup \stoptext For me (Win64, current standalone beta), compilation halts with: lua error

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Floris van Manen
er [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm] > {\externalfigure[cow.pdf][width=3cm]} > \stopsetups > \starttext > \setupbackgrounds [page][setups=placeisbn,background=isbn] > \startmakeup [cover4] > \scale [width=\textwidth] {\red \

[NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
  \Title {A Primer on Omphaloskepsis} \startsetups [placeisbn]   \setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]   {\externalfigure[cow.pdf][width=3cm]} \stopsetups \starttext   \setupbackgrounds  [page][setups=placeisbn,background=isbn

[NTG-context] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
Hello, Wolfgang offered me a way to present an algorithm. Can not I center it ? Thank you. Fabrice \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframedtext [algorithmframe] [width=fit, background=color, foregroundstyle={\tt}, backgroundcolor=MyBlue

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Pablo Rodriguez
eup[standard] > [page=no, > doublesided=no, > headerstate=empty, > footerstate=empty, > before=\setups{paginaoff}] > > \starttext > \input knuth > > \startpostponing[+2] > \startstandardmakeup > \setuppagenumbering[location=,] % doesn’t work > \f

[NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Henning Hraban Ramm
=\textheight, background=color, backgroundcolor=blue, foregroundcolor=white, foregroundstyle=bold, frame=off, ]{This page should show no page number} \stopstandardmakeup \stoppostponing \dorecurse{5}{ \recurselevel \input tufte \par } \stoptext Greetlings, Hraban --- http

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
lorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament >[FrameTitle] >[preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, >] >

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-04 Thread Procházka Lukáš Ing .
Hello, done here (on the bottom of the page): http://wiki.contextgarden.net/Command/setupheader But the result doesn't show the goal of the example: - header is not shown at all, including its blue "underline", - user cannot check the emptiness of the second page. Maybe a switch to

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Pablo Rodriguez
On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote: > Hello Pablo, > > you inspired me: > > > \setuplayout[header=5mm,headerdistance=5mm,] > \setupheader >[text] >[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, > after={\stopframed}, >] >

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Procházka Lukáš Ing .
Hello Pablo, you inspired me: \setuplayout[header=5mm,headerdistance=5mm,] \setupheader [text] [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, after={\stopframed}, ] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-31 Thread Procházka Lukáš Ing .
Hello Pablo, thanks for the answer - yes, it works - for the situation header underline has been defined via \blackrule and not background. I found a proposal for this situation spoken here before: - to provide [noheaderandfooterbackground] (or similar) option for \page which would

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
r[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > fo

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, b

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Pablo Rodriguez
On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: > [...] > How to: > > - define header to be framed normally and > - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called? Hi Lukáš, from your sample, I wonder whether you need a complete frame or only a rule in the

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya, I tried : \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00

[NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Procházka Lukáš Ing .
Hello, suppose the following code: \setuplayout[header=5mm,headerdistance=5mm,] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext Page 2 in this sample is empty - no text and no header/footer -

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
apost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
e metapost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
[preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[10pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}]

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
[MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[8pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \p

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
hic{triangledone} > > fill lltriangle scaled 4cm withcolor darkred; > > \stopuseMPgraphic > > > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > > > \def\Triangledone#1% > > {\framed > > [background=triangledone,frame=o

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
; \stopuseMPgraphic \defineoverlay[triangledone][\useMPgraphic{triangledone}] \def\Triangledone#1% {\framed [background=triangledone,frame=off,offset=overlay] {\tfb\color[white]{\bf#1}}} \startuseMPgraphic{triangledtwo} fill lrtriangle scaled 4cm withcolor darkred; \stopuseMPgraphic

Re: [NTG-context] question for metapost experts

2017-08-10 Thread Schmitz Thomas A.
> On 10. Aug 2017, at 14:18, Hans Hagen <pra...@wxs.nl> wrote: > > p intersection_point q > > (also sets intersection_found) Boy, impressive and wonderful, thanks a lot!!! It also made me see why I the error stopped the compilation: I had a naming conflict between

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
lsemarkedpage{chapter}{CHAPTER}{}] > > \setupbackgrounds > [page] > [background=whatever] > > \starttext > test \page test \page test \chapter{OEPS} > test \page test \page test \chapter{OEPS} > \stoptext > > -- > > ---

[NTG-context] beta

2017-08-06 Thread Hans Hagen
in next beta % \setuphead[chapter][after={\markpage[chapter][+1]}] \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}] \defineoverlay [whatever] [\doifelsemarkedpage{chapter}{CHAPTER}{}] \setupbackgrounds [page] [background=whatever] \starttext test \page test \page test

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
> on chapter pages? > > one of the many ways ... > > \definelayer > [chapter] > [width=\paperwidth, >height=\paperheight] > > \defineoverlay > [pagebackground] > [\directsetup{pagebackground}] > > \setupbackgrounds > [page] > [background=pageb

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Hans Hagen
=\paperheight] \defineoverlay [pagebackground] [\directsetup{pagebackground}] \setupbackgrounds [page] [background=pagebackground] \startsetups pagebackground \doifelsemode {chapterpage} { \setlayer [chapter] [preset=middle] {\scale[width=\textwidth

Re: [NTG-context] Disable overlay on chapter pages

2017-08-03 Thread Jean-Pierre Delange
Thank you for your answer, Henning. I am sorry, but it does not work. The problem is that I don't have the marking text in the header, but in overlays in the margins. I tried to replace your \setupheadertexts[][][][] inside the setup with \setupbackgrounds[text][rightmargin][background=]

Re: [NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
t have the marking text in the header, but in overlays in the margins. I tried to replace your \setupheadertexts[][][][] inside the setup with \setupbackgrounds[text][rightmargin][background=] but with no luck. But maybe you are right that one should use setups. /Mikael

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
] \setupbackgrounds[text][rightmargin][background=mymargin] \starttext \chapter{Foo} \dorecurse{15}{\section{Bar}\input ward\par} \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Your suggestion with foregroundstyle and foregroundcolor works. Thank you! \setlayer[AddressBg] {\framed[width=55mm,height=30mm, align=right,background=color, backgroundcolor=lightgray, foregroundcolor=red,foregroundstyle=\ss\tfa]{\xmlall{#1}{/address}}} My question (my ’need’) was quite

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
> However, the color and style instructions (\ss\tfa) have no effect. I tried > to solve that, as a first step, by putting \ss before the \xmlall instruction: > > \startxmlsetups xlm:contact > \setlayer[AddressBg] {\framed[width=55mm,height=30mm, > align=righ

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
, align=right,background=color, backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} \strut ... \stopxmlsetups This works (see pdf), but there are probably other and better ways. brieven2mkiv.pdf Description: Adobe PDF document Another persisting problem is that the commands are still

Re: [NTG-context] letters in context mkiv

2017-07-31 Thread Schmitz Thomas A.
\blank [line] \input knuth \relax Kind regards \blank [line] X \page \stopxmlsetups \setuppagenumbering [state=stop] \definelayer[address][width=\paperwidth,height=\paperheight] \setupbackgrounds [page][background={address}] \starttext \xmlprocessbuffer{main}{

Re: [NTG-context] texture as background?

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 01:01 schrieb Aditya Mahajan <adit...@umich.edu>: > On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: > >> Ahoi, >> >> is there are way to use a texture (i.e. a repeated pixel image) as a >> background of a frame? > > Use \backgroundim

Re: [NTG-context] width of floats

2017-07-30 Thread Pablo Rodriguez
upfloat[Beispiel][ width=36mm, %~ maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yellow, inner=\hsize.95\textwidth %not very orthodox, anyway ] \setupcaption[Beispiel][ location=none,number=no ] \starttex

Re: [NTG-context] texture as background?

2017-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Use \backgroundimage See https://tex.stackexchange.com/a/69138/323 Aditya

[NTG-context] width of floats

2017-07-28 Thread Henning Hraban Ramm
Ahoi, I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect: \definefloat[Beispiel][Beispiele] \setupfloat[Beispiel][ %width=36mm, maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yel

[NTG-context] texture as background?

2017-07-28 Thread Henning Hraban Ramm
Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ If your question

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد
ult][default][boundingbox=background] \definefontfeature[default][default][boundingbox=frame] \definefontfeature[default][default][boundingbox={background,empty}] \definefontfeature[default][default][boundingbox={frame,empty}] \definefontfeature[default][default][boundingbox={fra

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Hans Hagen
. Well, it's a tracing option so don't expect miracles and integration with other features (like color). I'll add things like \definefontfeature[default][default][boundingbox=yes] \definefontfeature[default][default][boundingbox=background] \definefontfeature[default][default][boundingbox

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

2017-07-19 Thread Aditya Mahajan
m] > \definevimtyping[python][syntax=python, escape=on] > > \starttext > \startpython[highlight=1] > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > \stoppython > \stoptext > ``` By default, the highlighting is done using the bars mechanism. It works for simple cases but f

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

2017-07-19 Thread Aditya Mahajan
s mechanism. It works  for simple cases but fails with math mode (the spaces are not covered).  One option is to highlight using the textbackground mechanism: \definetextbackground[texthighlight]  [    background=color,    backgroundcolor=gray,    frame=off,  ] \define[1]\texthighlig

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

2017-07-19 Thread Henri Menke
rtpython[highlight=1] > > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > By default, the highlighting is done using the bars mechanism. It works  > for simple cases but fails with math mode (the spaces are not covered).  &

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

2017-07-19 Thread Gerion Entrup
gt; # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > > By default, the highlighting is done using the bars mechanism. It works > for simple cases but fails with math mode (the spaces are not covered). > One option is to highlight using the textbackgr

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

2017-07-19 Thread Aditya Mahajan
using the textbackground mechanism: \definetextbackground[texthighlight] [ background=color, backgroundcolor=gray, frame=off, ] \define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight} \usemodule[vim] \definevimtyping[python][syntax=python, escape

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

2017-07-18 Thread Gerion Entrup
\definevimtyping[python][syntax=python, escape=on] > > > > \starttext > > \startpython > > # Returns \m{\sum_{i=1}^{n}i} > > def sum_upto(\m{n \in \mathbb{N}}) > >r = range(1, \m{n} + 1) > >return sum(r) > > \stoppython > > \stopt

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

2017-07-17 Thread Aditya Mahajan
}^{n}i} def sum_upto(\m{n \in \mathbb{N}}) r = range(1, \m{n} + 1) return sum(r) \stoppython \stoptext ``` Another option will be to use the algorithmic module: https://bitbucket.org/wolfs/algorithmic/src/ 2. It would be cool, if I can define some background color for the code. Unfortunately

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

2017-07-17 Thread Henri Menke
{n} + 1) > return sum(r) > \stoppython > \stoptext > ``` > > 2. It would be cool, if I can define some background color for the code.  > Unfortunately I'm very new to context and haven't seen a direct option. I  > assume this is possible with some kind of extra environment arou

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

2017-07-17 Thread Gerion Entrup
] \definevimtyping[python][syntax=python, escape=on] \starttext \startpython # Returns \m{\sum_{i=1}^{n}i} def sum_upto(\m{n \in \mathbb{N}}) r = range(1, \m{n} + 1) return sum(r) \stoppython \stoptext ``` 2. It would be cool, if I can define some background color for the code. Unfortunately I'm very new

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
On 07/15/2017 08:07 PM, Mathias Schickel wrote: >> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez: >> [...] >> Just in case I got you wrong: is your issue that the background also >> covers the footnotes, such as in the first and second pages from: >

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Mathias Schickel
l example showing this effect of >> textbackgrounds. >> >> However, I have met some issues using your solution, Aditya, with >> \automigrateinserts. I got one text in background containing a footnote >> that has been rendered onto the footnote. Of course this can only happen &g

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
using your solution, Aditya, with > \automigrateinserts. I got one text in background containing a footnote > that has been rendered onto the footnote. Of course this can only happen > if the backgrounded text appears at the bottom of a page. It is a little > hard to get a minimal example showing this. But I t

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-14 Thread Mathias Schickel
> Am 13.07.2017 um 01:18 schrieb Aditya Mahajan <adit...@umich.edu>: > > On Wed, 12 Jul 2017, Mathias Schickel wrote: > >> Does no-one know what I can do to settle the problem? >> [...] >> So what can I do to get the footnotes in a background environment

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Aditya Mahajan
On Wed, 12 Jul 2017, Mathias Schickel wrote: Does no-one know what I can do to settle the problem? [...] So what can I do to get the footnotes in a background environment displayed? \automigrateinserts \starttext \startbackground This is a test\footnote{Footnote} continue \stopbackground

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Mathias Schickel
unds existed in ConTeXt.Framed texts does the trick with your sample:  \setupframedtext [width=\textwidth,  frame=on,  rulethickness=1pt,  corner=0,  offset=12pt]  \starttext  \startframedtext  If you typeset text with background,  the footnote workaround does not work.  \p

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-10 Thread Mathias Schickel
even know that backgrounds existed in ConTeXt. > > Framed texts does the trick with your sample: > >\setupframedtext > [width=\textwidth, >frame=on, >rulethickness=1pt, >corner=0, >offset=12pt] > >\starttext >\sta

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-10 Thread Pablo Rodriguez
twidth, frame=on, rulethickness=1pt, corner=0, offset=12pt] \starttext \startframedtext If you typeset text with background, the footnote workaround does not work. \postponenotes\footnote{So what could I do to get this footnote d

Re: [NTG-context] Multiline descriptions do not line up

2017-07-09 Thread Hans Hagen
] [headstyle=\tf,alternative=hanging] \definelayer [vLine] \setlayer [vLine] [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]} \setupbackgrounds [text] [background=vLine] \starttext \startDesc{one

Re: [NTG-context] Multiline descriptions do not line up

2017-07-08 Thread Henri Menke
t]} > \setupbackgrounds  [text] >    [background=vLine] > \starttext >   \startDesc{one} >   Description of item one. Description of item one.% Description of item > one. >   \stopDesc >   \startDesc{two} >   Description of item two. Description of item two.%

[NTG-context] Multiline descriptions do not line up

2017-07-08 Thread Rik Kabel
[vLine] \setlayer [vLine] [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]} \setupbackgrounds [text] [background=vLine] \starttext \startDesc{one} Description of item one. Description of item one.% Description of item

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-08 Thread Mathias Schickel
. Here I provide a minimal example that shows the problem: \setupbackground[ width=\textwidth, frame=on, framecolor=black, rulethickness=1pt, background=color, backgroundcolor=white, corner=0, offset=12pt

Re: [NTG-context] typesetting serial letters in Context

2017-06-15 Thread r . ermers
[level]{} \setupbackgrounds[page][background={level}] \startxmlsetups xml:setups \xmlsetsetup{#1}{contacts}{xml:contacts} \xmlsetsetup{#1}{contact}{xml:contacts:contact} \stopxmlsetups \xmlregistersetup{xml:setups} \startxmlsetups xml:contacts \xmlflush{#1} \stopxmlsetups \startxml

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread r . ermers
wishlist is to change the background of the certificate depending on the type of certificate. In mkii I manage to do this as follows: File: participants.xml Janssen Piet levelA certificates.tex: \resetlayer[module]{} \setlayer[module][][]{\externalfigure[\XMLflush{courselevel}[width

Re: [NTG-context] Typescript/fallbacks problem

2017-05-27 Thread Otared Kavian
\definetypeface [myfont][mm] [math] [modern][default] > \stoptypescript > > \setupbodyfont[myfont,rm] > %% NOTE 3 > %\definedfont[Serif] > > \def\Sample{{\lefttoright Salam} {\righttoleft سلام} } > > \starttext > rm:\Sample > {\bf bf:\Sample} > {\it it:\Sam

Re: [NTG-context] Typescript/fallbacks problem

2017-05-25 Thread Mohammad Hossein Bateni
] [math] [modern][default] > > \stoptypescript > > > \setupbodyfont[myfont,rm] > > %% NOTE 3 > > %\definedfont[Serif] > > > \def\Sample{{\lefttoright Salam} {\righttoleft سلام} } > > > \starttext > > rm:\Sample > > {\bf bf:\Sample} > > {\it

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
hic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun manual. HTH Thomas ___ If your question is of interest to others as

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
); draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm)) withcolor %col transparent(1, .4, col) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage

Re: [NTG-context] processing very big tables

2017-04-11 Thread Henning Hraban Ramm
Am 2017-04-09 um 16:53 schrieb Thomas A. Schmitz <thomas.schm...@uni-bonn.de>: > On 04/09/2017 03:57 PM, Hans Hagen wrote: >> \starttext >> >> \setuplinetable[n=2,lines=25] >> \setuplinetable[c][1][width=6cm] % >> ,background=color,backgroundcolor=red,colo

Re: [NTG-context] processing very big tables

2017-04-10 Thread Hans Hagen
On 4/10/2017 4:25 PM, Thomas A. Schmitz wrote: On 09.04.2017 15:57, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color

Re: [NTG-context] processing very big tables

2017-04-10 Thread Thomas A. Schmitz
On 09.04.2017 15:57, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[1][all][background=color

Re: [NTG-context] processing very big tables

2017-04-09 Thread Thomas A. Schmitz
On 04/09/2017 03:57 PM, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[1][all][background=color

Re: [NTG-context] processing very big tables

2017-04-09 Thread Hans Hagen
h one (would xtables be better?)? Or low-level vboxes within hboxes etc.? Or just \framed within \framed? What would you suggest for this sort of material? \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinet

[NTG-context] Designing text floats

2017-03-29 Thread Henning Hraban Ramm
And me again. I’m trying to get some info box on my page that - has a defined width - sits in the margin but protrudes into the text area - while the body text runs around it Additionally the caption (title) should sit on (in front of) the background color. Here is what I tried: \definefloat

Re: [NTG-context] tabulate as header

2017-03-05 Thread kaddour kardio
Thank you Aditya, i ended up using a layer for my header, but your approach is more succint \setupbackgrounds[page][background=mybg] \setlayer[mybg] % name of the layer [hoffset=2.5cm, voffset=0.2cm] % placement (from upper left corner of the layer) {\framed[frame=off

Re: [NTG-context] tabulate as header

2017-03-05 Thread Aditya Mahajan
On Sat, 4 Mar 2017, kaddour kardio wrote: ​Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT (with a background of 05 years with LaTeX): Is it possible tu use tabulate environment as a header? Yes, but there were too many typos in your code. \setupheadertexts[\setups

<    5   6   7   8   9   10   11   12   13   14   >