Re: [NTG-context] UTF8 chars in attribute values (XML)

2019-05-21 Thread Hans Hagen
On 5/19/2019 7:38 PM, Pablo Rodriguez wrote: Hi Hans, I’m afraid I found another issue with UTF8 chars in attribute values when printing them. \starttext \startTEXpage[offset=1em] \startXML \stopXML \stopTEXpage \stoptext Inspecting buff-imp-xml.lua, I

[NTG-context] UTF8 chars in attribute values (XML)

2019-05-19 Thread Pablo Rodriguez
Hi Hans, I’m afraid I found another issue with UTF8 chars in attribute values when printing them. \starttext \startTEXpage[offset=1em] \startXML \stopXML \stopTEXpage \stoptext Inspecting buff-imp-xml.lua, I understand that "alsoname" should be added to &q

Re: [NTG-context] font selection in LMTX

2019-05-09 Thread Wolfgang Schuster
[mainface][tt][Cousine]  \definefontfamily[mainface][cg][Arial Narrow][tf=file:ARIALN.TTF]  \setupbodyfont[mainface]  \startbuffer  \ConTeXt\ is awesome!\par  \stopbuffer  \starttext  \startTEXpage[offset=1em]  \getbuffer  \ss\getbuffer  \tt\getbuffer  \cg

[NTG-context] font selection in LMTX

2019-05-09 Thread Pablo Rodriguez
][cg][Arial Narrow][tf=file:ARIALN.TTF] \setupbodyfont[mainface] \startbuffer \ConTeXt\ is awesome!\par \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \ss\getbuffer \tt\getbuffer \cg\getbuffer \stopTEXpage \stoptext I have no problem to get

Re: [NTG-context] Unicode mathematics in ConTeXt

2019-05-04 Thread Hamid,Idris
appears to have fixed this issue. >> >> 2. tex-gyre etc. appears to be missing some superscript characters, >> e.g., >> ⁿ (U+207F). >> >> 3. New example: >> >> === >> \setupbodyfont >> [cambria,12pt] >> % [pagella,12pt]

Re: [NTG-context] Unicode mathematics in ConTeXt

2019-05-04 Thread Wolfgang Schuster
[cambria,12pt] % [pagella,12pt] % [times,12pt] % \starttext \startTEXpage \def\ANTI{{^{\rm nt}}} \def\ANTIU{{^{\rm ⁿᵗ}}} \def\CATCA{$\cal \bf C\ANTI$} \def\CATCAU{$퓒\ANTIU$} 퓒 \CATCA \CATCAU \stopTEXpage % \stoptext === \CATCAU and \ANTIU use Unicode characters and superscripts directly

Re: [NTG-context] Unicode mathematics in ConTeXt

