Re: [NTG-context] Color problem
Aditya Mahajan schrieb am 21.05.2021 um 04:47: On Thu, 20 May 2021, Rik Kabel wrote: Consider the following example: \define \HighlightColor {red} Why not just use: \definecolor[HighlightColor][red] and then use color=HighlightColor, etc. This is the better way to create unique color names but the problem in the example was the use of \define instead of \defineexpandable. \defineexpandable\HighlightColor{red} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] definelabel and TEXpage
Rik Kabel schrieb am 21.05.2021 um 04:31: In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext/stoptext, all is well. Is this expected? Yes this is normal because a TEXPage has no margin areas. \showframe \starttext \blackrule[width=\hsize,height=\vsize,color=green] \startTEXpage[width=\paperwidth,height=\paperheight] \blackrule[width=\hsize,height=\vsize,color=orange] \stopTEXpage \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Color problem
On Thu, 20 May 2021, Rik Kabel wrote: > Consider the following example: > >\define \HighlightColor {red} Why not just use: \definecolor[HighlightColor][red] and then use color=HighlightColor, etc. >\definehighlight[RED][color=\HighlightColor] >\definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=] >\definelabel[BB][alternative=inright,headcolor=red,text=] >\noheaderandfooterlines >\starttext >\hsize3cm >Is the label red?\AA > >Is the label red?\BB > >\RED{Is this line red?} >\stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Color problem
Consider the following example: \define \HighlightColor {red} \definehighlight[RED][color=\HighlightColor] \definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=] \definelabel[BB][alternative=inright,headcolor=red,text=] \noheaderandfooterlines \starttext \hsize3cm Is the label red?\AA Is the label red?\BB \RED{Is this line red?} \stoptext When run with --luatex, I get the colors I expect, as: When run as lmtx, I get this: All test were run with ConTeXt ver: 2021.05.20 11:08 MKIV fmt: 2021.5.20. This worked very well for a long time, then became a problem a while ago, then it resolved, and once more it is a problem. -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] definelabel and TEXpage
In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext/stoptext, all is well. Is this expected? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Synctex broken in LMTX ?
On 5/20/2021 9:38 PM, Nicola wrote: On 2021-05-16, Hans Hagen wrote: On 5/16/2021 5:30 PM, Nicola wrote: Anyway, I am positive that he is willing to support ConTeXt in the best possible way... Sure. I met him a few times. Definitely an asset for the tex community. see? the info is just there, so you can try to convince the texshop creator to support this: -- call an external program with these arrguments (the texhop editor knows the positions as it has the viewer built in) -- go to reported file and line ...which could be as well this. Feel free to ask him, I've got a positive feedback, and the summer as an estimated time to start working on it. One thing he asked is what I was asking you: it would be useful if there were a way to sync in the other direction as well. You mean sort of trying to deduce from the synctex file where to go in the pdf? When the 'call external program' approach is used I can have an alternative (lua) output that is easier and might do that (less work). Lets first go one direction. I only have a very old macbook and an old imac i once got so no real equipment to test anythign modern. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Synctex broken in LMTX ?
On 2021-05-16, Hans Hagen wrote: > On 5/16/2021 5:30 PM, Nicola wrote: > >> Anyway, I am positive that he is willing to support ConTeXt in the best >> possible way... > > Sure. I met him a few times. Definitely an asset for the tex community. > >>> see? the info is just there, so you can try to convince the texshop >>> creator to support this: >>> >>> -- call an external program with these arrguments (the texhop editor >>> knows the positions as it has the viewer built in) >>> -- go to reported file and line >> >> ...which could be as well this. > Feel free to ask him, I've got a positive feedback, and the summer as an estimated time to start working on it. One thing he asked is what I was asking you: it would be useful if there were a way to sync in the other direction as well. Nicola ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hand Style Sketching in Metapost
On Thu, 20 May 2021, Jeroen wrote: > I have the following working example with hatching. This works fine, but > when I uncomment the sketching commands, no figure is rendered. Is the > mp-sketch macro still working? Seems to be working here with LMTX ver. 2021.04.29. See attached. Aditya hatch.pdf Description: Adobe PDF document hatch.tex Description: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Make draw and fill sketchy %D ... %D naturalizepaths; % Restore the value of draw and fill %D ... %Dendfig %D \stoptyping %D %D The code is heavily inspired by Hans Hagen's Metafun macros. %D %D The macro \type{sketchypaths} is modeled after \type{visualizepaths} from %D \filename{mp-tool}. def sketchypaths = let draw = sketchdraw ; let fill = sketchfill ; enddef ; %D Check if \filename{mp-tool} is loaded if not known context_tool : let normaldraw = draw; let normalfill = fill; def naturalizepaths = let fill = normalfill ; let draw = normaldraw ; enddef ; fi %D The variable \type{sketch_amount} determines the amount of randomness in the %D drawing numeric sketch_amount; sketch_amount := 0.75bp; %D The variable \type{sketch_passes} determines the number of times the path %D is drawn numeric sketch_passes; sketch_passes := 1; %D Based on \type{randomized}. Assumes p is path: numeric sketch_segments; sketch_segments := 20; primarydef p sketchrandomized s = ( if path p : for t = 0 step 1/sketch_segments until 1-1/sketch_segments : ((point (t*arclength(p)) on p) randomshifted s) .. controls ((postcontrol (t*arclength(p)) on p) randomshifted s) and ((precontrol ((t+1/sketch_segments)*arclength(p)) on p) randomshifted s) .. endfor if cycle p : cycle else : ((point arclength(p) on p) randomshifted s) fi else : p fi ) enddef ; %D The macro \type{sketchdraw} draws the randomized path. The %D \type{expr} ... \type{text} trick is copied from the definition of %D \type{drawarrow} def sketchdraw expr p = do_sketchdraw(p) enddef; def do_sketchdraw(expr p) text t = if (path p) : for i = 1 upto max(1,sketch_passes) : normaldraw p sketchrandomized sketch_amount withtransparency ("multiply", 1/max(1,sketch_passes)) t ; endfor; else : normaldraw p t; fi enddef; %D The macro \type{sketchfill} randomizes the path before filling it. def sketchfill expr p = do_sketchfill(p) enddef ; def do_sketchfill(expr p) text t = if (path p) : for i = 1 upto max(1,sketch_passes) : normalfill p randomized sketch_amount withtransparency ("multiply", 1/max(1,sketch_passes)) t ; endfor; else : normalfill p t; fi enddef; endinput; % Modified example from % http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html beginfig(1) pair A,B,C,O; A=(0,0); B=(3cm,0); C=(1cm,2cm); O - 1/2[B,C] = whatever * (B-C) rotated 90; O - 1/2[A,B] = whatever * (A-B) rotated 90; sketchypaths; sketch_amount := 5bp; draw A--B--C--cycle; draw O withpen pencircle scaled 4bp; sketch_amount := 2bp; draw fullcircle scaled 2abs(O-A) shifted O; endfig ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Hand Style Sketching in Metapost
I have the following working example with hatching. This works fine, but when I uncomment the sketching commands, no figure is rendered. Is the mp-sketch macro still working? \starttext \startMPcode input hatching; %input mp-sketch; %sketchypaths; %sketch_amount := 2bp; u := 1cm; path circle; circle = fullcircle scaled 4u; hatchfill circle withcolor (45, 5mm, -.5bp); draw circle; \stopMPcode \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] No kerning across discretionary nodes in latest ConTeXt upload
On 5/20/2021 12:31 PM, Marcel Fabian Krüger wrote: Hi, since the latest upload, ConTeXt no longer applies kerning across discretionary nodes: actually a rather old bug, but that it surfaces now is a side effect of some experimental optimzxiation that makes us end up in another injector branch Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setscript[hanzi] seems broken.
Li Yanrui 于2021年5月20日周四 下午3:15写道: > > Hi, > > After updating ConTeXt lmtx 2021.05.19 18:22, the line breaking with chinese > characters does not work. > > The following is a simple example: > > ``` > % This font can be downloaded from > % > https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip > \definefontfamily[myfont][serif][sourcehanserifcn] > \setscript[hanzi] > \setupbodyfont[myfont,11pt] > \setuppapersize[A6][A6] > \starttext > 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。 > \stoptext > ``` > > The command `context` gives the following output: > > Overfull \hbox (633.72849pt too wide) in paragraph at lines 7--1 > <2: SourceHanSerifCN-Regular @ 11.0pt> > 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。 > Works fine with the latest version 2021.05.20 11:08. -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] No kerning across discretionary nodes in latest ConTeXt upload
Hi, since the latest upload, ConTeXt no longer applies kerning across discretionary nodes: \starttext \setbox0\hbox{V\-a} \showboxdepth\maxdimen \showboxbreadth\maxdimen \tracingonline1 \showbox0 \stoptext used to show > \box0= \hbox(8.1915+0.25186)x13.69647, direction TLT .<1: lmroman12-regular @ 12.0pt> V .\discretionary (penalty 50) ..< <1: lmroman12-regular @ 12.0pt> - ..= \kern-0.98346 (font) .<1: lmroman12-regular @ 12.0pt> a but now changed to > \box0= \hbox(8.1915+0.25186)x14.67993, direction TLT .<1: lmroman12-regular @ 12.0pt> V .\discretionary (penalty 50) ..< <1: lmroman12-regular @ 12.0pt> - .<1: lmroman12-regular @ 12.0pt> a This seems like a regression. Best regards, Marcel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] No math fonts in latest LMTX 2021.05.15 22:45
Thanks Hans ! Everything works fine again (regarding math fonts…). Best regards: Otared > On 20 May 2021, at 11:18, Hans Hagen wrote: > > Hi, > > I uploaded a new version. Hopefully this one is complete. > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] No math fonts in latest LMTX 2021.05.15 22:45
Hi, I uploaded a new version. Hopefully this one is complete. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] No math fonts in latest LMTX 2021.05.15 22:45
On 5/20/2021 9:18 AM, Lutz Haseloff wrote: Hi all, the same here for: mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.05.19 18:22 mtx-context | main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.05.19 18:22 hm, maybe some missing file or so .. i'll check it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] 回复: No math fonts in latest LMTX 2021.05.15 22:45
> Hi, > > After updating to LMTX version 2021.05.15 22:45 the following does not show > any math italic font: > > \starttext > Let $f(x) := \sin(x)$. > \stoptext > Please, can someone confirm this behavior ? Me too, version 2021.05.19 18:22. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] No math fonts in latest LMTX 2021.05.15 22:45
Hi all, the same here for: mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.05.19 18:22 mtx-context | main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.05.19 18:22 Greetings Lutz Am 20. Mai 2021 09:05:49 MESZ schrieb Otared Kavian : >Hi, > >After updating to LMTX version 2021.05.15 22:45 the following does not >show any math italic font: > >\starttext >Let $f(x) := \sin(x)$. >\stoptext > >Please, can someone confirm this behavior ? > >Many thanks in advance: Otared >___ >If your question is of interest to others as well, please add an entry >to the Wiki! > >maillist : ntg-context@ntg.nl / >http://www.ntg.nl/mailman/listinfo/ntg-context >webpage : http://www.pragma-ade.nl / http://context.aanhet.net >archive : https://bitbucket.org/phg/context-mirror/commits/ >wiki : http://contextgarden.net >___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setscript[hanzi] seems broken.
Hi, After updating ConTeXt lmtx 2021.05.19 18:22, the line breaking with chinese characters does not work. The following is a simple example: ``` % This font can be downloaded from % https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip \definefontfamily[myfont][serif][sourcehanserifcn] \setscript[hanzi] \setupbodyfont[myfont,11pt] \setuppapersize[A6][A6] \starttext 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。 \stoptext ``` The command `context` gives the following output: Overfull \hbox (633.72849pt too wide) in paragraph at lines 7--1 <2: SourceHanSerifCN-Regular @ 11.0pt> 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] No math fonts in latest LMTX 2021.05.15 22:45
Hi, After updating to LMTX version 2021.05.15 22:45 the following does not show any math italic font: \starttext Let $f(x) := \sin(x)$. \stoptext Please, can someone confirm this behavior ? Many thanks in advance: Otared ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___