[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/28/24 20:06, Hans Hagen wrote: > On 5/28/2024 6:25 PM, Tomáš Hála wrote: >> Hi Pablo, >> >> unfortunately, that it is not possible: >> >> http://lua-users.org/wiki/PatternsTutorial, section Limitations. > > \starttext > \startTEXpage[pagestate=s

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Henning Hraban Ramm
Am 28.05.24 um 20:06 schrieb Hans Hagen: On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em]     \startluacode

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
>   [textcircled] >   [width=1.4em, >    height=1.4em, >    frame=off, >    background=textcircle, >    framecolor=colour_text, >    location=low, >    offset=none] >    >    \starttext >    Here are the numbers \textcircled{1}, \textcircle

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
hat uses as its background % the above overlay... \defineframed [textcircled] [width=1.4em, height=1.4em, frame=off, background=textcircle, framecolor=colour_text, location=low, offset=none] \starttext Here are the numbers

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Hans Hagen
On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local pat = (lpeg.Cmt(lpeg.P

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Tomáš Hála
\starttext > \startTEXpage[pagestate=start, offset=1em] > \startluacode > local str = "this is that" > context(str:match("(this|these)")) > \stopluacode > \stopTEXpage > \stoptext > > In short, I w

[NTG-context] regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local str = "this is that" context(str:match("(this|these)")) \stopluacode \stopTEXpage

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
=textcircle,   location=low,     offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you is how to set the colour of the circle to match the other text on my page

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
, > frame=off, >     background=textcircle, >   location=low, >     offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you i

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
if you make width and hwight 1.4en instead of 1.5em, the characters will align with the running text. \defineframed [textcircled] [ width=1.4em, height=1.4em, location=low, corner=round, %radius=.5fw, radius=\dimexpr\framedwidth/2\relax, offset=none

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
erlayWidth,     y      = OverlayHeight/2,  ] ; \stopuniqueMPgraphic \defineoverlay   [svgback]   [\useMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext Hello Seyal, This does work but

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
us=.5fw, >       radius=\dimexpr\framedwidth/2\relax, >   offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you kindly, Wolfgang. That worked perfectly. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.theverti

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
,   radius=.5fw,   offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it failed: Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, dk, or54sp; but yours

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
>     y      = OverlayHeight/2,  ] ; > \stopuniqueMPgraphic > > \defineoverlay >   [svgback] >   [\useMPgraphic{centered_svg}] > > \defineframed[Sback][location=low,background=svgback,frame=off,offset > =8pt] > > \starttext > this is a sample \Sback{1} text >

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote: > I can't provide a circle but I can give you a box with rounded > corners. > > \defineframed >    [textcircled] >    [   width=1.5em, >   height=1.5em, >     location=low, >   corner=round, >    

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
these commands. Any help appreciated. I can't provide a circle but I can give you a box with rounded corners. \defineframed [textcircled] [ width=1.5em, height=1.5em, location=low, corner=round, radius=.5fw, offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1

[NTG-context] Re: Number in a circle

2024-05-27 Thread seyal zavira
eMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext On Mon, May 27, 2024 at 12:38 AM Kip Warner wrote: > Hello list, > > I would like to typeset a number in a circle. Nothing fancy. N

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-26 Thread Wolfgang Schuster
] \starttext \startTEXpage[pagestate=start, offset=1em] \rm a\ss a\\ {\rm a\ssd a}\\ {\rm a\ssx a}\\ {\rm a\ssxx a} \stopTEXpage \stoptext Scaled \ssx and \ssxx are wrong in LMTX (not scaled at all). All font sizes are scaled fine in MkIV. In both

[NTG-context] wrong font scaling in LMTX?

2024-05-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][ss][TeX Gyre Heros] [scale=0.125] \setupbodyfont[mainface] \starttext \startTEXpage[pagestate=start, offset=1em

[NTG-context] update

2024-05-17 Thread Hans Hagen
: \startTEXpage[offset=1ts] \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100]\blue\samplefile{tufte}\removeunwantedspaces\stopshadow\space \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100,dx=0,dy=0]\blue\samplefile{tufte

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. \setupbodyfont [pagella, 8pt] \setupframed [frame=on, offset=0.000pt, rulethickness=0.000pt, location=top, align=normal, strut=yes, ] \setuplayout [grid=yes] \setupinteraction

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Mikael Sundqvist
0.3 local ymin = 0.4 local function f(x,y) local x = xstep*x - xmin local y = ystep*y - ymin local z = x + exp(-60*x) - y if z > 0 then return '1' else return '0' end end potrace.setbitmap("mybitmap", potrace.contourplot(N,N,f)) \stoplua

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
gt; > Thanks > > Fabrice > > > > \startMPpage[offset=1DK] > > > >numeric u; > >u = 6cm; > > > >interim linejoin := mitered; > >interim ahangle := 30; > > > >path xx, yy; >

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Hans Hagen
On 5/12/2024 3:57 PM, Fabrice Couvreur wrote: Hi, When I want to draw the curve which corresponds to n=60 (blue curve), it doesn't seem possible: I don't understand. Thanks Fabrice  \startMPpage[offset=1DK]           numeric u;           u = 6cm;           interim linejoin := mitered

[NTG-context] Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
Hi, When I want to draw the curve which corresponds to n=60 (blue curve), it doesn't seem possible: I don't understand. Thanks Fabrice \startMPpage[offset=1DK] numeric u; u = 6cm; interim linejoin := mitered; interim ahangle := 30; path xx, yy

[NTG-context] Re: outlinetext broken?

2024-05-11 Thread Hans Hagen
- outlines-003.pdf Description: Adobe PDF document \continuewhenlmtxmode \starttext \startMPpage[offset=10pt] draw lmt_outline [ text = "\mathematics{\sqrt{2}-1}" ] ; draw lmt_outline [ text = "\mathema

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread seyal zavira
ign[r2l] > \starttext > {\Ahang تَشْكِيل كَسْرَة} > \stoptext > > \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] > but there is an issue with widths, ill send you a patch to test > > > The provided "*arabic" featureset should suffice for this fo

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
8pt] but there is an issue with widths, ill send you a patch to test The provided "*arabic" featureset should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ah

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
t should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ahang تَشْكِيل  كَسْرَة} \stopTEXpage In prehistoric ConTeXt version    2023.09.26 18:19 the diacritics look fine in

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
ul for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ahang تَشْكِيل كَسْرَة} \stopTEXpage In prehistoric ConTeXt version 2023.09.26 18:19 the diacritics look fine in both ConTeXt and unicode editor MS N

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
after or before the dash, since I don't > like it to stick to some letters like "o"). Just consider that you should add an horizontal box (or pair both space and hyphen), otherwise you may get a line break between character and hyphen (instead of the hair space): \starttext \start