2019-05-03 Thread Hamid,Idris
appears to have fixed this issue. 2. tex-gyre etc. appears to be missing some superscript characters, e.g., ⁿ (U+207F). 3. New example: === \setupbodyfont [cambria,12pt] % [pagella,12pt] % [times,12pt] % \starttext \startTEXpage \def\ANTI{{^{\rm nt}}} \def\ANTIU{{^{\rm ⁿᵗ

Re: [NTG-context] Formula number misplaced

2019-04-24 Thread Mikael P. Sundqvist
> > > > > Yes, but it can also appear when not using TEXpage. When I tried out > > lmtx on a large file (not using TEXpage), it was there. I was not able > > to reproduce on a smaller file, though. I could give it another try, if > > necessary. > > Probably only

Re: [NTG-context] Formula number misplaced

2019-04-24 Thread Hans Hagen
e (not using TEXpage), it was there. I was not able to reproduce on a smaller file, though. I could give it another try, if necessary. Probably only when you use framed and construct that depend on it. Then use: \startTEXpage[autowidth=no] Hans -

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
and lmtx. It can be "fixed", however, by replacing \start...\stopTEXpage by \start...\stoptext, so this might not represent the most generic incarnation. Cheers, Henri --- \startTEXpage \samplefile{ward} Thus \startplaceformula \startformula \int_a^b f(x) \, \diff x = F(b) - F(a) . \s

Re: [NTG-context] wrong intraword spacing

2019-04-22 Thread Pablo Rodriguez
gt;> >>    \definefontfeature >>    [default] >>    [default] >>    [itlc=yes] >> >>    \setupitaliccorrection >>    [always] >> >>    \setupbodyfont >>    %~ [heros] >>    %~ [pagella] >>    [termes] &

Re: [NTG-context] wrong intraword spacing

2019-04-22 Thread Otared Kavian
e:Dear list,I have the following sample:   \definefontfeature   [default]   [default]   [itlc=yes]   \setupitaliccorrection   [always]   \setupbodyfont   %~ [heros]   %~ [pagella]   [termes]   \starttext   \startTEXpage[offset=1em]   \em Dr. Steffan   \stopT

[NTG-context] wrong intraword spacing

2019-04-22 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfeature [default] [default] [itlc=yes] \setupitaliccorrection [always] \setupbodyfont %~ [heros] %~ [pagella] [termes] \starttext \startTEXpage[offset=1em

Re: [NTG-context] follow up

2019-04-02 Thread Hans Hagen
viewers \nopdfcompression \setupbodyfont [termes,10pt] \startTEXpage x \stopTEXpage as acrobat doesn't complain (and it complains pretty fast) i can't do much about it Hans - Hans

Re: [NTG-context] Incorrect offset when textframe is used inside TEXpage

2019-03-25 Thread Hans Hagen
On 3/24/2019 5:46 PM, Aditya Mahajan wrote: Hi, With the latest beta, the following example: \definetextbackground   [test]   [     location=paragraph,   ] \starttext \startTEXpage[offset=5cm]   \starttest   \input knuth   \stoptest \stopTEXpage \stoptext gives the attached output

[NTG-context] Incorrect offset when textframe is used inside TEXpage

2019-03-24 Thread Aditya Mahajan
Hi, With the latest beta, the following example: \definetextbackground [test] [ location=paragraph, ] \starttext \startTEXpage[offset=5cm] \starttest \input knuth \stoptest \stopTEXpage \stoptext gives the attached output. Note that in the output the left and right offsets

Re: [NTG-context] expansion inside PDF annotations

2019-03-06 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 05.03.19 um 17:44: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] Attached on \currentdate. \attachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf

Re: [NTG-context] issue with \startattachment...\stopattachment

2019-03-05 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 05.03.19 um 20:57: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \startattachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] Attached file

[NTG-context] issue with \startattachment...\stopattachment

2019-03-05 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \startattachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] Attached file. \stopattachment Attached on \currentdate. \stopTEXpage

[NTG-context] expansion inside PDF annotations

2019-03-05 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] Attached on \currentdate. \attachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] [author={Attached on \currentdate}, title

[NTG-context] Space between initials in bibliography

2019-03-02 Thread Mikael P. Sundqvist
(34Cxx 37-01 37C10)}, MRNUMBER = {2242407}, } \stopbuffer \usebtxdataset[ref][ref.buffer] \setupbtx[dataset=ref] \definebtxrendering[ref][dataset=ref] \setupbtx[ stopper:initials={.\btxspace},%comment to show version without space ] \starttext \startTEXpage[offset=3bp] We study \cite[arnold

[NTG-context] util-sha.lua misbehaving?

2019-02-28 Thread Pablo Rodriguez
addata("#1")):sub(0,8))}} \def\cB{i-context.pdf} \starttext \startTEXpage[offset=2em] \tt i-context.pdf\ss: \doifelse{\luaversion}{5.3} {\hashfivefile{\cB}\\ {\rm text: }\hashfive{\cB}} {\shafive{\cB}} \stopTEXpage \stoptext Just accide

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-24 Thread Henri Menke
gt; \definefontfeature [math-script] [math-script] [ss04=yes] >> > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes] >> > > \setupbodyfont[lucidaot] >> > > \starttext >> > > \startTEXpage[offset=3bp] >> &

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-24 Thread Mikael P. Sundqvist
t; > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes] > > > \setupbodyfont[lucidaot] > > > \starttext > > > \startTEXpage[offset=3bp] > > > $\mathcal A$ > > > \stopTEXpage > > > \stoptext > > that is a nasty one ... in font-fil.m

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-22 Thread Mikael P. Sundqvist
t; > > > \definefontfeature [math-text] [math-text] [ss04=yes] > > \definefontfeature [math-script] [math-script] [ss04=yes] > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes] > > \setupbodyfont[lucidaot] >

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-22 Thread Hans Hagen
[math-script] [math-script] [ss04=yes] \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes] \setupbodyfont[lucidaot] \starttext \startTEXpage[offset=3bp] $\mathcal A$ \stopTEXpage \stoptext that is a nasty one ... in font-fil.mkvi : we cannot use an edef as that makes

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-22 Thread Henri Menke
] [ss04=yes] \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes] \setupbodyfont[lucidaot] \starttext \startTEXpage[offset=3bp] $\mathcal A$ \stopTEXpage \stoptext On 2/22/19 8:35 PM, Mikael P. Sundqvist wrote: > Hi, > > It seems that, with the latest beta, the \setupma

