[NTG-context] Re: Back in the 90s

2024-04-13 Thread Hans Hagen
drive viewers we went from epson dot matrix printer -> early 300 dpi laser -> 600 dpi laser printer -> high speed oce 512 dpi printer (metric) -> high speed oce 600 dpi printer (+ crappy canon color laser printer) -> fast page-wide hp color inkjet office printer in mkii al

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-10 Thread Hans Hagen
On 4/10/2024 5:22 AM, seyal zavira wrote: seams this code means to put a hidden text with same size behind metapost shape. but it does not work properly for me (current version: 2024.04.01 08:59) and produce empty page but with searchable hidden text. as mentioned kind = "outline" will be in

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
seams this code means to put a hidden text with same size behind metapost shape. but it does not work properly for me (current version: 2024.04.01 08:59) and produce empty page but with searchable hidden text. also when i edit the code and replace metapost part like this: \startMPcode draw

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
On 4/8/2024 8:22 AM, seyal zavira wrote: thank you Harban and Keith McKay. \startMPpage       picture tt ; tt := lmt_outline [           kind = "path",           text = "\definedfont[name:texgyrepagellabold*default]foo f o o",       ] ;       fill          

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread seyal zavira
thank you Harban and Keith McKay. \startMPpage > picture tt ; tt := lmt_outline [ > kind = "path", > text = "\definedfont[name:texgyrepagellabold*default]foo f o o", > ] ; > > fill > for i within tt : pathpart i && endfor cycle >

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Hans Hagen
On 4/7/2024 7:42 PM, Henning Hraban Ramm wrote: Am 07.04.24 um 19:05 schrieb Hans Hagen: \startMPpage picture tt ; tt := lmt_outline [ kind = "fillup", text = "\definedfont[name:texgyrepagellabold*default]foo f o o", ] xsized 12cm ; path bb ; bb := boundingbox

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
I've found my original file and the image is as Hraban says below. The code is the original in the post I quoted  and gives a green background with shaded colours in the text. Best Wishes Keith On 07/04/2024 18:42, Henning Hraban Ramm wrote: Am 07.04.24 um 19:05 schrieb Hans Hagen:

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Henning Hraban Ramm
Am 07.04.24 um 19:05 schrieb Hans Hagen: \startMPpage     picture tt ; tt := lmt_outline [     kind = "fillup",     text = "\definedfont[name:texgyrepagellabold*default]foo f o o",     ] xsized 12cm ;     path bb ; bb := boundingbox tt ;     path pp ; pp := bb enlarged 2cm ;    

[NTG-context] Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Hans Hagen
Forwarded Message Subject: Re: [NTG-context] Re: how to apply gradient color to a piece of text? Date: Sun, 7 Apr 2024 19:05:13 +0200 From: Hans Hagen To: Keith McKay On 4/7/2024 6:56 PM, Keith McKay wrote: Not for me either. I used it somewhere so I'll need to look