[NTG-context] Re: Underbar

2024-03-28 Thread Willi Egger
>> this underbar is a fraction to near the text. So I wanted to use >> \setupbar[…] to change the offset. Unfortunately nothing happens whatever I >> try. >> >> MWE: >> >> \setupba

[NTG-context] Re: Underbar

2024-03-28 Thread Wolfgang Schuster
Willi Egger schrieb am 28.03.2024 um 17:23: Hello everybody, I have a text, where a couple of lines are typeset with \underbar. — To me this underbar is a fraction to near the text. So I wanted to use \setupbar[…] to change the offset. Unfortunately nothing happens whatever I try. MWE

[NTG-context] Underbar

2024-03-28 Thread Willi Egger
Hello everybody, I have a text, where a couple of lines are typeset with \underbar. — To me this underbar is a fraction to near the text. So I wanted to use \setupbar[…] to change the offset. Unfortunately nothing happens whatever I try. MWE: \setupbar[offset=-.5,dy=-.5] \starttext Hello

[NTG-context] Re: offset with \copypages

2024-03-21 Thread Wolfgang Schuster
\startlayout[page] \copypages[test-file.pdf] \stoplayout \stoptext How could I avoid this offset please? You have to change the layout for the pages where you include your images to get rid of the default margins. Wolfgang

[NTG-context] offset with \copypages

2024-03-21 Thread Peter Münster
avoid this offset please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

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

2024-03-16 Thread Jean-Pierre Delange
w, see the results of Hans has given to \quote{metapost lovers}, here is some of the trickery used : \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (unitsquare scaled 2cm) shif

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

