[NTG-context] Re: ntg-context Digest, Vol 252, Issue 5

2025-08-06 Thread Benjamin Buchmuller
eems a bit brute force. :-( > On Aug 6, 2025, at 17:05, ntg-context-requ...@ntg.nl wrote: > >> 1) The font now (= current version) appears to be larger, causing some >> undesired line breaks and overfull boxes. >> >> 2) Some elements prevent local font s

[NTG-context] Preserving Stanza Integrity

2025-08-06 Thread Michael Guravage
iated. -- With kind regards, Michael \setuppapersize[A5] \setuphead[title][align=middle] \switchtobodyfont[10pt] \defineframedtext[poemframed] [width=\textwidth, autowidth=force, align=flushleft, before=, after=, frame=off, offset=none] \definenarrower[poemnarrower] \

[NTG-context] Re: Did the font size mechanism change??

2025-08-05 Thread Mikael Sundqvist
t; \setupbodyfont > [MyFont, 10pt] > > The following inconveniences arise: > > 1) The font now (= current version) appears to be larger, causing some > undesired line breaks and overfull boxes. > > 2) Some elements prevent local font size switching!? > > \defineframed

[NTG-context] Did the font size mechanism change??

2025-08-05 Thread Benjamin Buchmuller
erfull boxes. 2) Some elements prevent local font size switching!? \defineframedtext [LabelBox] [ frame=on, bottomframe=off, style=\ssx, inner={\setupchemical[style=sans]}, ] \ssa So big \startLabelBox \bgroup \tfa Title in big letters is still s

[NTG-context] Re: How to prevent \reference[myrefA]{myrefA} from creating vertical emptiness?