[NTG-context] \setupmathematics with stylealternative not working

2019-02-21 Thread Mikael P. Sundqvist
Hi, It seems that, with the latest beta, the \setupmathematics with stylealternative is not working. I tried \setupbodyfont[lucidaot] \setupmathematics[stylealternative={calligraphic}] \starttext \startTEXpage[offset=3bp] $\mathcal A$ \stopTEXpage \stoptext and got the attached output lcm.png

Re: [NTG-context] Creating business cards with CSV

2019-02-08 Thread Pablo Rodriguez
onTeXt Suite [I wrote the documentation for it]): I attach both the ConTeXt source and a sample CSV file. It could be a good starting point. Just in case it helps, Pablo -- http://www.ousia.tk \usemodule[handlecsv] \setheader \opencsvfile{bscard.csv} \starttext \startbuffer[bscard] \startTEX

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-07 Thread Hans Hagen
=range:greek] \definefontfamily[amainface][rm][TeX Gyre Pagella] \definefallbackfamily[smainface][rm][GFS Didot] [preset=range:greek, force=yes] \definefontfamily[smainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \startTEXpage[offset=2em

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-06 Thread Jan U. Hasecke
nge:greek, force=yes] > \definefontfamily[smainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=2em] > \getbuffer\\ > \amainface\getbuffer\\ > \smainface\getbuffer > \stopTEXpage > \stopte

Re: [NTG-context] Making ConTeXt stop on all or some errors

2019-02-06 Thread Pablo Rodriguez
tfamily[amainface][rm][TeX Gyre Pagella] \definefallbackfamily[smainface][rm][GFS Didot] [preset=range:greek, force=yes] \definefontfamily[smainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \startTEXpage[offset=2em] \getbuffer\\

[NTG-context] Nested fences, inner one changes size with outer one

2019-02-06 Thread Mikael P. Sundqvist
Hi, Is it possible to automatically have the inner fence _not_ change its size with the outer one? /Mikael \definemathfence[Openinterval][left="0028,right="0029,command=yes] \definemathfence[Set][left="007B,right="007D,command=yes] \starttext \startTEXpage[offset=3bp

Re: [NTG-context] Cannot get upright integral in stixtwo anymore

2019-01-25 Thread Mikael P. Sundqvist
Hi! I see that this is fixed in the latest beta. Thanks!! /Mikael On Sat, Jan 12, 2019 at 9:39 AM Mikael P. Sundqvist wrote: > > Hi, > > the code > > \setupbodyfont[stixtwo] > \starttext > \startTEXpage[offset=2bp] > $\displaystyle \int x^2\,dx=\frac{x^3}{3}

[NTG-context] Cannot get upright integral in stixtwo anymore

2019-01-12 Thread Mikael P. Sundqvist
Hi, the code \setupbodyfont[stixtwo] \starttext \startTEXpage[offset=2bp] $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par \setupmathematics[stylealternative={upright}] $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par \stopTEXpage \stoptext used to give an "upright" integral sign in

Re: [NTG-context] Lower limit of integrals shifted

2019-01-11 Thread Mikael P. Sundqvist
On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen wrote: > > On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote: > > Hi, > > > > the output of > > > > \setupmathematics[ > > integral=nolimits, > > ] > > > > \starttext > > \sta

Re: [NTG-context] Lower limit of integrals shifted

2019-01-11 Thread Hans Hagen
On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote: Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed

[NTG-context] Lower limit of integrals shifted

2019-01-09 Thread Mikael P. Sundqvist
Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed. With hope of a quick fix, Mikael

Re: [NTG-context] fontfamily not loaded anymore

2018-12-09 Thread Pablo Rodriguez
m α β γ δ ε ζ}\\ >> {\bf α β γ δ ε ζ}\\ >>{\bf α β γ δ ε ζ}\\ >> \stopbuffer >> \starttext >>\startTEXpage[offset=1em] >> \getbuffer >> \tt\getbuffer >> \ss\getbuffer >> \hw\getbuffer >>

Re: [NTG-context] fontfamily not loaded anymore

2018-12-09 Thread Wolfgang Schuster
] \startbuffer α β γ δ ε ζ\\ {\em α β γ δ ε ζ}\\ {\bf α β γ δ ε ζ}\\ {\bf α β γ δ ε ζ}\\ \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \tt\getbuffer \ss\getbuffer \hw\getbuffer \stopTEXpage

[NTG-context] fontfamily not loaded anymore

2018-12-09 Thread Pablo Rodriguez
}] \setupbodyfont[mainface] \startbuffer α β γ δ ε ζ\\ {\em α β γ δ ε ζ}\\ {\bf α β γ δ ε ζ}\\ {\bf α β γ δ ε ζ}\\ \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \tt\getbuffer \ss\getbuffer \hw\getbuffer \stopTEXpage