2024-03-15 Thread seyal zavira
rmat one has to specify every character with > possible abuse of a substitution feature that accesses it. So that is no > longer a real interesting option, unless of course one exports all text > as curves, just to be sure. > > (I will extend general text suport but it will always be sub

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

2024-03-15 Thread Hans Hagen via ntg-context
me cleanup, ps. For metapost lovers, here is some of the trickery used: \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (unitsquare

[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: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
will do). > > Position options: > * relative placement as floats, i.e. \placefigure > * absolute placement on layers, i.e. \setlayer > * relative corrections with \offset (also within floats) > > Hraban > _

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

2024-03-13 Thread Henning Hraban Ramm
vate mail) how you make your documents (a MWE will do). Position options: * relative placement as floats, i.e. \placefigure * absolute placement on layers, i.e. \setlayer * relative corrections with \offset (also within floats) Hr

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

2024-03-13 Thread Hans Hagen via ntg-context
t not seeing it in the example. Thanks again, -- Max I can confirm that it works over \alignhere. Hans is doing some black magic, but I guess he did not want to show off by including the whole line. Indeed, no need to show of the obvious \definebar [mybar] [backgroundbar] [height=\struth

[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] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
ad[section][page=yes] \unprotect \newbox\intertext_tmp_box \newdimen\intertext_tmp_dimen \starttexdefinition protected newintertext #1 \texthere[left]{ \setbox\intertext_tmp_box=\hbox{ \startframedtext[ offset=none, width=\hsize,

[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: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Wolfgang Schuster
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Pablo Rodriguez via ntg-context
: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d\\ \stopTEXpage \stoptext LMTX gets b, c and d in slanted form. LuaTeX gets only

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext

[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
[ frame=off, strut=no, height=\headerheight, offset=none, align=low, roffset=1em, ] \getmarking[subject] \stopframed \stopsetups \startsetups [header:leftpage] \startframed [ frame=off, strut=no, height=\headerheight, offset=none,

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
> 'structures_tags_handler'\n [string \"local tonut = nodes.tonut...\"]:21: > in function <[string \"local tonut = nodes.tonut...\"]:12>\n (...tail > calls...)\n ...mtx/tex/texmf-context/tex/context/base/mkxl/node-shp.lmt:38: > in function > <...mtx

[NTG-context] Re: Text in Margin

2024-02-19 Thread Henning Hraban Ramm
\inmargin, \inouter etc. Additional to Wolfgang’s suggestions: If you need sidefloats that cover not only the margin but should decrease the text width, you can move sidefloats into the margin like: \startplacefigure[title={},location=outer] \offset[rightoffset=-\marginwidth]{\externalfigure[cow

[NTG-context] Re: using an end of line as parameter

2024-02-19 Thread Hans Hagen
. For the example, I use this macro definition (which does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad  a) #2\\ \qquad  b) {\bf #3}\\ \qquad  c) #4 } I get: tex error on line 493 in file

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
7:56 am, Mikael Sundqvist wrote: > > > > Hi, > > > > not sure I get what you are missing. But you can try > > > > setbounds currentpicture to (fullsquare scaled 200) ; > > > > in base. And then do > > > > \dorecurse{5}{ > > \start

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
ages entry > with it. Feel free to modify. > > Cheers > Emanuel > > On Feb. 16 2024, at 7:56 am, Mikael Sundqvist wrote: > > Hi, > > not sure I get what you are missing. But you can try > > setbounds currentpicture to (fullsquare scaled 200) ; > >

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
. And then do\dorecurse{5}{\startTEXpage[offset=1DK]\useMPgraphic{layerset#1}\stopTEXpage}if that is the looping you are after./MikaelOn Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context wrote:>> Resp. the solution should be such that each generated PDF page has the same dimension, th

[NTG-context] using an end of line as parameter

2024-02-19 Thread Miguel Diaz
does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad a) #2\\ \qquad b) {\bf #3}\\ \qquad c) #4 } I get: tex error on line 493 in file ./prueba.tex: The file ended when scanning

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
ot sure I get what you are missing. But you can try > setbounds currentpicture to (fullsquare scaled 200) ; > in base. And then do > \dorecurse{5}{ > \startTEXpage[offset=1DK] > \useMPgraphic{layerset#1} > \stopTEXpage > } > > if that is the looping you are after. > /M

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
Hi, not sure I get what you are missing. But you can try setbounds currentpicture to (fullsquare scaled 200) ; in base. And then do \dorecurse{5}{ \startTEXpage[offset=1DK] \useMPgraphic{layerset#1} \stopTEXpage } if that is the looping you are after. /Mikael On Fri, Feb 16, 2024 at 6:54 AM

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
aphic{base} > > > z1 = origin ; > > > z2 = (10,50) ; > > > z3 = (40,30) ; > > > > > > picture layerA; > > > layerA:=image( > > > label("Word 1", z1); > > > ); > > > > > > picture layerW; > > > layerW:

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
; > > layerW:=image( > > label("Mot 2", z2); > > ); > > > > picture layerM; > > layerM:=image( > > label("Parola 3", z3); > > ); > > > > picture layerC; > > layerC:=image( > > label("Wort 4", z3

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
icture layerC; > layerC:=image( > label("Wort 4", z3+z1); > ); > > picture layerY; > layerY:=image( > label("Nummer 5", z2+z3); > ); > > picture layerU; > layerU:=image( > label("number 6", z2+z1); > ); > \stopuseMPgraphic >

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
rtuseMPgraphic{layerset2} \includeMPgraphic{layerset1} ; draw layerY ; \stopuseMPgraphic \startuseMPgraphic{layerset3} \includeMPgraphic{layerset2} ; \includeMPgraphic{Gamma} ; \stopuseMPgraphic \startuseMPgraphic{layerset4} \includeMPgraphic{layerset2} ; draw layerU ; \stopuseMPgraphic \startu

[NTG-context] Re: Two bugs with descriptions in ConTeXt.

2024-02-13 Thread Wolfgang Schuster
mechanism to set the text offset on the left and right sides and when you combine both mechanism the values are added. In case you you have a document where a descriptions appear as part of an item I suggest to use a different alternative (e.g. serried) for the description layout. Wolfgang

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100 Hans Hagen wrote: > >> How do it get the same spacing as in the framedtext case? > > > > Is there a solution to this? Or an explanation why the spacing > > differs? > these are fundamentally different mechanisms .. you can play with > \inframed in the

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
On 1/31/2024 7:15 PM, Marco Patzer wrote: On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: > I'm having problems getting the textbackground spacing offset to work. > Example: > > \setupframedtext > [offset=overlay, >width=max, >depthcorrection=off] > > \setuptextbackground > [loca

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
i pages, >> (2) The wiki pages are misleading/wrong, or > I would say, that the offset and frameoffset don’t seem to be available > in \setupexternalfigure. And yet, experiments suggest that frameoffset does indeed do something (in, specifically, \externalfigure, I didn't yet try \setupexternalfigur

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
rame=on,...]{\externalfigure...} > but this leaves me wondering whether > (1) I am misinterpreting the wiki pages, > (2) The wiki pages are misleading/wrong, or I would say, that the offset and frameoffset don’t seem to be available in \setupexternalfigure. > (3) There is a bug in some code. > >

[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
particular, the offset=... option of \externalfigure does not seem to be consistent with the offset=... option of \framed. Here is the example... one and all should be able to directly run it, but the text above and below each picture may make the issues clear without having to run the code. (Th

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

2024-01-19 Thread Hans Hagen
because the ages of dohbling performance every year are past. There are several factors that impact performance: tex engine : quite a bit faster in luametatex mp engine : quite a bit faster in luametatex lua engine : not much we can do about but inefficient macros and usage can offset any gain

[NTG-context] Re: Spacing problem in formula

2024-01-15 Thread Hans Hagen
rescripts: \startTEXpage[offset=1DK] \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } \m{1 - C_2^^n \tan^2\theta + C_4^^n } \stopTEXpage If you want them below, use double _. /Mikael On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>

[NTG-context] Re: Spacing problem in formula

2024-01-14 Thread Shiv Shankar Dayal
Thanks a lot Mikael. On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist wrote: > Hi, > > ConTeXt supports prescripts: > > \startTEXpage[offset=1DK] > > \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } > > \m{1 - C_2^^n \tan^2\theta + C_4^^n } > > \stopTEXpage >

[NTG-context] Re: Spacing problem in formula

2024-01-14 Thread Mikael Sundqvist
Hi, ConTeXt supports prescripts: \startTEXpage[offset=1DK] \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } \m{1 - C_2^^n \tan^2\theta + C_4^^n } \stopTEXpage If you want them below, use double _. /Mikael On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal wrote: > > Suppose I want to t

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Gerion Entrup
t; > symbols is wheelchair. However, when using that, I just got the string > > _378 (3.pdf). Source code: > > > > ``` > > \usesymbols[fontawesome] > > > > \startTEXpage[offset=1pt] > > \symbol[fontawesome][wheelchair] > > \stopTEXpa

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Wolfgang Schuster
here, one of the few remaining symbols is wheelchair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Gerion Entrup
chair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional output: ``` % mtxrun --script fonts --list --all --

[NTG-context] Re: Equivalent for hdots and hdotsfor

2023-12-30 Thread Mikael Sundqvist
\HF or \HF[n]. \startTEXpage[offset=1DK] \dm{ \startnamedmatrix[matrix:bars] \NC 1 \NC x \NC x^2 \NC \ldots \NC x^{n-1} \NR \NC 1 \NC y \NC y^2 \NC \ldots \NC y^{n-1} \NR \HF[3] \NR \NC 1 \NC z \NC z^2 \NC \ldots \NC z^{n-1} \NR \stopnamedmatrix } \stopTEXp

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
1. >>> > >>> > \mapfontsize[modern][script] [.4] >>> > \mapfontsize[modern][scriptscript][.2] >>> > >>> > \setupbodyfont[modern,12pt] >>> > >>> > \startTEXpage[offset=1DK] >>> > \m{z_{n+1}} >>> > \stopT

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
ipt] [.4] >> > \mapfontsize[modern][scriptscript][.2] >> > >> > \setupbodyfont[modern,12pt] >> > >> > \startTEXpage[offset=1DK] >> > \m{z_{n+1}} >> > \stopTEXpage >> >> Strange, here it looks OK. Maybe something that will be solved when &

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
l symbol is too big as well as the number 1. > > > > \mapfontsize[modern][script] [.4] > > \mapfontsize[modern][scriptscript][.2] > > > > \setupbodyfont[modern,12pt] > > > > \startTEXpage[offset=1DK] > > \m{z_{n+1}} > > \stopTEXpage > > S

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
ing example the operational > > symbol is too big as well as the number 1. > > > > \mapfontsize[modern][script] [.4] > > \mapfontsize[modern][scriptscript][.2] > > > > \setupbodyfont[modern,12pt] > > > > \startTEXpage[offset=1DK] > &

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
etupbodyfont[modern,12pt] > > \startTEXpage[offset=1DK] > \m{z_{n+1}} > \stopTEXpage Strange, here it looks OK. Maybe something that will be solved when there is an update then. /Mikael ___ If your quest

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
Thank you for your suggestion but in the following example the operational symbol is too big as well as the number 1. \mapfontsize[modern][script] [.4] \mapfontsize[modern][scriptscript][.2] \setupbodyfont[modern,12pt] \startTEXpage[offset=1DK] \m{z_{n+1}} \stopTEXpage Le ven. 29 déc. 2023 à

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
, z_{n+1}=\frac{i}{3}z_n} you could try something like (here with too small numbers only to show...) \mapfontsize[modern][script] [.4] \mapfontsize[modern][scriptscript][.2] \setupbodyfont[modern,10pt] \startTEXpage[offset=1DK] \m{3^{2^3}} \stopTEXpage I

[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
nTeXt cannot simply find where the > converted PDF versions of the zint images are. > > If I have the following source in testing-barcodes.tex: > > \usemodule[m-zint] > \starttext > \startTEXpage[offset=1dk] > \barcode[alternative=isbnx, text=9783865419026,

[NTG-context] Re: QR Code

2023-12-18 Thread Pablo Rodriguez via ntg-context
stalled (or its path is unknown to the system), or ConTeXt cannot simply find where the converted PDF versions of the zint images are. If I have the following source in testing-barcodes.tex: \usemodule[m-zint] \starttext \startTEXpage[offset=1dk] \barcode[alternative=isbnx, text=9783865419026, width=

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
th%,%line%,%color%); -- ]], -- ["fake:rule"] = replacer[[ -- %initializations% -- FakeRule(%width%,%height%,%depth%,%line%,%color%); -- ]], -- ["fake:rest"] = replacer [[ -- RuleDirection := "%direction%" ; -- RuleOption := "%option%&quo

[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] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
the code that works on its own, but causes the results as shown in the attachments within my book. There’s nowhere a \setupframed, and nothing that should influence MetaPost. Do you have any clue for what I should look? Hraban \starttext \framed[ rulethickness=1pt, offset=0.5em

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
Hi! I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %% does

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
e > > \starttext > > \input tufte > > \blank > > \framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte } \framed[...,align={normal,hz,hanging},...]{...} Wolfgang Thank you for the super fast answer!Another question related to my sample code:Why the right edge

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
=top,align=normal,offset=0pt]{\input tufte }\blank\setlocalhsize\framed[frame=off,location=top,align=normal,offset=0pt,width=local]{\input tufte }\stoptextThe compiled pdf is attached as protrusion-in-framed.pdf.Is is possible to make protrusion work in framed?I need to use framed in itemize

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Wolfgang Schuster
,location=top,align=normal,offset=0pt]{\input tufte } \framed[...,align={normal,hz,hanging},...]{...} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte }\blank

[NTG-context] Fwd: Re: x mark symbol and general symbol guide

2023-10-16 Thread Gerion Entrup
r documentation for ConTeXt somewhere? \usesymbols[fontawesome] \startTEXpage[offset=1ts] \symbol[fontawesome-solid][times]\quad \symbol[fontawesome-solid][check] \stopTEXpage you can run symb-imp-fonta

  1   2   3   4   5   6   7   8   9   10   >