2025-03-06 Thread Wolfgang Schuster
}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, width=\textwidth] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} \define\sidebarA{%     \placefigure[none

[NTG-context] How to prevent \reference[myrefA]{myrefA} from creating vertical emptiness?

2025-03-05 Thread Joel via ntg-context
withcolor black) ;   draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;   %draw boundingbox p ;   setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame

[NTG-context] Re: Draw leftframe to a description

2024-09-29 Thread Gerion Entrup
s://tex.stackexchange.com/questions/727604/draw-a-multi-page-leftframe-with-e-g-defineframedtext Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to othe

[NTG-context] About a pagination

2024-07-23 Thread Fabrice Couvreur
er:rightpage}] [\prefixedpagenumber] [\prefixedpagenumber] [\directsetup{header:leftpage}] \defineframedtext [ChapterFrame] [frame=on, width=local, height=broad, after={\blank[2*line]}, offset=0pt] \startsetups [section:chapter] \setuphead [chapter] [align=leftright, textco

[NTG-context] Draw leftframe to a description

2024-07-08 Thread Gerion Entrup
Hi, I want to typeset an "excurses" description that is marked with a leftframe. The problem is that it spans about multiple pages and has footnotes. Here is an MWE: ``` %% -> mwe-framedtext.pdf \defineframedtext[excursusbg][ frame=off, leftframe=on, rule

[NTG-context] background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
testB] [ location=paragraph, background=background:test, frame=off, ] \defineframedtext [testC] [ background=background:test, frame=off, width=broad, ] \starttext \starttestA \input tufte \stoptestA \starttestB \input

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Pablo Rodriguez via ntg-context
t work, but > being a bit surprised by the margins I printed a copy of the page > and still worse... Hi Miguel, this should work (also in the sense of a minimal sample): \showframe\showgrid \defineframedtext[FunnyText] [frame=on, align=flushright,location=right] \def\FrameTi

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Wolfgang Schuster
Frame}] \defineframedtext[FunnyText][width=.85\textwidth, height=20mm, frame=off, background=FunnyFrame, align=flushright,location=right, after={\blank[2*big]}]%foregroundsytel amplía la palabra Apartado \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut \color[blue]{\tfx Apa

[NTG-context] Why is only the first frame protruding into the margin?

2024-05-16 Thread madiazm . eoicc
urcorner p,h) ; %draw boundingbox p ; %%%quitamos el frame pequeño setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][width=.85\textwidth, height=20mm, frame=off, background=FunnyFrame, align

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-29 Thread Wolfgang Schuster
,outer,none] 1. You can't pass assignments and keywords to the same argument. 2. The \setupfloat command accepts only assignments as arguments, this means "outer" and "none" are ignored. To set a default location for the float use \setupfloat[...][default={outer,no

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
=-.25in,rightmargindistance=-.25in,outer,none] defineframedtext [sidebartext] [width=.4textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft] starttext This is a bit of text placefloat[newsidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,ou

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread Henning Hraban Ramm
4 um 19:54 schrieb urba...@ca.rr.com: I swear I used to understand this stuff.  I plead old age.   Why do I get two different results from the float placements here: \definefloat[mysidebar][mysidebars] \setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none] \define

[NTG-context] Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I swear I used to understand this stuff. I plead old age. Why do I get two different results from the float placements here: definefloat[mysidebar][mysidebars] setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none] defineframedtext [sidebartext] [width=.4textwidth

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
like this: \startsetups bachotex:naglowek:columns \defineframedtext [Dane] \setupframedtext [Dane] [width=18cm , align=normal, frame=no] \definenarrower [Streszczenia] [2*middle] \startplacefigure [location={here,none}] {\st

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
] [sans] [FreeSans] [rscale=0.7] \definefontfamily[mainface] [serif] [GFS Didot] \setupbodyfont[mainface] \setupindenting[1.5em] \setupindenting[yes] \setupcolors[state=start] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
[MyColorA][.75(MyColorB,white)] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
; draw b; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [CountFrame] [\useMPgraphic{CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bod

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bodyfont=11pt, style={\tt}, ] \def\FrameTitle#1% {\setMPtext{CountFrame} {\hbox spread 1em{\hss\strut#1\hss}}}\setMPtext{

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
boundingbox p ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
framed/mdframed.pdf) > > > > I have searched in the wiki and found \defineenumeration: > > This is near of that what I need. However I explicitly does not need an > > enumeration (so no number or counter). Also I am not sure if I can set a > > background and so on.

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
ot need an enumeration (so no number or counter). Also I am not sure if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on,

[NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Gerion Entrup via ntg-context
e if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on, offset=5pt, backgr

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
; [location=default] > > \setupindenting > [yes, small] > > \setupwhitespace > [small] > > \defineframedtext > [prettyblock] > [width=10cm, > indenting={yes, small}, > background=color, backgroundcolor=lightgreen, > foreground=color, foregroundcolor=b

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
Dear Oliver, maybe something like this? This is my example: \starttext \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background

Re: [NTG-context] issue with framed texts

2022-04-24 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 24.04.2022 um 20:56: Dear list, I have the following sample: \defineframedtext[backcover] \setupframedtext[backcover] [frame=off, offset=overlay, width=\textwidth] \starttext \startframedtext[backcover] \input

[NTG-context] issue with framed texts

2022-04-24 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \defineframedtext[backcover] \setupframedtext[backcover] [frame=off, offset=overlay, width=\textwidth] \starttext \startframedtext[backcover] \input zapf \stopframedtext \stoptext Using current LMTX (2022.04.20 19:18

Re: [NTG-context] Switching fonts changes framedtext justification

2022-04-07 Thread Thangalin via ntg-context
ered .25cm ; draw p withpen pencircle scaled 0.75 ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineframedtext[TextBubbleFrame][ style=TextFontEmoji, frame=off, width=.618\textwidth, autowidth=force, offset=.75em, after={\blank[2*big]}, ] % Receive text (l

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread fv leung via ntg-context
;t break across pages. So, if you have long answers, a different > mechanism is needed. > > > > \definemode[solution][no] > > > > \doifmodeelse{solution} > > {\defineframedtext[solution][empty=no]} > > {\defineframedtext[solution][empty=ye

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread Gavin via ntg-context
gt; doesn't break across pages. So, if you have long answers, a different > mechanism is needed. > > \definemode[solution][no] > > \doifmodeelse{solution} > {\defineframedtext[solution][empty=no]} > {\defineframedtext[solution][empty=yes]} > > % Doesn&

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Aditya Mahajan via ntg-context
long answers, a different mechanism is needed. \definemode[solution][no] \doifmodeelse{solution} {\defineframedtext[solution][empty=no]} {\defineframedtext[solution][empty=yes]} % Doesn't work. Why? % \expanded{\defineframedtext[solution][empty=\doifmodeelse{solution}{no}{yes}]

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Mikael Sundqvist via ntg-context
r} >{\framed > [offset=overlay, > align=normal, > width=\textwidth, > height=2cm]{foo}} > > works but maybe you want this instead: > > \defineoverlay >[MyOrn] >[\MyOrn > {\framedtextparameter{MyTitle}} > {\novrule wi

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Hans Hagen via ntg-context
} {\framed [offset=overlay, align=normal, width=\textwidth, height=2cm]{foo}} works but maybe you want this instead: \defineoverlay [MyOrn] [\MyOrn {\framedtextparameter{MyTitle}} {\novrule width \overlaywidth height \overlayheight}] \defineframedtext [MyText

[NTG-context] using a red frame as an overlay

2021-08-02 Thread Jeong Dal via ntg-context
Frame}] \defineframedtext[rfText] [frame=off, background=rFrame, offset=\bodyfontsize, width=\textwidth, before=\blank, after=\blank] \def\StartFrame{\blank\startrfText} \def\StopFrame {\stoprfText\blank} \starttext \StartFrame This is a test for the frame. This is a test for the frame. This is a tes

Re: [NTG-context] Header for a book

2021-07-13 Thread Wolfgang Schuster
[chapterframe] [\useMPgraphic{chapterframe}] \defineframedtext [ChapterFrame] [frame=off, background=chapterframe, width=max, height=6cm, after={\blank[2*line]}, offset=0pt] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgra

[NTG-context] Problem with chapter numbering

2021-07-13 Thread Fabrice Couvreur
mber 1 etc. Thanks. Fabrice ### \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backg

Re: [NTG-context] Header for a book

2021-07-13 Thread Fabrice Couvreur
Fabrice > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \defineframedtext > [FramedText] > [ > offset=0.6em, > style=, > toffset=\lineheight, > background=color, > background

[NTG-context] Header for a book

2021-07-12 Thread Fabrice Couvreur
n the body of the text. Thanks for your help. Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backgroundcolor=MyC

Re: [NTG-context] Center a text (Metafun)

2021-03-06 Thread Wolfgang Schuster
ou Fabrice \definecolor[MyBlue][c=0.2 , m=0.03, y=0.00, k=0.00] \definecolor[maincolor] [b=.5] \defineframedtext    [MyFrame]    [frame=off,     background=MyFrame,     width=fit,     height=fit,     style=small] \startuseMPgraphic{MyFrame}      path b;      picture p;      p := textex

[NTG-context] Center a text (Metafun)

2021-03-06 Thread Fabrice Couvreur
00, k=0.00] \definecolor[maincolor] [b=.5] \defineframedtext [MyFrame] [frame=off, background=MyFrame, width=fit, height=fit, style=small] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\tfx\bf\white\framedtextparameter{Title}");

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Tommaso Gordini
I have found this, that works, buy I don't know if there's a possibility of using less code: % !TEX encoding = UTF-8 Unicode % !TEX TS-program = ConTeXt-MkIV % questo codice centra il blocco dei versi sulla pagina \defineframedtext [poemframed] [width=\textwidth, autow

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
=0.11, b=0.84] \definecolor [darkgreen] [g=0.7] \definecolor [lightblue] [h=87cefa] \definecolor [lightgreen] [g=0.95,b=0.8,r=0.8] \defineframedtext [leftbartext] [ width=local, frame=off, framecolor=darkblue, leftframe=on, rulethickness=1ex, offset=0.25ex, loffset=3ex

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
] [r=0.1, g=0.11, b=0.84] > \definecolor [darkgreen] [g=0.7] > \definecolor [lightblue] [h=87cefa] > \definecolor [lightgreen] [g=0.95,b=0.8,r=0.8] > > \defineframedtext > [leftbartext] > [ >width=local, >frame=off, >framecolor=darkblue, >leftframe=

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
green] [g=0.7] \definecolor [lightblue] [h=87cefa] \definecolor [lightgreen] [g=0.95,b=0.8,r=0.8] \defineframedtext [leftbartext] [ width=local, frame=off, framecolor=darkblue, leftframe=on, rulethickness=1ex, offset=0.25ex, loffset=3ex, backgro

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
or my course where I use the vim module to do the typesetting: \usemodule[filter] \usemodule[vim] \definecolor [darkblue] [r=0.1, g=0.11, b=0.84] \definecolor [darkgreen] [g=0.7] \definecolor [lightblue] [h=87cefa] \definecolor [lightgreen] [g=0.95,b=0.8,r=0.8] \defineframe

Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Aditya Mahajan
rentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyFramedText] [ frame=off, background=FunnyFrame, offset=\bodyfontsize, width=\textwidth, ] \defineenumeration[Counter] [ title=yes, alte

Re: [NTG-context] multipage typing

2020-01-19 Thread Hans Hagen
? Best wishes, Tomáš \setupstartstop[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto,] search for

[NTG-context] multipage typing

2020-01-19 Thread Tomas Hala
[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
: # >Hi all, # > # >if I compile the following (minimised) code with ConTeXt from TL2017, # >I receive expected result -- one framed gray box with correct width. # > # >\starttext\showframe # >\defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidt

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Otared Kavian
wframe\defineframedtext[MPT][background="" class="">\setuptyping[MP][before={\startMPT},after={\stopMPT},]\startMP bla \stopMP\stoptextNow I tried it with ConTeXt from TL2019 (TL2018 produces the same result as TL2019)and I have got _two_ boxes -- the outer one is correct and frames th

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Wolfgang Schuster
Tomas Hala schrieb am 17.01.2020 um 15:18: Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth

[NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth,frame=on,offset=1cc,] \setuptyping[MP][before

Re: [NTG-context] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
r=no, > headstyle={\em}, > titlestyle=, > indentnext=no,% another way to get indentation is to comment this line > indenting={yes,medium}, > ] > > \defineframedtext[anmärkningsbakgrunden][ > width=\textwidth, > background=color, > backgroundcolor=gray, > ] > >

[NTG-context] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
(see what lines to comment to avoid the problem). %%% \defineenumeration[losning][ text=Lösning, title=yes, alternative=serried, width=fit, number=no, headstyle={\em}, titlestyle=, indentnext=no,% another way to get indentation is to comment this line indenting={yes,medium}, ] \defineframe

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
Hi Wolfgang, Why in the first example, the indentation of my Python code that I wish is not respected and that I have to do as the second example to have what I want ? Thank you. Fabrice \defineframedtext [algorithmframe] [width=fit, location=middle, foregroundstyle={\tt

[NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss, toffset=\zeropoint, background=color, backgroundcolor=MyColorC, foregroundstyle={\switchtobodyfont[10pt]}, align={right, broad

Re: [NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Wolfgang Schuster
nce=0.1em]    \bTR \bTD[width=.2\textwidth]Small \eTD \bTD[width=0.05\textwidth] \eTD    \eTR \eTABLE \setupexternalfigures   [location=default] \setupindenting   [yes, small] \setupwhitespace   [small] \definecolor [rosybrown:1][h=FFBCB3] \defineframedtext [prettyblock]   [

Re: [NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
\textwidth]Small \eTD \bTD[width=0.05\textwidth] \eTD \eTR \eTABLE \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \definecolor [rosybrown:1][h=FFBCB3] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small

[NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
] \bTR \bTD[width=.2\textwidth]Small \eTD \bTD[width=0.05\textwidth] \eTD \eTR \eTABLE \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \definecolor [rosybrown:1][h=FFBCB3] \defineframedtext [prettyblock] [width=10cm, indenting

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
create a style with a left border in the margin. >> >> I want the border to start and stop with the text. For the bottom I used >> framedepth but the bar still goes too far on the top? >> >> \showframe >> \showboxes >> \defineframedtex

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Gilles Waeber
e enough hooks to control the spaces. For something > like this, you can also use metapost to draw the background: > > \showframe > \showboxes > \defineframedtext[leftbartext][ > width=broad, > frame=off, > rulethickness=.5ex, > backgroun

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Aditya Mahajan
On Sat, 20 Apr 2019, Gilles Waeber wrote: Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftba

[NTG-context] Left frame on a block of text

2019-04-20 Thread Gilles Waeber
Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftbartext][ width=broad, fram

Re: [NTG-context] My own backgroundcolor in a frame

2019-03-08 Thread juh
Am Fri, Mar 08, 2019 at 03:43:20PM + schrieb Ursula Hermann: > Dear List! > > I have the following example: > > \defineframedtext > [prettyblock] > [width=10cm, >indenting={yes, small}, >background=color, backgroundcolor=lightgreen, >foregroun

[NTG-context] My own backgroundcolor in a frame

2019-03-08 Thread Ursula Hermann
Dear List! I have the following example: \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color, backgroundcolor=lightgreen, foreground=color, foregroundcolor=black , offset=2mm, align=flushleft] My problem is now: how can I write, if I have an

Re: [NTG-context] Frame

2019-02-22 Thread Ursula Hermann
High list! Another example, instead oft he cow, I took another figure: \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color

Re: [NTG-context] Frame

2019-02-21 Thread Wolfgang Schuster
ier to change the layout after the fact. I'd write your example as follows. \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small},

Re: [NTG-context] Frame

2019-02-21 Thread Ursula Hermann
xing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows. \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [wid

Re: [NTG-context] Frame

2019-02-21 Thread Marco Patzer
ent and markup (if possible). Nothing wrong with mixing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows. \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [smal

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

2019-02-11 Thread Jeong Dal
efineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [alternative=empty, title=yes, titleleft=, titleri

[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] Use \framedtext to write an algorithm (again)

2018-10-18 Thread Wolfgang Schuster
very well because the withdrawal of the text no longer exists. Thank you Fabrice \defineframedtext [algorithmframe]    [width=fit,     background=color, backgroundcolor=lightgray,     framecolor=darkred, corner=round] \definelines    [algorithm]    [space=on, before=\startalgorithmframe

[NTG-context] Use \framedtext to write an algorithm (again)

2018-10-17 Thread Fabrice Couvreur
Hi Wolfgang, You offered me the following code to write algorithms. It seems that this does not function very well because the withdrawal of the text no longer exists. Thank you Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray

Re: [NTG-context] prevent page break when using blocks

2018-09-27 Thread Wolfgang Schuster
]     [text={Question},      after={\blank[2*big]}, inbetween={\blank[nowhite]},      way=bychapter, prefixsegments=chapter,      prefix=yes] Put your questions in a framedtext environment. \defineframedtext   [questionframe]   [before=\blank,    after=,    offset=none,    frame=off

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

2018-08-19 Thread Fabrice Couvreur
to do 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, > backgroundcol

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

2018-08-19 Thread Hans Hagen
do 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 [F

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

2018-08-18 Thread Fabrice Couvreur
Fabrice Couvreur wrote: > > Hi Pablo, > > These options are to be added to \defineframedtext [] [] ? > > Without success at home ! > > Hi Fabrice, > > your sample should read: > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyCo

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

2018-08-18 Thread Pablo Rodriguez
On 08/18/2018 11:11 AM, Fabrice Couvreur wrote: > Hi Pablo, > These options are to be added to \defineframedtext [] [] ? > Without success at home ! Hi Fabrice, your sample should read: \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.

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

2018-08-18 Thread Fabrice Couvreur
Hi Pablo, These options are to be added to \defineframedtext [] [] ? Without success at home ! Fabrice Le sam. 18 août 2018 à 10:17, Pablo Rodriguez a écrit : > On 08/18/2018 01:08 AM, Fabrice Couvreur wrote: > > Hello, > > That's true Wolfgang, I just checked right now, sor

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

2018-08-17 Thread Wolfgang Schuster
, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text

[NTG-context] Text wrapped with an ornement

2018-08-17 Thread Fabrice Couvreur
] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em

Re: [NTG-context] Strange behavior !

2018-07-16 Thread Otared Kavian
ames filled in black​ ​! > Thank you > Fabrice > > \setupbodyfont [palatino,11pt] > > \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][.75(MyColorB,white)] > > \defineframedtext >[MyText] >[frame=off, > backgrou

Re: [NTG-context] Strange behavior !

2018-07-15 Thread Alan Braslau
ColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][.75(MyColorB,white)] > > \defineframedtext >[MyText] >[frame=off, > background=MyFrame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgra

[NTG-context] Strange behavior !

2018-07-15 Thread Fabrice Couvreur
Good evening, In the code below, I get frames filled in black ​ ​ ! Thank you Fabrice \setupbodyfont [palatino,11pt] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width

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

2018-03-21 Thread Pablo Rodriguez
d after don’t work with framed texts. Pablo > In the following example it seems both keys are ignored: > > > \defineframedtext[AddressBox][before=\red,after=\small] > > \starttext >\green A >\AddressBox{\cldcontext{"Hele"}} >B >

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

2018-01-12 Thread Hans Hagen
rawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\u

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

2018-01-12 Thread Jeong Dal
ndingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[lin

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

2018-01-12 Thread Hans Hagen
aled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \

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

2018-01-12 Thread Hans Hagen
b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [F

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

2018-01-11 Thread Jeong Dal
; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[line,halfline]}, %before={\blank[line]}, after={\

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] 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
ext, when you want \startMyFrame[Title=A Title], and when to stop the frame with the \stopMyFrame command. Have a look to 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

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
e a look to 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,

[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

  1   2   3   4   >