Re: [NTG-context] color check

2018-12-06 Thread Floris van Manen
hu, Dec 6, 2018 at 10:55 AM Floris van Manen wrote: > while experimenting with the sample transparency color code > > > \definecolor [transparentred] [r=1,t=.5,a=1] > \definecolor [transparentblue] [b=1,t=.5,a=1] > \definecolor [solidyellow] [y=1,t=1,a=1] > > \start

Re: [NTG-context] color check

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen wrote: > while experimenting with the sample transparency color code > > > \definecolor [transparentred] [r=1,t=.5,a=1] > \definecolor [transparentblue] [b=1,t=.5,a=1] > \definecolor [solidyellow] [y=1,t=1,a=1] > > \sta

[NTG-context] color check

2018-12-06 Thread Floris van Manen
while experimenting with the sample transparency color code \definecolor [transparentred] [r=1,t=.5,a=1] \definecolor [transparentblue] [b=1,t=.5,a=1] \definecolor [solidyellow] [y=1,t=1,a=1] \starttext \startTEXpage ~This is some sample text that goes behind the rectangles\hskip-80mm

[NTG-context] question about a ligature

2018-12-02 Thread Pablo Rodriguez
[rm] [Noto Sans Linear B] [range={linearbideograms, linearbsyllabary}] \definefontfamily [mainface] [rm] [Noto Sans] \setupbodyfont[mainface] \starttext \startTEXpage da dwe PQ C \stopTEXpage \stoptext What am I mis

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Hans Hagen
emoji-red,emoji-gray] \definefontfeature[seguiemj-r][ccmp=yes,dist=yes,colr=emoji-r] \definefont[MyEmojiR][seguiemj*seguiemj-r @ 100pt] \startTEXpage[offset=10pt] \MyEmojiR\resolvedemoji{triangular ruler} \stopTEXpage \stoptext I'm not sure what yoy mwan with 0x as that's intercepted

