Re: [NTG-context] Alphabet & color

2020-07-31 Thread Marcus Vinicius Mesquita
Hi, again With the suggestions you gave I managed to obtain the functionality I need, almost. Somehow letters with accents like á ã é ó õ and also ç don't get the same color of the base letters given in the colorfont.lfg below: return { name = "coloralphabet", co

Re: [NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 22.07.2020 um 17:09: Hello, With the latest version of lmtx, the background color of cells does not work. Unrelated to tables. You can reduce xtable and natural table based examples very often to a simple \framed because both tables types inherit many features

[NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Fabrice Couvreur
Hello, With the latest version of lmtx, the background color of cells does not work. Thank you. Fabrice \starttext \startxtable [align={middle,lohi}, offset=0.8ex,background=color, backgroundcolor=red,frame=off] \startxrow \startxcell \m{\displaystyle

Re: [NTG-context] Code lua in a table

2020-07-21 Thread Fabrice Couvreur
Hello, I am making progress and I almost get what I want to achieve but I still have two problems : how to color cells not containing numbers with the same color as the others ? how to color in salmon, for example, cells 1 2 ? 3

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
dle,lohi}, width=1cm,offset=0.8ex,bodyfont=9pt"}) for i = 0, 9 do context.startxrow({"background=color,backgroundcolor=cyan"}) for j = 0, i do context.startxcell() context(Binom(i,j)) context.stopx

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
end > > > > context.startxtable({"align={middle,lohi}, > > width=1.2cm,offset=0.8ex,bodyfont=9pt"}) > > for i = 1, 10 do > >context.startxrow({"background=color,backgroundcolor=cyan"}) > &

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
= 0) then              return 1        else              return (n*Binom(n-1,k-1))/k        end     end     context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"})     for i = 1, 10 do           context.startxrow({"background=color,ba

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
urn (n*Binom(n-1,k-1))/k end end context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) for i = 1, 10 do context.startxrow({"background=color,backgroundcolor=cyan"}) for j = 1, i do

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
font=9pt"}) context.startxrow({"background=color,backgroundcolor=green"})     for i = 0, 10 do       for j = 0, i do           context.startxcell()           context(Binom(i,j))           context.stopxcell() end     end     context.stopxrow() context

[NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
= 0) then return 1 else return (n*Binom(n-1,k-1))/k end context(Binom(n,k)) end context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) context.startxrow({"background=color,backgroundcolor=green"

Re: [NTG-context] Alphabet & color

2020-07-16 Thread Marcus Vinicius Mesquita
I got it. Thanks. Marcus Vinicius On Thu, Jul 16, 2020, 13:57 Hans Hagen wrote: > On 7/16/2020 6:41 PM, Marcus Vinicius Mesquita wrote > > > I tried your code and it works fine. But where do the color schemes > > default and whatever come from? How can they be changed? &g

Re: [NTG-context] Alphabet & color

2020-07-16 Thread Hans Hagen
On 7/16/2020 6:41 PM, Marcus Vinicius Mesquita wrote I tried your code and it works fine. But where do the color schemes default and whatever come from? How can they be changed? defauls is defined in the example .. colorshemes have numbers: \definecolor[colorscheme:1:1][s=.75] \definecolor

Re: [NTG-context] Alphabet & color

2020-07-16 Thread Marcus Vinicius Mesquita
Thank you, Hans for your answer. I tried your code and it works fine. But where do the color schemes default and whatever come from? How can they be changed? Best regards Marcus Vinicius On Thu, Jul 16, 2020, 04:19 Hans Hagen wrote: > On 7/16/2020 7:32 AM, Marcus Vinicius Mesquita wr

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
Hi Otared and Wolfgang, It's great, the following code does the job! Thank you so much. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \setupfloats[freeregion=no] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille

Re: [NTG-context] Text around a figure

2020-07-16 Thread Wolfgang Schuster
Otared Kavian schrieb am 16.07.2020 um 11:58: Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always, paragraph backgroundoffset=4pt

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
Wolfgang suggests is something like the following: > > \useMPlibrary[dum] > \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] > \definetextbackground[fondpaille] > [background=color, > backgroundcolor=fondpaille, > frame=off, > location=always] > &

Re: [NTG-context] Alphabet & color

2020-07-16 Thread Hans Hagen
On 7/16/2020 7:32 AM, Marcus Vinicius Mesquita wrote: Dear list I need to typeset a book for kids wich contains texts where each letter is assigned a fixed color, for example: A - - > red; B - - > blue; ... Z - - > green. What would be the best way to do this? TIA. There's more w

[NTG-context] Alphabet & color

2020-07-15 Thread Marcus Vinicius Mesquita
Dear list I need to typeset a book for kids wich contains texts where each letter is assigned a fixed color, for example: A - - > red; B - - > blue; ... Z - - > green. What would be the best way to do this? TIA. Marcus

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
Hi Fabrice, I think what Wolfgang suggests is something like the following: \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=always] \starttext

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackground

[NTG-context] Text around a figure

2020-07-15 Thread Fabrice Couvreur
Hello, I always encounter difficulties with the placement of figures in such a way that the text envelops the figure. Thank you. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-13 Thread Hans Hagen
On 7/12/2020 11:54 PM, Jairo A. del Rio wrote: El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl <mailto:j.ha...@xs4all.nl>) escribió: You get a list of defined color names in 'xwi' with:     attributes.colors.setlist("xwi") Nice, it works!

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl) escribió: > You get a list of defined color names in 'xwi' with: > > attributes.colors.setlist("xwi") > Nice, it works! I note the first method only works when \usecolors[xwi] is present

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Hans Hagen
On 7/12/2020 9:58 PM, Jairo A. del Rio wrote: Hi, list. I've got a question about color schemes in ConTeXt What if want to access the entire list of, say, xwi: for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors   (whatever action I want) end So far I'm manually setting

[NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
Hi, list. I've got a question about color schemes in ConTeXt What if want to access the entire list of, say, xwi: for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors (whatever action I want) end So far I'm manually setting colors from colo-imp-xwi.mkiv, but I suspect

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-08 Thread Gerben Wierda
ty). > > The error message stays with > > \startMPpage[instance=doublefun] > draw (0,0)--(100,0)—(100,2) dashed withdots; > \stopMPpage > > but disappears with > > \startMPpage[instance=doublefun] > draw (0,0)--(100,0)—(100,3) dashed withdots; > \s

Re: [NTG-context] lpath to select last item