[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
Not for me either. I used it somewhere so I'll need to look back in my files. Keith On 07/04/2024 17:41, Henning Hraban Ramm wrote: Am 07.04.24 um 15:51 schrieb Keith McKay: Have a look at the posts starting on the 2 March 2021 with the subject heading "Shaded Large Letters in LMTX". Hans

[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Henning Hraban Ramm
Am 07.04.24 um 15:51 schrieb Keith McKay: Have a look at the posts starting on the 2 March 2021 with the subject heading "Shaded Large Letters in LMTX". Hans gave a great solution. Neither for the example in

[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
Have a look at the posts starting on the 2 March 2021 with the subject heading "Shaded Large Letters in LMTX". Hans gave a great solution. Best Wishes Keith On 07/04/2024 11:48, seyal.zav...@gmail.com wrote: hi all, when i look at luametafun manual there are some intresting examples that

[NTG-context] how to apply gradient color to a piece of text?

2024-04-07 Thread seyal . zavira
hi all, when i look at luametafun manual there are some intresting examples that can apply gradient colors to metapost paths. how i can apply this cool feature to a piece of text? i tried the code below but it does not produce any result. \definecolor[Gleft] [h=9f9393] \definecolor[Gright]

[NTG-context] New example with both sides margin

2024-03-27 Thread Ursula Hermann
Dear Pablo, Here is my example: \setuppapersize[A4] \setupbodyfont[termes, 12.50pt] \setuplayout[backspace=2.9cm, width=fit] \ininnermargin{\blackrule[color=black, height=0.10ex, width=1cm]\\{3.2.2}} \dontleavehmode \blackrule[color=black, height=0.10ex, width=13.50cm] \showframe

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
r sample makes no use of it. Sorry, but I don’t get it. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] > \definetextbackground[GrayBackground][ > locatio

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
, and Hans’ manuals are also often "in progress". A visible TODO marker might help – I’m using the following in my book to keep track of incomplete sections: \defineregister[todos] \define[1]\TODO{\inouter{\tt\color[red]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[re

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-18 Thread Hans Hagen
needs color profiles and i hope tikz doesn't add them [And in summary, to be clear: I'm good with the colour support in ConTeXt!] ok Hans - Hans Hagen | PRAGMA ADE Ridderstraat

[NTG-context] can we do binding correction?

2024-03-17 Thread Hraban Ramm
the imposition)? Also I recognized I'm not sure about the difference of the layout parameters backspace and cutspace. Hraban *) 8 participants who endured 3 hours of me mostly talking… Further questions that I couldn't answer for sure were about PDF/A or PDF/UA and how color profiles

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Jim
setmacro{\@red@}{(1 - #2) * (1 - #5)}% >> \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% >> \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}% >> \expandafter\edef\csname\string\color@#1\endcsname >> {\noexpand\xcolor@ {}{}{rgb}{\@red@,\@green@,\@blu

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Jim
will to push this (or add it in to a ConTeXt >> distribution version), I'd still like the cmyk support, even if there is no >> ability to specify colour profiles: >> \def\pgfutil(a)emu@cmyk#1#2,#3,#4,#5\@nil >> { >> \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% >> \pgf

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
orry, but I don’t get it. > \defineenumeration >   [theorem] >   [ >     text=Theorem, >     title=yes, >     width=fit, >     distance=0.2em, >     alternative=serried, >   ] > \definetextbackground[GrayBackground][ >   location=paragraph, >   background=color, >

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-15 Thread Hans Hagen
)}% \expandafter\edef\csname\string\color@#1\endcsname {\noexpand\xcolor@ {}{}{rgb}{\@red@,\@green@,\@blue@}} } I don't see that it would hurt anything, even if it doesn't give complete cmyk support. We provide \pgf@context@registercolor \pgf@context@registergray \pgf@context@registerrgb \pgf

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-15 Thread Max Chernoff
,#5\@nil > { > \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% > \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% > \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}% > \expandafter\edef\csname\string\color@#1\endcsname > {\noexpand\xcolor@ {}{}{rgb}{\@re

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Jim
, even if there is no ability to specify colour profiles: \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil { \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}% \expandafter\edef\csname\string\color

[NTG-context] PDF, runner, and TikZ patches

2024-03-14 Thread Max Chernoff
100644 --- a/tex/generic/pgf/utilities/pgfutil-context.def +++ b/tex/generic/pgf/utilities/pgfutil-context.def @@ -26,8 +26,17 @@ \def\pgfutil@definecolor#1#2#3{\csname pgfutil@emu@#2\endcsname{#1}#3\@nil} \def\pgfutil@emu@rgb#1#2,#3,#4\@nil{\expandafter\def\csname\string\color@#1\endcsname

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Max Chernoff
ne. > Indeed, no need to show of the obvious > > \definebar >[mybar] >[backgroundbar] >[height=\strutht,depth=\strutdp,offset=.250ex,color=red] > > [...] That looks perfect, thanks! -- Max __

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
t,depth=\strutdp,offset=.250ex,color=red] \definebar [yourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=blue] \definebar [ourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=green] \starttext \startTEXpage[width=4cm] \startformul

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
PM, seyal zavira wrote: > > thanks for your reply > > > > yes but i don't have problem with regular svgs but when svgs has > > gradient color it does not produce any color in output. > > > > you can see my svg in attachment. > svg gets worse and worse (esp the i

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Hans Hagen
On 3/12/2024 2:53 PM, seyal zavira wrote: thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. svg gets worse and worse (esp the inheritance model) ... anyway, i can

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
| www.pragma-ade.nl | www.pragma-pod.nl - inter-001.pdf Description: Adobe PDF document \definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c \breakhere \myba

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. On Tue, Mar 12, 2024 at 9:43 AM Jean-Pierre Delange wrote: > Hi ! > > Did you have a look at this :

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
mula \samplefile{knuth} \stoptext \unprotect \newbox\hightlight_tmp_box \definemathframed[_highlight][ location=mathematics, frame=off, background=color, backgroundcolor=lightred, backgroundoffset=0.25ex, ] \tolerant\def\highlighthere#1\alignhere#2#3\breakhere{% \setbo

[NTG-context] weird character normalization in the wiki

2024-03-09 Thread Pablo Rodriguez via ntg-context
normalization on the way]): \definefontfamily[mainface][rm][EBGaramond] \setupbodyfont[mainface, 500pt] \definecolor [tred] [r=1,t=.5,a=1] \definecolor [tblue] [b=1,t=.25,a=1] \starttext \startTEXpage[offset=1ex] \startoverlay {\color[tred]{Ά}} {\color[tblue]{Ά}} \stopoverlay

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
it in a better way. Finally instead of \blackrule[color=black, height=0.10ex, width=13.50cm] you can use just \hairline, and the thickness and color of such a \hairline can be adjusted by \setupthinrules[rulethickness=4pt,color=darkgreen] (for instance), which should be put before

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
, alternative=serried, ] \definetextbackground[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.8\bodyfontsize, rightoffset=.8\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black

[NTG-context] enhancing documentation: initials

2024-03-05 Thread Henning Hraban Ramm
; includes the mark in the initial, and it works only with a few languages, e.g. English and French, but not e.g. German or Dutch: """ \mainlanguage[de] \setuppapersize[A6] \setupinitial[n=2,color=orange,] \starttext \start \setupinitial[method=first] \placeinitial \quotation{Keine andere

[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread Hans Hagen via ntg-context
On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em

[NTG-context] issues scaling glyphs of Twemoji Mozilla

2024-03-02 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a} \scale[width=30em]{\cg } \stoptext Using current latest from both

[NTG-context] Re: Japanese

2024-03-01 Thread Emanuel Han via ntg-context
In attached example, the opening Brackets (I marked them with > > \color[red]{【} and \color[red]{{}) are taking the previous character > > with them to the next line. Please remove these to see that the > > previous character would stay on the previous line. Thanks Wolfgang > >

[NTG-context] Re: Japanese

2024-03-01 Thread Wolfgang Schuster
, the opening Brackets (I marked them with \color[red]{【} and \color[red]{{}) are taking the previous character with them to the next line. Please remove these to see that the previous character would stay on the previous line. Thanks Wolfgang for checking wether this is a bug. Can you stick to fonts

[NTG-context] Re: Japanese

2024-03-01 Thread Emanuel Han via ntg-context
Dear all, thanks for your contributions. Sure I'll update the https://wiki.contextgarden.net/Chinese_Japanese_and_Korean hopefully with the help of Jeong Dal and others as soon as things are sorted out. In attached example, the opening Brackets (I marked them with \color[red]{【} and \color[red

[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
Dear List, At Work everything works fine now. Many thanks for those, who have written me. I have a question to my paragraphs: \definetextbackground[Paragaph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
be greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
d [align=middle,topframe=dash,frame=off] {\samplefile{tufte}} \framed [align=middle, frame=dash, dashstep=.01hs, rulethickness=1pt] {\samplefile{tufte}} \framed [align=middle, frame=dash, dashstep=10pt, rulethickness=2pt, background=color, background

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
dth, align={flushleft,broad,nothyphenated}] \setupinteraction[state=start, color=darkblue] \starttext \xmlprocessfile{list}{mwe.xml}{} \stoptext % finis mwe.pdf Description: Adobe PD

[NTG-context] color profiles

2024-02-07 Thread Henning Hraban Ramm
Hi, I thought I could finally setup color management properly instead of converting all print PDFs with Acrobat Pro… On the wiki, there’s something in https://wiki.contextgarden.net/PDFX; I updated it a bit, but we (I?) should combine it with https://wiki.contextgarden.net/PDF/A … How can I

[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
Dear list, It seems with one of the latest lmtx this old reported issue (https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back. MWE: \setupinteraction[state=start,color=red,style=] \setupbtx[aps:cite][alternative=entry] \usebtxdefinitions[aps] \startbuffer [bib] @ARTICLE

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Hans Hagen
in the end wr're quite okay nowadays. If you run context with \tracingall you'll see that more goes on. For me 40 pps sounds not that bad. If you use only text you can get to 500 pps but that's not realistic. Maybe your style is suboptimal. Also, open type fonts, opentype math, unicode, color, etc etc

[NTG-context] Re: [ \copypages ]

2024-01-18 Thread Floris van Manen via ntg-context
On 18/01/2024 12:10, Hans Hagen via ntg-context wrote: yes but experimental and not yet documented I don't mind experimenting with it. e.g. I try to change the font color in existing pdf documents from black to blue. At the moment my workaround is using mutool to export pages to svg

[NTG-context] Re: [ \copypages ]

2024-01-18 Thread Hans Hagen via ntg-context
On 1/17/2024 10:20 PM, vm via ntg-context wrote: Is there a (hidden) option that allows for changing the font color of external included pdfs yes but experimental and not yet documented Hans

[NTG-context] Re: [ \copypages ]

2024-01-17 Thread Henning Hraban Ramm
Am 17.01.24 um 22:20 schrieb vm via ntg-context: Is there a (hidden) option that allows for changing the font color of external included pdfs \copypages[file.pdf][color=blue] does not work as intended ;-) No, it can’t. You can try to use transparency: put a colored area on top of the PDF

[NTG-context] [ \copypages ]

2024-01-17 Thread vm via ntg-context
Is there a (hidden) option that allows for changing the font color of external included pdfs \copypages[file.pdf][color=blue] does not work as intended ;-) .Floris ___ If your question is of interest to others

[NTG-context] Width of captions and notes in outer margin not correct on even pages

2024-01-09 Thread Milan cel Mare via ntg-context
ow}, width=\outermarginwidth, headcolor=red, color=green, style={\tfx\setupinterlinespace}, align=width] \setupexternalfigures[location=default] \setupmargindata[style={\tfx}, stack=yes] \setupmargindata[inouter][color=orange] \setupmargindata[ininner][color=blue] \showframe \starttext \section{Margin Tes

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Henning Hraban Ramm
Am 09.01.24 um 14:43 schrieb G.C.H.M. Verhaag via ntg-context: Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Mikael Sundqvist
Hi, On Tue, Jan 9, 2024 at 2:45 PM G.C.H.M. Verhaag via ntg-context wrote: > > Hi, > The example below works as expected, but within my product it doesn't. > > % Subject example before and after! > > \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[no

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}] \starttext A paragraph before calling the subject. \subject

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
72dpi) > > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > > > > \stopMPpage > > } > > > > \stoptext > > > > On Dez. 2 2023, at 5:22 pm, Mikael Sundqvist wrote: > > > > Hi Emanuel, > > > > I am not sure I u

[NTG-context] Re: 2024

2024-01-02 Thread Fabrice L
It's not that much code but I need to add a keyword interface. It's also > something we might play with a little at this years meeting so ... > > (I added a gray scale option for tyhose without color printer.) > > Here's a big one (the xmas card): > > http://www.pragma-ade

[NTG-context] Re: 2024

2024-01-02 Thread Hans Hagen via ntg-context
for tyhose without color printer.) Here's a big one (the xmas card): http://www.pragma-ade.nl/ctx-group-2023.pdf Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over changing sty

[NTG-context] Re: error with definestartstop and startmode

2023-12-18 Thread Aditya Mahajan
led or disabled. > > %\enablemode[H] > > \startmode [H] >   \definestartstop [H] [color=blue] > \stopmode > > \startnotmode [H] >   \define\startH{\ignoreupto\stopH} > \stopnotmode > > \starttext > > xxx \startH yyy \sto

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
; fill fullcircle scaled GlobeDiameter withcolor .9white ; % Fill a circle with the water color. drawglobe(23, 0) scaled GlobeDiameter withcolor .75white ;% Draw the land. draw fullcircle scaled GlobeDiameter withcolor black ;% Add a border, if you want. \stopMPpage \stopbuffer

[NTG-context] Seeking advice for module that draws globes

2023-12-17 Thread Gavin via ntg-context
GlobeDiameter = 10cm ; fill fullcircle scaled GlobeDiameter withcolor .9white ; % Fill a circle with the water color. drawglobe(23, 0) scaled GlobeDiameter withcolor .75white ;% Draw the land, centered on the given latitude and longitude. draw fullcircle scaled GlobeDiameter withcolor black

[NTG-context] Re: error with definestartstop and startmode

2023-12-17 Thread Wolfgang Schuster
\beginH TEST\endH test You can create different versions of your environment and let context choose one whether the mode is enabled or disabled. %\enablemode[H] \startmode [H]   \definestartstop [H] [color=blue] \stopmode \startnotmode [H]   \define\startH{\ignoreupto\stopH} \stopnotmode

[NTG-context] Re: error with definestartstop and startmode

2023-12-16 Thread Hans Hagen via ntg-context
On 12/16/2023 9:17 AM, Peter Münster wrote: Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \sto

[NTG-context] error with definestartstop and startmode

2023-12-16 Thread Peter Münster
Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut her

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
> On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
Ursula Hermann schrieb am 13.12.2023 um 15:22: Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-14 Thread Gerion Entrup
} > > function userdata.mycommand(keywords, keyvals, str) > keyword_options = utilities.parsers.settings_to_array(keywords) > named_values = utilities.parsers.settings_to_hash(keyvals) > > context('First option = ' .. keyword_options[1]) > context('\\par')

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Ursula Hermann
Dear Henning, If I change the name of the textbackground with my example, I sent yesterday, there is no color in the paragraph. Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Mittwoch, 13. Dezember 2023 15:52:08 An: mailing list for ConTeXt users

[NTG-context] Re: About framedtext

2023-12-13 Thread Alan Braslau via ntg-context
On Wed, 13 Dec 2023 18:55:34 +0100 Wolfgang Schuster wrote: > This was added a few years ago (AFAIR to provide something similar to > the TikZ color command). You actually mean similar to the MetaPost color command.

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-13 Thread Bruce Horrocks
named_values = utilities.parsers.settings_to_hash(keyvals) context('First option = ' .. keyword_options[1]) context('\\par') context('Color chosen = ' .. named_values['color']) context('\\par') context('Curly braces = ' .. str) context('\\par') end \stopluacode \def\mycommand[#1

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
(white)]    \definecolor[MyColorA][.75(MyColorB,white)] I never saw this syntax in ConTeXt. This was added a few years ago (AFAIR to provide something similar to the TikZ color command). I thought it looked like TikZ. And it’s actually documented in https://wiki.contextgarden.net/Command

[NTG-context] Re: About framedtext

2023-12-13 Thread Wolfgang Schuster
)] I never saw this syntax in ConTeXt. This was added a few years ago (AFAIR to provide something similar to the TikZ color command). Wolfgang ___ If your question is of interest to others as well, please add

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
t[k] = v return v end) local replacer = utilities.templates.replacer -- todo: RuleColor -> just string ? -- todo: fetch them instead fo push them -- local predefined = { -- ["fake:word"] = replacer [[ -- FakeWord(%width%,%height%,%dep

[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: Problem with the paragraph

2023-12-13 Thread Henning Hraban Ramm
Am 13.12.23 um 15:22 schrieb Ursula Hermann: Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definetextbackground[paragraph][ \startparagraph \startparagraph starts a paragraph environment. If you overwrite it by defining another

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper

[NTG-context] Re: (again) wrong destination types?

2023-12-06 Thread Pablo Rodriguez via ntg-context
setupinteraction[state=start,page=fit,focus=standard] > afterwards. Many thanks for your reply, Bruce. The following code seems to solve my issues: \def\MyGoTo#1[#2]{\setupinteraction[state=start, style=, display=new, color=, contrastcolor=, page={auto,name}, focus=standard]%

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
, background=color, backgroundcolor=yellow, framecorner=13, backgroundcorner=07, backgroundoffset=0.5em, ]{Das Runde muss ins Eckige} \blank \framed[ frame=on, corner=round, frameoffset=0.5em, framecolor=black, background=color, backgroundcolor=darkgreen, backgroundoffset=1em

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
ext] Re: Colored Paragraph > > Am 05.12.23 um 14:16 schrieb Ursula Hermann: >> The paragraph should have a color in the background. How can I get an >> colored paragraph? > > Did you try \definetextbackground? > > https://wiki.contextgarden.ne

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
should fill the whole blackrule. -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Dienstag, 05. Dezember 2023 14:58 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: Colored Paragraph Am 05.12.23 um 14:16 schrieb Ursula Hermann: The paragraph should have a color

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: Colored Paragraph Am 05.12.23 um 14:16 schrieb Ursula Hermann: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextback

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
Am 05.12.23 um 14:16 schrieb Ursula Hermann: The paragraph should have a color in the background. How can I get an colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground Hraban

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
, alternative=serried, ] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm] \starttext \margintext {1.1.1} \startparagraph It was essential for Hasselt to have a bridge across the Zwarte Water river. The bishop of Utrecht gave

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
also p1; > > where you want it. > > /Mikael > > PS For the text thing, I did not get it. Could one have a _very > simple_ example showing only that problem and no other problem? > > On Sat, Dec 2, 2023 at 12:58 PM fv leung wrote: > > > > You didn't spe

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
toptext > > > > On Dez. 2 2023, at 5:22 pm, Mikael Sundqvist wrote: > > > > Hi Emanuel, > > > > I am not sure I understand your question, and since you use fonts that > > i do not have, I cannot test your example as is. But, maybe, if you >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
> want to redraw a picture, you can do > > addto currentpicture also p1; > > where you want it. > > /Mikael > > PS For the text thing, I did not get it. Could one have a _very > simple_ example showing only that problem and no other problem? > > On Sat, Dec 2, 2023

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
t. Could one have a _very > simple_ example showing only that problem and no other problem? > > On Sat, Dec 2, 2023 at 12:58 PM fv leung wrote: > > > > You didn't specify the color of path A in p2 and p4. So it's drawn in black. > > The other issue, I can't help.

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
one have a _very simple_ example showing only that problem and no other problem? On Sat, Dec 2, 2023 at 12:58 PM fv leung wrote: > > You didn't specify the color of path A in p2 and p4. So it's drawn in black. > The other issue, I can't help. > > Emanuel Han via ntg-context 於 2023年1

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
You didn't specify the color of path A in p2 and p4. So it's drawn in black. The other issue, I can't help. Emanuel Han via ntg-context 於 2023年12月2日 週六 下午7:23寫道: > So is there a way to circumvent these issues? Or an explanation for this > behavior, so that I can try to find a solution by

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
ncluded some of Fabrice's code into mine for testing purpose, and indeed > the multipage works now. > What is bizarre is that issues appear now that didn't appear before: > Path A is drawn with color red on page 1, and in color black on all following > pages, while it should stay red. > &

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
Dear Aditya and Fabrice, thanks for your responses. I included some of Fabrice's code into mine for testing purpose, and indeed the multipage works now. What is bizarre is that issues appear now that didn't appear before: Path A is drawn with color red on page 1, and in color black on all

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
e[0] := (0,0); TheBrownianMotion := Coordinate[0] ; variance := 10 ; \stopMPinclusions \dorecurse{600}{ % Frame \setupMPpage[background=color, backgroundcolor=SpringGreen] \startMPpage[pagestate=start] currentime := #1 ; % Just for learning : draw TheFrame withpen pencircle scaled .1in withco

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
, width=fit, distance=0.5em, alternative=serried, ] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm] \starttext \margintext {1.1.1} \starttheorem The square on the hypotenuse is equal to the sum of the squares

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
\stoptheorem > > The spurious parentheses seem to be a side-effect of having unmatched curly > brackets in the bit that I have quoted. > > The following eliminates them: > > \definemargindata [MyInMargin][inright] > \definemarginframed[MyInMargin][topframe=on,bot

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-21 Thread Fabrice Couvreur
draw r anglestriped (1,45,2) withcolor cyan; > > This will correct the problem, because each path is now drawn only once. > > Fabrice. > > Le 20 nov. 2023 à 14:47, Fabrice Couvreur a > écrit : > > Hi Otared, > It's true that the color seems identical. > Th

  1   2   3   4   5   6   7   8   9   10   >