Re: [NTG-context] what defines the font size?

2018-10-19 Thread luigi scarso
mpression \definefont[TestD][file:texgyrepagella-regular-500.otf at 10bp] \definefont[Test][file:texgyrepagella-regular.otf at 10bp] \definefont[TestMM][file:texgyrepagella-regular-2000.otf at 10bp] \starttext \startTEXpage {\TestD Hello 500} {\Test Hello 1000} {\TestMM Hello 2000} \stopTEXpage \stopte

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Hans Hagen
On 10/18/2018 9:54 AM, Arthur Reutenauer wrote: On Wed, Oct 17, 2018 at 06:14:21PM +0200, Pablo Rodriguez wrote: I tried to show that the em square is the fixed measure. It’s not. You misunderstand. You sent an example \startTEXpage[offset=1em] \framed{M

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Arthur Reutenauer
On Wed, Oct 17, 2018 at 06:14:21PM +0200, Pablo Rodriguez wrote: > I tried to show that the em square is the fixed measure. It’s not. You misunderstand. You sent an example \startTEXpage[offset=1em] \framed{M} \framed{\tfxx M} \framed{\tf

Re: [NTG-context] what defines the font size?

2018-10-17 Thread Arthur Reutenauer
[offset=none, > framecolor=red, > rulethickness=0.01pt, > width=12pt, > height=12pt] > > \starttext > \startTEXpage[offset=1em] > \framed{M} > \framed{\tfxx M} > \framed{\tfd M} > \stopT

Re: [NTG-context] Odd/even page test

2018-10-17 Thread Procházka Lukáš Ing .
\pagenumber ODD\else EVEN\fi} \starttext \dorecurse{2}{\T\page} \startTEXpage[width=50mm,height=150mm]\stopTEXpage \dorecurse{2}{\T\page} \stoptext Hi Lukáš, both makeups and fitting pages aren’t numbered by default. Either you add this to the preamble: \setupfittingpage[TEXpage

Re: [NTG-context] what defines the font size?

2018-10-16 Thread Pablo Rodriguez
ing like: \setupframed [offset=none, framecolor=red, rulethickness=0.01pt, width=12pt, height=12pt] \starttext \startTEXpage[offset=1em] \framed{M} \framed{\tfxx M} \framed{\tfd M} \stopTEXpage

Re: [NTG-context] Odd/even page test

2018-10-16 Thread Pablo Rodriguez
On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote: > Hello, > > I need to check whether even or odd page is to be printed. I'm starting with > the following simple code: > > > \def\T{\ifodd\pagenumber ODD\else EVEN\fi} > > \starttext > \dorecurse{2}{\T\page}

[NTG-context] Odd/even page test

2018-10-16 Thread Procházka Lukáš Ing .
Hello, I need to check whether even or odd page is to be printed. I'm starting with the following simple code: \def\T{\ifodd\pagenumber ODD\else EVEN\fi} \starttext \dorecurse{2}{\T\page} \startTEXpage[width=50mm,height=150mm]\stopTEXpage \dorecurse{2}{\T\page} \stoptext Why

[NTG-context] wrong hyphenation in ancient Greek?

2018-10-13 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[agr] \setupbodyfont[dejavu] \starttext \startTEXpage[offset=2em] \hyphenatedword{πρᾶγμα πράγματος} \stopTEXpage \stoptext that ouputs: πρᾶ-γμα πρά-γμα-τος As far as I know, two consonants in ancient Greek

Re: [NTG-context] embedded sounds

2018-10-09 Thread Hans Hagen
] \setupbackgrounds[page][background=resources] \setupbodyfont[100pt] \starttext\bf\ss \setlayer[resources]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack

[NTG-context] embedded sounds

2018-10-09 Thread Pablo Rodriguez
] \starttext\bf\ss \setlayer[resources]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack] \stopTEXpage \stoptext As reported before (https://mailman.ntg.nl/pipermail/ntg-context/2018

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-09 Thread Mikael P. Sundqvist
y, -2, 1/2}] > >>>>> > >>>>> Brut force: > >>>>> [...] > >>>>> > >>>> as this takes some time here's a cheat: > >>>> > >>>> \starttext > >>>> > >>>> \startbuffer[

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Hans Hagen
qvist" wrote: ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: [...] as this takes some time here's a cheat: \starttext \startbuffer[demo] [...] \stopbuffer \startTEXpage     \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be t

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
= 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: [...] as this takes some time here's a cheat: \starttext \startbuffer[demo] [...] \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be taken unles it has been changed.

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Alan Braslau
gt;> ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] > >> > >> Brut force: > >> [...] > >> > > as this takes some time here's a cheat: > > > > \starttext > > > > \startbuffer[demo] > > [...] > > \

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
tartbuffer[demo] [...] \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be taken unles it has been changed. I thought that this will also be a good usecase of showing Lua+MP interaction. I wrote the code below following t

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Hans Hagen
On 10/7/2018 7:14 PM, Alan Braslau wrote: On Sun, 7 Oct 2018 17:25:35 +0200 "Mikael P. Sundqvist" wrote: ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: \startTEXpage \startMPcode {doublefun} pen savedpen ; savedpen := currentpen ; pickup pencircle

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Mikael P. Sundqvist
On Sun, Oct 7, 2018 at 7:14 PM Alan Braslau wrote: > > On Sun, 7 Oct 2018 17:25:35 +0200 > "Mikael P. Sundqvist" wrote: > > > ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] > > Brut force: > > \startTEXpage > \startMPcode {doublef

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Alan Braslau
On Sun, 7 Oct 2018 17:25:35 +0200 "Mikael P. Sundqvist" wrote: > ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: \startTEXpage \startMPcode {doublefun} pen savedpen ; savedpen := currentpen ; pickup pencircle scaled .01 ; path p ; p := for i=0 upto 1000 :

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-04 Thread Taco Hoekwater
[file:IBMPlexSans-regular] [fallbacks=FakeSansCaps] \stoptypescript \starttypescript [plextest] \definetypeface [plextest] [ss] [sans] [plextest] [default] [features=default] \stoptypescript \stoptypescriptcollection \usetypescript[plextest] \setupbodyfont[plextest] \starttext \sta

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread luigi scarso
On Tue, Oct 2, 2018 at 7:03 AM Lutz Haseloff wrote: > Hi Hans, hi all, > > I think, that recent context has a problem with scaling included pdf files. > > > Metapost traditional scaled math has a limited range, you can use doublefun or decimalfun (not more binaryfun) \start

Re: [NTG-context] font in \setuplanguage

2018-09-17 Thread Wolfgang Schuster
[mainface] \starttext \startTEXpage[offset=1em] a {\agr β} \stopTEXpage \stoptext I cannot get the Greek fragment using another font. Is this a bug or am I missing something? Many thanks for your help, Pablo

[NTG-context] font in \setuplanguage

2018-09-17 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[es] \setuplanguage[agr][font=\grcface] \definefontfamily[grcface][rm][DejaVu Sans] \definefontfamily[mainface][rm][DejaVu Serif] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a {\agr β

Re: [NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Wolfgang Schuster
in the real example, but the same error exist with this simpler example. \starttext \startTEXpage[offset=2bp] \startitemize[n] \startitem Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits \startitemize[a,columns,three][left=,right={)},stopper=] \startitemize[a,columns,three][left=,right={)},stopper

Re: [NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Jeong Dal
item is not correctly aligned vertically. > Am I doing something wrong, or is it a bug? > > /Mikael > > PS Yes, I use \displaystyle in the real example, but the same error exist > with this simpler example. > > \starttext > \startTEXpage[offset=2bp] > \startitemi

[NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Mikael P. Sundqvist
example. \starttext \startTEXpage[offset=2bp] \startitemize[n] \startitem Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits \startitemize[a,columns,three][left=,right={)},stopper=] \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem

Re: [NTG-context] protrusion with opening exclamation and question marks

2018-08-29 Thread Hans Hagen
[right] \hfill¿Cómo? \hfill¡No! \stopbuffer \starttext \startTEXpage[offset=2em] \startembeddedxtable[framecolor=red, align=hanging, foregroundstyle={\ss\bfd}, offset=overlay] \startxrow \startxcell[leftframe=on] \getbuffer[standard

[NTG-context] protrusion with opening exclamation and question marks

2018-08-29 Thread Pablo Rodriguez
\starttext \startTEXpage[offset=2em] \startembeddedxtable[framecolor=red, align=hanging, foregroundstyle={\ss\bfd}, offset=overlay] \startxrow \startxcell[leftframe=on] \getbuffer[standard]\stopxcell \stopxrow \startxrow[toffset=2em

Re: [NTG-context] embedded sounds aren’t played

2018-08-14 Thread Hans Hagen
] \starttext \setlayer[resources]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack] \stopTEXpage \startTEXpage \button{start}[StartSoundTrack

[NTG-context] embedded sounds aren’t played

2018-08-14 Thread Pablo Rodriguez
]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack] \stopTEXpage \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack] \stopTEXpage \stoptext I

Re: [NTG-context] integer displayed as .0 float in Lua-5.3

2018-08-11 Thread Pablo Rodriguez
number where so dependent on the Lua version. > That said > ... > > \startTEXpage[offset=1em] > \ctxlua{context([[\lastpage]])}. > \stopTEXpage > > Why do you convert \lastpage to a string using [[\lastpage]] which will > use the string to number conversion? Well,

Re: [NTG-context] integer displayed as .0 float in Lua-5.3

2018-08-09 Thread Hans Hagen
... \startTEXpage[offset=1em] \ctxlua{context([[\lastpage]])}. \stopTEXpage Why do you convert \lastpage to a string using [[\lastpage]] which will use the string to number conversion. In fact this automatic cast from string to number in an addition might disappear from the language in the future so don't

Re: [NTG-context] integer displayed as .0 float in Lua-5.3

2018-08-09 Thread Wolfgang Schuster
Use tonumber. %% \starttext \cldcontext{\lastpage + 1} \cldcontext{"\lastpage" + 1} \cldcontext{tonumber("\lastpage") + 1} \stoptext %% Wolfgang Pablo Rodriguez schrieb am 09.08.18 um 20:02: Dear list, I have the following sample \starttext \sta

[NTG-context] integer displayed as .0 float in Lua-5.3

2018-08-09 Thread Pablo Rodriguez
Dear list, I have the following sample \starttext \startTEXpage[offset=1em] Pages: \ctxlua{context([[\lastpage]])}. Next page: \ctxlua{context([[\lastpage]] + 1)}. (Lua \luaversion) \stopTEXpage \stoptext With Lua-5.2 (ConTeXt with JIT), I get the expected results

Re: [NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen
\bold \MPtext{Pare3} etex, (0, -50))     withcolor yellow     ; \stopuseMPgraphic % Overlays \defineoverlay[Pare][\useMPgraphic{Pare}] \setupbackgrounds[page][background={foreground,Pare}] \starttext   \startTEXpage[width=210mm,height=297mm]     Aaa   \stopTEXpage \stoptext Here, t

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
ow ; \stopuseMPgraphic % Overlays \defineoverlay[Pare][\useMPgraphic{Pare}] \setupbackgrounds[page][background={foreground,Pare}] \starttext \startTEXpage[width=210mm,height=297mm] Aaa \stopTEXpage \stoptext Here, texts "1" and "U" are not rendered; if you change

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
at's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Wolfgang Schuster
offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === See attached. Thanks in advance for any sugge

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopT

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
uot;). Let us consider the same macro: === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered T

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
{% > \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] > {\starttabulate[|c|] > \NC \mbox{\the\MQT} \NR > \NC #1 \NR > \stoptabulate}% > \advance\MQT by 1 > \hbox{}} > > \startTEXpage > \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } > \stopTEX

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Wolfgang Schuster
verlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === How can one make a conversion of the numerals output

[NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
\NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === How can one make a conversion of the numerals output by the \newcount? That is, how so we replace the default U+0030-U+0039 digits (0 1 2 3..) with so

[NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === See attached. Thanks in advance for any suggestions for improvement. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy

Re: [NTG-context] Size of fences, factor key

2018-04-25 Thread Mikael P. Sundqvist
; *\plushundred+\p_size\relax >\fi >\math_fenced_left >#2% >\math_fenced_right >\stopusemathstyleparameter >\endgroup >\advance\c_math_fenced_nesting\minusone} > > \protect > > and then do > > \setupbodyfont[lucidaot] > > \definemat

Re: [NTG-context] Size of fences, factor key

2018-04-25 Thread Hans Hagen
have seen, I think this is what is used. %%% Example file: \setupbodyfont[lucidaot] \definemathfence[Set][left="007B,right="007D,command=yes] \startbuffer \startformula \Set{x\in\mathbb R~:~x^2=1} \stopformula \stopbuffer \startTEXpage[offset=3bp] \

Re: [NTG-context] Size of fences, factor key

2018-04-24 Thread Mikael P. Sundqvist
; %%% Example file: > > \setupbodyfont[lucidaot] > > \definemathfence[Set][left="007B,right="007D,command=yes] > > \startbuffer > \startformula > \Set{x\in\mathbb R~:~x^2=1} > \stopformula > \stopbuffer > > > \startTEXpage[offset=3bp] > > \st

[NTG-context] Size of fences, factor key

2018-04-21 Thread Mikael P. Sundqvist
a-opentype-math.lfg. In all books (on math) I have seen, I think this is what is used. %%% Example file: \setupbodyfont[lucidaot] \definemathfence[Set][left="007B,right="007D,command=yes] \startbuffer \startformula \Set{x\in\mathbb R~:~x^2=1} \stopformula \stopbuffer \sta

Re: [NTG-context] issues with \typesetbuffer

2018-04-18 Thread Pablo Rodriguez
ght interfere (do that on the commandline) Many thanks for your reply, Hans. I was wrong, I only wanted to report the issue with fonts embedded multiple times. This sample shows the issue: \startbuffer[a]\starttext\startTEXpage A\stopTEXpage\stoptext\stopbuffer \startbuffer[b]\starttext\startTEXpage

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements

[NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements[some]% calle via del viaducto de la calle

[NTG-context] Math kerning broken in latest beta

2018-04-10 Thread Henri Menke
.  No difference was encountered for modern and xits. Cheers, Henri --- \setupbodyfont[stixtwo] % or lucidaot \startTEXpage $V_A$ \stopTEXpage 104.pdf Description: Adobe PDF document 1070.pdf Description: Adobe PDF document

[NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] \setupexternalfigures[location=default] \starttext \startTEXpage[offset=1ex] Full–width: \externalfigure[cow] \stopTEXpage \stoptext

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
; this feature by default) >> >> Ulrike Fischer reminded me in the StackExchange chat that not so long >>> time ago there was some similar issue with \mathcal P discussed on this >>> list. Is it the same problem? (The input $f \tracinglostchars=0 >>> \Uc

  1   2   3   4   5   6   7   >