2020-07-08 Thread Hans Hagen
ups xml:li \startitem \xmlflush{#1} \stopitem \stopxmlsetups \startxmlsetups xml:item:first \startitem \color[blue]{\xmlflush{#1}} \stopitem \stopxmlsetups \startxmlsetups xml:item:last \startitem \color[red]{\xmlflush{#1}} \stopitem \stopxmlsetups \starttext \xmlpro

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Jairo A. del Rio
; > \startMPpage[instance=doublefun] > draw (0,0)--(100,0)—(100,2) dashed withdots; > \stopMPpage > > but disappears with > > \startMPpage[instance=doublefun] > draw (0,0)--(100,0)—(100,3) dashed withdots; > \stopMPpage > > > Additionally, on the Adobe f

[NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Gerben Wierda
forums I have been told: Also, the color space is device gray (not RGB or CMYK) which might be a more generic problem with LMTX output, I don’t know. It might also be an Adobe problem. Previw.app on macOS handles the result without problems. ConTeXt standalone: This is LuaMetaTeX

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
use focus=standard and cross-references together? Hmm. I > >> think it should be fixed... But maybe it's an intended feature. Thanks, > >> Otared. > > > > Hi Jairo, > > > > "focus=standard" works fine with footnotes. > >

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Hans Hagen
Jairo, "focus=standard" works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopp

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Wolfgang Schuster
works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample do

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Pablo Rodriguez
n[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample doesn’t work, because of the referenc

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
the interaction works fine. > > Best regards: Otared K. > > > On 6 Jul 2020, at 01:15, Jairo A. del Rio > wrote: > > > > The following: > > > > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > > > \defineenume

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Otared Kavian
Hi Jairo, If you remove focus=standard the interaction works fine. Best regards: Otared K. > On 6 Jul 2020, at 01:15, Jairo A. del Rio wrote: > > The following: > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > \defineenume

[NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-05 Thread Jairo A. del Rio
The following: \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] \starttext \startproposition[1] \dorecurse{10

Re: [NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Hans Hagen
On 6/20/2020 4:48 PM, Otared Kavian wrote: Hi all, I have a family of graphs to draw in Metapost and I would like to attribute a different color to each of them according to the value of a certain variable. Assuming that the path mygraph(j) depends on the variable j, which is computed within

[NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Otared Kavian
Hi all, I have a family of graphs to draw in Metapost and I would like to attribute a different color to each of them according to the value of a certain variable. Assuming that the path mygraph(j) depends on the variable j, which is computed within a lua code and passed to Metapost, I wonder

Re: [NTG-context] margin comment above heading

2020-06-18 Thread Pablo Rodriguez
\starttext >> \blank[force, 10em] >> \section{Move comment above this heading} >> \startparagraph[setups=tinytiny] >> \dontleavehmode >> \comment[location={rightmargin}, color=orange] >> {comment} >>

Re: [NTG-context] margin comment above heading

2020-06-17 Thread Henning Hraban Ramm
; \setupinterlinespace[1sp] >> \stopsetups > > ??? > >> \setupinteraction[state=start] >> \showframe\showgrid >> \starttext >> \blank[force, 10em] >> \section{Move comment above this heading} >> \startparagraph[setups=tinytiny]

Re: [NTG-context] margin comment above heading

2020-06-17 Thread Wolfgang Schuster
\blank[force, 10em] \section{Move comment above this heading} \startparagraph[setups=tinytiny] \dontleavehmode \comment[location={rightmargin}, color=orange] {comment} \stopparagraph \stoptext Is there a way to move the comment above the heading

[NTG-context] margin comment above heading

2020-06-16 Thread Pablo Rodriguez
this heading} \startparagraph[setups=tinytiny] \dontleavehmode \comment[location={rightmargin}, color=orange] {comment} \stopparagraph \stoptext Is there a way to move the comment above the heading that goes before? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
, background=color, backgroundcolor=lightblue, ] \definevimtyping [RCODE] [ syntax=r, directory=output, strip=yes, escape=yes, before={\blank[quarterline]\startleftbartext}, after={\stopleftbartext}, ] \define[1]\ShowOutput {\typeRCODEfile{\externalfilterinputfile

Re: [NTG-context] Bar within math (amended)

2020-06-15 Thread Henning Hraban Ramm
> Am 11.06.2020 um 13:41 schrieb Axel Kielhorn : > >> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster >> : >> >> Use a textbackground to highlight parts of your text. >> >> \definetextbackground >> [Highlight] >> [frame=off, >> bac

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
on, >rulethickness=1ex, >offset=0.25ex, >loffset=3ex, >background=color, >backgroundcolor=lightblue, > ] > > \definevimtyping > [RCODE] > [ >syntax=r, >directory=output, >strip=yes, >escape=yes, >befo

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
inecolor [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, background=color, backg

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
eftbartext] [ width=local, frame=off, framecolor=darkblue, leftframe=on, rulethickness=1ex, offset=0.25ex, loffset=3ex, background=color, backgroundcolor=lightblue, ] \definevimtyping [RCODE] [ syntax=r, directory=output, strip=yes, escape=yes,

[NTG-context] using annotations for extended print handling

2020-06-14 Thread Pablo Rodriguez
ld be passed automatically to a \filterpages command. A sample that generates something similar: \setuppapersize[A8] \setupinteraction[state=start] \starttext \dorecurse{5}{\part{\romannumerals{\recurselevel}} \dorecurse{15}{\chapter{\recurselevel} \comment [title=whatever,

Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread Axel Kielhorn
> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster > : > > Use a textbackground to highlight parts of your text. > > \definetextbackground > [Highlight] > [frame=off, > background=color, > backgroundcolor=yellow] > > \starttext > > \m{1

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread mf
this This is LuaMetaTeX, Version 2.06.07 system  > ConTeXt  ver: 2020.06.10 Seems OK to me. I get the same result with LuaTeX+MkIV 2020-05-08 and LMTX 2020-06-10, even commenting out \dontleavehmode. The only difference is the figure color: blue for LMTX, yellow for MkIV. Ma

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
Lukas/ConTeXt schrieb am 09.06.2020 um 20:28: Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-09 Thread Fabrice L
om} { >\keepblocks[Question] > } > > \starttext > >Text A > >\beginQuestion >Question A…. >\endQuestion > >Text B > >\beginQuestion >Question B…. >\endQuestion > >\page > >\doifnotmod

[NTG-context] Setup left, right, between entries in custom cite of multiple references

2020-06-06 Thread Mike O'Connor
[chemistry:cite:formula] [left={\color[blue]{(}}, % the colour to differentiate from \setupbtx below right={\color[red]{)}}, inbetween={\btxcomma\btxspace}, % no effect ] \setupbtx [chemistry:cite:formula] [left={(}, right={)}, inbetween={\btxcomma\btxspace}, ] Grateful for any guidance as to how I can

Re: [NTG-context] [overstrike] with different color?

2020-06-05 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 03.06.2020 um 16:30: Am 03.06.2020 um 16:19 schrieb Floris van Manen : What is the preferred way to overstrike a text with a different color? This does not work: One \overstrike[color=red]{Two} Three \setupbar[color=red,rulethickness=1.4] % measurement in pt

Re: [NTG-context] [overstrike] with different color?

2020-06-05 Thread Henning Hraban Ramm
> Am 04.06.2020 um 20:00 schrieb Floris van Manen : > >> \setupbar[color=red,rulethickness=1.4] % measurement in pt > > the command also takes a parameter offset as well as dy. > I assume the offset will position the line higher / lower . > But I see no effect.

Re: [NTG-context] [overstrike] with different color?

2020-06-04 Thread Floris van Manen
On 03/06/2020 16:30, Henning Hraban Ramm wrote: > \setupbar[color=red,rulethickness=1.4] % measurement in pt the command also takes a parameter offset as well as dy. I assume the offset will position the line higher / lower . But I see no effect. \setupbar[color=red,rulethickness=.3,offset=

Re: [NTG-context] [overstrike] with different color?

2020-06-03 Thread Henning Hraban Ramm
> Am 03.06.2020 um 16:19 schrieb Floris van Manen : > > What is the preferred way to overstrike a text with a different color? > This does not work: > One \overstrike[color=red]{Two} Three \setupbar[color=red,rulethickness=1.4] % measurement in pt See also rules-m

[NTG-context] [overstrike] with different color?

2020-06-03 Thread Floris van Manen
What is the preferred way to overstrike a text with a different color? This does not work: One \overstrike[color=red]{Two} Three .F pEpkey.asc Description: application/pgp-keys ___ If your question is of interest

[NTG-context] Bar within math

2020-05-30 Thread context
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar $1 + 2 = \startbar[MyBar

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
]   \setupbackgrounds[page][background=color,backgroundcolor=blue,]   \page[empty,right]   \popbackground} \stopsetups As you see the image is not in the right place and of course the pagenumbering is wrong. Use \startTEXpage[pagestate=start] to increase the page number with TEX pages. Thanks

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
on the even page before a chapter. >> >> \startsetups [chapter:before] >>    \doifoddpageelse >> {} >> {\pushbackground[page] >>   \setupbackgrounds[page][background=color,backgroundcolor=blue,] >>   \page[empty,right] >>   \po

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
this setups at some point in the text to insert eg. a picture on the even page before a chapter. \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
to insert eg. a picture on the even page before a chapter. \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups Here comes the not so mwe

Re: [NTG-context] About the use of command handlers

2020-05-29 Thread Hans Hagen
\def\do_look#id{% \edef\currentlook{#id}% \dosingleempty\do_do_look% } \def\do_do_look[#parms]#content{% \begingroup \iffirstargument\setupcurrentlook[#parms]\fi %This handles style and color \uselookstyleandcolor\c!style\c!color% #content% \endgroup% } \protect

[NTG-context] About the use of command handlers

2020-05-28 Thread Jairo A. del Rio
}% \dosingleempty\do_do_look% } \def\do_do_look[#parms]#content{% \begingroup \iffirstargument\setupcurrentlook[#parms]\fi %This handles style and color \uselookstyleandcolor\c!style\c!color% #content% \endgroup% } \protect %% \stopmodule What have I

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-21 Thread Pablo Rodriguez
On 5/20/20 11:25 PM, Hans Hagen wrote: > On 5/20/2020 10:26 PM, Jairo A. del Rio wrote: >> I did. It turns out that installing graphicsmagick does the trick (pun >> intended) for Noto Color Emoji. However, the issue persists for SVG >> fonts and the same message appears, desp

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
Pablo pointed out the bug in Evince. Sorry too. I've used another PDF viewer and SVG color displays correctly. Thanks. El mié., 20 de may. de 2020 a la(s) 16:32, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Info from \luatexbanner > > For ConTeXt (LuaTeX): This is LuaTeX

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
gt; I did. It turns out that installing graphicsmagick does the trick (pun > > intended) for Noto Color Emoji. However, the issue persists for SVG > > fonts and the same message appears, despite of having cleaned the cache > > (I've used mtxrun --script cache --erase)

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen
are black and white, no color after wiping the cache. Made no difference with a brand-new install either. Just accidentally, I discovered this is an issue in Evince. LMTX should handle color in LMTX with other PDF code than in MkIV. won't happen ... actually, at some point mkiv will use a similar

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen
On 5/20/2020 10:26 PM, Jairo A. del Rio wrote: I did. It turns out that installing graphicsmagick does the trick (pun intended) for Noto Color Emoji. However, the issue persists for SVG fonts and the same message appears, despite of having cleaned the cache (I've used mtxrun --script cache

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I did. It turns out that installing graphicsmagick does the trick (pun intended) for Noto Color Emoji. However, the issue persists for SVG fonts and the same message appears, despite of having cleaned the cache (I've used mtxrun --script cache --erase). Using the code Pablo sent, with EmojiOne

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Pablo Rodriguez
On 5/20/20 9:39 PM, Hans Hagen wrote: >> [...] >> LMTX (2020.05.18 16:50) displays only black and white icons. >> >> I think this might be a bug in LMTX. >> >> Could you confirm the issue? > what if you wipe the cache Many thanks for your reply, Hans. ic

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen
][Twemoji Mozilla][features={color}] \setupbodyfont[emoj] \starttext 臘 \stoptext MkIV (2020.01.30 14:13) displays colored icons. LMTX (2020.05.18 16:50) displays only black and white icons. I think this might be a bug in LMTX. Could you confirm the issue? what if you wipe the cache

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Pablo Rodriguez
On 5/20/20 12:26 PM, Jairo A. del Rio wrote: > [...] > Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I > doing wrong? Hi Jairo, using latest ConTeXt with the following sample, I get these results: \definefontfamily[emoj][rm][Twemoji Mozilla][featur

[NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
i has no color when compiled with LuaTeX. Furthermore, the log includes a lot of lines like the ones below: fonts > svg conversion > executing runner 'otfsvg': inkscape --export-area-drawing --shell > temp-otf-svg-shape.log fonts > svg conversion > processing 1829 svg containers xml

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster
which can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] [...] \definehighlight [BufferStyle] [style=smallitalic, color=blue] Use the highlight-environment or create a new startstop-environment to apply style

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
er > [before=\blank\blackrule\startnarrower\BufferStyle, > after=\stopnarrower\blackrule\blank] > > %% alternatively define custom buffers > \definebuffer > [foobar] > > \setupblackrules > [width=1cm, >height=1pt, >color=gray] > > \defi

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
On Sun, 17 May 2020, Nicola wrote: 2. The wiki has no mention of \startcolorscheme... \stopcolorscheme or \setups. An example of two would be very welcome! Added documentation: https://github.com/adityam/filter/blob/dev/vim-README.md Aditya

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
er has before and after keys which can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] %% alternatively define custom buffers \definebuffer [foobar] \setupblackrules [width=1cm, height=1pt, color=gray] \definehighli

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
On Sun, 17 May 2020, Nicola wrote: On 2020-05-17, Aditya Mahajan wrote: Since I already map the minor groups to preferred groups in `t-vim`, I think that a good compromise is to enable the minor groups by default. I can do that by adding statements similar to those above in `2context.vim`.

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Nicola
On 2020-05-17, Nicola wrote: > On 2020-05-17, Aditya Mahajan wrote: >> Uploaded a new version with a fix. I have tried the latest beta and, indeed, it now seems to work as expected. Thanks! Nicola ___ If your

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Nicola
On 2020-05-17, Aditya Mahajan wrote: >> Since I already map the minor groups to preferred groups in `t-vim`, I think >> that a good compromise is to enable the minor groups by default. I can do >> that by adding statements similar to those above in `2context.vim`. This will >> not have any visual

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
Since I already map the minor groups to preferred groups in `t-vim`, I think that a good compromise is to enable the minor groups by default. I can do that by adding statements similar to those above in `2context.vim`. This will not have any visual impact on any existing code, but will allow

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
\setupinteraction[state=start] \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color,backgroundcolor=nearlywhite] \usemodule[vim] \startvimrc[name=minor-groups] hi Function cterm=NONE hi Stringcterm=NONE hi Delimiter cterm=NONE \stopvimrc \startcolorscheme[oceansunset] \def

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Nicola wrote: On 2020-05-16, Aditya Mahajan wrote: On Sat, 16 May 2020, Aditya Mahajan wrote: Moreover, if you comment line line 126 of `2context.vim` "let s:id = synIDtrans (s:id) [If you make a local copy of 2context.vim, then you need to run the file

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Nicola
On 2020-05-16, Aditya Mahajan wrote: > On Sat, 16 May 2020, Aditya Mahajan wrote: > Moreover, if you comment line line 126 of `2context.vim` > > "let s:id = synIDtrans (s:id) > > [If you make a local copy of 2context.vim, then you need to run the > file with `--mode=dev-vim` to ensure

[NTG-context] \goto not working from within \textext()

2020-05-16 Thread Gerben Wierda
This does give me ythe look of a link, but not a working link. Outside of textext() it works. Is there a way to get a working link in a MetaFun picture? Thx, G \setupinteraction [state=start, color=blue, style=bold] \starttext \goto{works}[url(https://ea.rna.nl/2011/06/05

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Aditya Mahajan wrote: On Sat, 16 May 2020, Nicola wrote: On 2020-05-14, Aditya Mahajan wrote: On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? It is supposed to work. If it doesn't, then it is a

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Nicola wrote: On 2020-05-14, Aditya Mahajan wrote: On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? It is supposed to work. If it doesn't, then it is a bug. Could you provide a complete MWE.

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Nicola
or[nearlywhite] [r=0.988, g=0.988, b=0.988] \setupinteraction[state=start] \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color,backgroundcolor=nearlywhite] \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color={co

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Thank you. That works. > On 14 May 2020, at 17:13, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 14.05.2020 um 11:47: >> Is it possible to get a transparent background in a textext()? The following >> minimal example doesn’t work. >> \starttext >>

Re: [NTG-context] Custom color schemes in t-vim

2020-05-14 Thread Aditya Mahajan
On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? In a template I wrote long time ago to typeset code, I have: \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Wolfgang Schuster
Gerben Wierda schrieb am 14.05.2020 um 11:47: Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage   [background=color,    backgroundcolor=gray] \startMPpage draw textext("\definecolor[labelbackground][a=0.2,

[NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage [background=color, backgroundcolor=gray] \startMPpage draw textext("\definecolor[labelbackground][a=0.2,r=1,g=1,b=1]\framed[height=1.2em,background=

[NTG-context] Custom color schemes in t-vim

2020-05-14 Thread Nicola
Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? In a template I wrote long time ago to typeset code, I have: \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color={colortwo},\c!style=italic

[NTG-context] \goto works but links don't when passed via textext() in METAPOST

2020-05-10 Thread Gerben Wierda
I am trying to get an URL link in a textext() via METAPOST. I’ve got this before \starttext (or after, tried both): \setupinteraction [state=start, color=blue, style=bold] The intended link shows up in blue and bold, but it is not clickable. I’ve turned ConTeXt tracing on and see

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
}{% \inframed[ frame=off,background=shadow, foregroundcolor=captioncolor,]{% \bfx{#3}%\vbox{#3}% }% }% }% }} % debugging information \setlayer[bgpicleft][x=0mm,y=-\Bleed]{% \color[debugcolo

Re: [NTG-context] \setupinteraction [ ...] do not work

2020-04-28 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 28.04.2020 um 15:39: Hi, It seemed to me that it was necessary to proceed in this way to create a link in a pdf file; it does not work. Thank you. Fabrice \setupinteraction[state=start,color=darkred] \starttext \goto{vecteur directeur}[https://www.youtube.com/watch

<    2   3   4   5   6   7   8   9   10   11   >