Re: [NTG-context] numbering pages included by \copypages

2020-09-28 Thread Alan Bowen
After further testing guided by Hans’ suggestion, I now have \setupexternalfigures[location=default] \setuplayer[preset=rightbottom, method=overlay]{} \setuppagenumbering[color=darkmagenta] \starttext \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages}{ \startTEXpage[pagestate=start

Re: [NTG-context] numbering pages included by \copypages

2020-09-25 Thread Hans Hagen
SomeNumber][\setups{SomeNumber}] \dorecurse {\noffigurepages} { \startTEXpage[pagestate=start] \externalfigure[oeps.pdf][page=#1,background=SomeNumber]% \stopTEXpage } \dorecurse {5} {After #1\page}

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Pablo Rodriguez
hind it. The default is "indentnext=no" for \setupheads and \setupfloats. The pattern is clear: see what comes before the unindented paragraph. BTW, I don’t understand this: \langueprincipale[fr] \langue[fr] Is \mainlanguage not enough? (This would also set \language.) \mainlanguage[f

Re: [NTG-context] Space after Round bracket before Punctuation

2020-07-09 Thread Richard Mahoney | Indica et Buddhica
[","] = -300, ["."] = -300, [":"] = -250, [";"] = -250, [")"] = -100, }, }, }\stopluacode \definefontfeature[default][default][mykerns=true

Re: [NTG-context] Space after Round bracket before Punctuation

2020-07-09 Thread Hans Hagen
, [":"] = -250, [";"] = -250, [")"] = -100, }, }, } \stopluacode \definefontfeature[default][default][mykerns=true] \setupbodyfont [dejavu,12pt] \startTEXpage[offset=10pt]

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Jairo A. del Rio
gefrac{}{\displaystyle\gefrac{#1+}{}#2}% > >}% > > } > > \def\cofracnorule#1#2{% > > {% > > \rlap{\gefrac{\displaystyle\phantom{1}}{\displaystyle\phantom{#1}}}% > > \gefrac{}{\displaystyle\gefrac{#1}{}#2}% > > }% > > } > > \def\endfrac#1{\cofr

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Hans Hagen
}}{\displaystyle\phantom{#1}}}% \gefrac{}{\displaystyle\gefrac{#1}{}#2}% }% } \def\endfrac#1{\cofracnorule{#1}{\phantom{1}}} \startTEXpage \startplacefigure[location=force,number=no] \externalfigure[cofrac.png] \stopplacefigure \startformula \alpha + \cofrac{\alpha'}{\cofrac{\alpha''}{\cofrac{\alpha

[NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-28 Thread Jairo A. del Rio
}}{\displaystyle\phantom{#1}}}% \gefrac{}{\displaystyle\gefrac{#1}{}#2}% }% } \def\endfrac#1{\cofracnorule{#1}{\phantom{1}}} \startTEXpage \startplacefigure[location=force,number=no] \externalfigure[cofrac.png] \stopplacefigure \startformula \alpha + \cofrac{\alpha'}{\cofrac

[NTG-context] Extra space when \setcharacterkerning is used in enumeration

2020-06-12 Thread Mikael Sundqvist
\smallcaps,%It is this setting that kills the space. ] \defineitemgroup[delab] \setupitemgroup[delab][each][a,intro,intext][ stopper=, right=), left={\hskip\measure{myindent}}, width=\measure{myitemwidth}, inbetween=, before={\blank[none,samepage]}, after=, style={\tf}, ] \starttext \startTEXpage[

Re: [NTG-context] More funny numbers

2020-06-12 Thread Hans Hagen
On 6/12/2020 4:35 AM, Jairo A. del Rio wrote: Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{26

Re: [NTG-context] About Mongolian script

2020-06-12 Thread Hans Hagen
=yes,mkmk=yes, ] \definefontfamily[main][serif][notosansmongolian][features=fea] \setupbodyfont[main] \startTEXpage ᠮᠠᠨᠵᡠ \stopTEXpage in the last upload(s) it should work with feature set 'mongolian' Hans

[NTG-context] More funny numbers

2020-06-11 Thread Jairo A. del Rio
Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153}, 3013 \frac{3}{4}>\sqrt{9082321}, \quad 183

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Hans Hagen
dicals in LMTX give a funny font size compared with LuaTeX, which gives the correct output. I cleaned the cache, just in case. I attach code and outputs. Thank you in advance. \startTEXpage \startformula a_{2n} = \sqrt{2-\sqrt{4-a_{2n}}} \stopformula \stopTEXpage Ja

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Mikael Sundqvist
I attach code and outputs. Thank you in advance. > > \startTEXpage > \startformula > a_{2n} = \sqrt{2-\sqrt{4-a_{2n}}} > \stopformula > \stopTEXpage > > Jairo :D > > ___ > If your questio

[NTG-context] Funny radicals in LMTX

2020-06-11 Thread Jairo A. del Rio
Hi list! Nesting radicals in LMTX give a funny font size compared with LuaTeX, which gives the correct output. I cleaned the cache, just in case. I attach code and outputs. Thank you in advance. \startTEXpage \startformula a_{2n} = \sqrt{2-\sqrt{4-a_{2n}}} \stopformula \stopTEXpage Jairo :D

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Wolfgang Schuster
Alan Bowen schrieb am 10.06.2020 um 17:04: Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need. Why don't you use sub pages? \starttext %\setupsubpagenumber[start=5]\resetsubpagenumber \setcounter[subpage][5] \startTEXpage \samplefile

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
that resets the counter to one at the start > of the next page (it is useful for footnotes that are numbered > per-page, but not for actual page counters). > > > \definecounter[volpage][type=page] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[off

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
\setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext > On 10 Jun 2020, at 15:05, Alan Bowen wrote: > >

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
of a book are > not proving successful. The following code shows the nature of the problem. > > > > \definecounter[volpage][type=page, way=bypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=2pc] > > \input ward &

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
the problem. > > \definecounter[volpage][type=page, way=bypage] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[offset=2pc] > \input ward > \blank[medium] > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter

[NTG-context] problem with counters (page)

2020-06-09 Thread Alan Bowen
My efforts to set up a new page counter in the footertexts of a book are not proving successful. The following code shows the nature of the problem. \definecounter[volpage][type=page, way=bypage] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium

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
}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter [title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter

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

2020-05-29 Thread juh
[title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter [title={baz}] \input knuth \stopchapter \stoptext

Re: [NTG-context] bug in \doifinset

2020-05-28 Thread Pablo Rodriguez
On 5/27/20 11:58 PM, luigi scarso wrote: >> On Wed, May 27, 2020 at 11:28 PM Pablo Rodriguez wrote: >> Without commas, lists are harder both to read and to write (at least, to me). > > what about > > \starttext > \startTEXpage[offset=1em] > \doifinse

Re: [NTG-context] bug in \doifinset

2020-05-27 Thread Hans Hagen
On 5/27/2020 10:39 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 27.05.2020 um 22:31: Hi Hans, the following sample: \starttext \startTEXpage[offset=1em] \doifinsetelse{i7}{i4, i5, i7} {yes}{no} \stopTEXpage \stoptext outputs "yes" with l

Re: [NTG-context] bug in \doifinset

2020-05-27 Thread luigi scarso
On Wed, May 27, 2020 at 11:28 PM Pablo Rodriguez wrote: > > Without commas, lists are harder both to read and to write (at least, to > me). > > what about \starttext \startTEXpage[offset=1em] \doifinsetelse{i7}{% i4,% i5,% i7,% } {yes}{no} \stopTEXpage \stoptext her

Re: [NTG-context] bug in \doifinset

2020-05-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.05.2020 um 22:31: Hi Hans, the following sample: \starttext \startTEXpage[offset=1em] \doifinsetelse{i7}{i4, i5, i7} {yes}{no} \stopTEXpage \stoptext outputs "yes" with latest from 2020.05.18 16:50, but "no&qu

[NTG-context] bug in \doifinset

2020-05-27 Thread Pablo Rodriguez
Hi Hans, the following sample: \starttext \startTEXpage[offset=1em] \doifinsetelse{i7}{i4, i5, i7} {yes}{no} \stopTEXpage \stoptext outputs "yes" with latest from 2020.05.18 16:50, but "no" with latest from 2020.05.25 23:39. I think this

Re: [NTG-context] two superscript versions with Garamond Libre

2020-05-18 Thread Hans Hagen
] \definefontfamily[mainface][rm][EB Garamond 12] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1ex] {\feature[+][sups]1}¹{\feature[+][sups]2}²{\feature[+][sups]3}³% {\feature[+][sups]8}⁸{\feature[+][sups]9}⁹{\feature[+][sups]0}⁰\\ \setupbodyfont[twoface] {\feature

[NTG-context] two superscript versions with Garamond Libre

2020-05-18 Thread Pablo Rodriguez
] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1ex] {\feature[+][sups]1}¹{\feature[+][sups]2}²{\feature[+][sups]3}³% {\feature[+][sups]8}⁸{\feature[+][sups]9}⁹{\feature[+][sups]0}⁰\\ \setupbodyfont[twoface] {\feature[+][sups]1}¹{\feature[+][sups]2}²{\feature[+][sups]3

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
e[1]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}}\stop} > > \starttext > \startTEXpage[offset=2mm] > \cscript{C} > \start >\switchtobodyfont[9pt] >\cscript{C} > \stop > \stopTEXpage > \stoptext > > And here is a version with a minor chan

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
{{\mathscript{#1}}}\stop} \starttext \startTEXpage[offset=2mm] \cscript{C} \start \switchtobodyfont[9pt] \cscript{C} \stop \stopTEXpage \stoptext And here is a version with a minor change that works (same calligraphic C's)! \usebodyfont[xitsbidi] \define[1]\cscript{\start\m{{\mathscript{#1}}}\stop

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-04 Thread Gerben Wierda
bi=style:oblique, > force=yes, > rscale=0.9] > > \definefontfamily [abc] [ss] [Optima] > > \setupbodyfont[abc] > > \starttext > \startTEXpage[offset=1em] > \doloopoverlist{\tf, \it, \bf, \bi}{ > \recursestring\hyphenatedword{Николаевич typography}\par} > \s

Re: [NTG-context] Strangely placed dot

2020-05-04 Thread Mikael P. Sundqvist
placement of the dot in this example, and how > can I avoid it? > > \starttext > \startTEXpage[offset=3bp] > $E_tE_s=E_{\min(t,s)}$. > > \switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$. > > \switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$. > \stopTEXpage >

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-04 Thread Pablo Rodriguez
elvetica] [preset=range:cyrillic, %~ tf=style:light, %~ it=style:lightoblique, %~ bf=style:regular, %~ bi=style:oblique, force=yes, rscale=0.9] \definefontfamily [abc] [ss] [Optima] \setupbodyfont[abc] \starttext \startTEXpage[offset=1em] \doloopoverli

[NTG-context] Strangely placed dot

2020-05-02 Thread Mikael P. Sundqvist
Hi, what is going on with the placement of the dot in this example, and how can I avoid it? \starttext \startTEXpage[offset=3bp] $E_tE_s=E_{\min(t,s)}$. \switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$. \switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$. \stopTEXpage \stoptext Output attached

[NTG-context] [rotate question]

2020-05-01 Thread Floris van Manen
{% \rotate[rotation=\ctxlua{context(math.random(-15,-1))}]{\|}% } \def\stapA#1{\dorecurse{#1}{\streepA}} \def\stapB#1{\dorecurse{#1}{\streepB}} \starttext \startTEXpage[offset=20mm, width=297mm] \startalignment[width]~ \dorecurse{50}{\stapA{10}\stapB{10}} \stopalignment \stopTEXpage \stoptext

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
utlinetext. > >> > >> 4. To achieve the desired result you can now a) use MetaPost to draw the > >> complete card (letter plus frame) or b) use only TeX to put the letter > in a > >> frame and rotate it. > >> > >> begin tex example >

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
\bodyfontsize, rulethickness=1pt] \starttext \startTEXpage[offset=\linewidth] \dontleavehmode \rotate [rotation=5] {\color[darkred] {\frameletter{A}}} \rotate [rotation=-5]{\color[green] {\frameletter{L}}} \rotate [rotation=5] {\color[mediumblue]{\frameletter{E}}} \rotate [rotation=-5]{\color

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
gt; [frameletter] > [width=1.25em, >height=1.75em, >foregroundstyle=\ssbfc, >corner=round, >radius=0.1\bodyfontsize, >rulethickness=1pt] > > \starttext > > \startTEXpage[offset=\linewidth] > \dontleavehmode > \rotate [rotation=5] {\color[darkr

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
in a frame and rotate it. begin tex example \usecolors[svg] \defineframed [frameletter] [width=1.25em, height=1.75em, foregroundstyle=\ssbfc, corner=round, radius=0.1\bodyfontsize, rulethickness=1pt] \starttext \startTEXpage[offset=\linewidth] \dontleavehmode \rotate

[NTG-context] mp strings

2020-04-10 Thread Hans Hagen
ation of these permits passing and processing strings as-they-are. Just in case the Gerbens among us need it. Hans example ===== \startTEXpage \def\foo{x} \framed{\startMPcode interim catcoderegime := vrbcatcoderegime ; draw te

Re: [NTG-context] \registerhyphenationexception not working

2020-03-07 Thread Pablo Rodriguez
ght hyphenation: \setuplanguage[cs][righthyphenmin=2] \mainlanguage[cs] \setuphyphenation[method=traditional] \registerhyphenationexception[cs][cíl-em]% \starttext \startTEXpage[offset=1ex] \hyphenatedword{cílem} \stopTEXpage \stoptext The value for righthyphenmi

[NTG-context] \registerhyphenationexception not working

2020-03-07 Thread Jano Kula
]% % \startexceptions[cs] % cíl-em % \stopexceptions \startTEXpage cílem \stopTEXpage By the way, what is the reason to print \showlayout on four pages? Regards, Jano ___ If your question is of interest to others as well

Re: [NTG-context] Second derivative ''

2020-03-05 Thread Mikael P. Sundqvist
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----- > Oh, I had not. It looks better with collapsing=1, indeed. A few neq questions comes to me: Does

Re: [NTG-context] issues with \attachment when specifying name

2020-02-08 Thread Pablo Rodriguez
example). In that cases, renaming actual files could be both undesirable and a lot of work. It is mainly a question of consistency. Also across applications. Consider the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] attachment\attachment[file=xm

Re: [NTG-context] attachments working again (issue with /EmbeddedFiles)

2020-02-08 Thread Peter Rolf
pdf-1.5.18 and the following >> sample: >> >> \setuptagging[state=start] >> >> \setupbodyfont[30pt] >> >> \setupbackend >>    [format=PDF/A-3a, >>     intent=sRGB IEC61966-2.1, >>     profile={sRGB.icc,default_g

Re: [NTG-context] attachments working again (issue with /EmbeddedFiles)

2020-02-07 Thread Hans Hagen
,default_gray.icc}, level=0] \setupcolors[pagecolormodel=auto] \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] an attachment\attachment[file=xml-mkiv.pdf, type={application/pdf}] \stopTEXpage \stoptext With "method=h

Re: [NTG-context] attachments working again (issue with /EmbeddedFiles)

2020-02-07 Thread Pablo Rodriguez
t_gray.icc}, level=0] \setupcolors[pagecolormodel=auto] \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] an attachment\attachment[file=xml-mkiv.pdf, type={application/pdf}] \stopTEXpage \stoptext With "method=hidden" (no attachment anno

[NTG-context] attachments working again (issue with /EmbeddedFiles)

2020-02-07 Thread Pablo Rodriguez
Hans, many thanks for having fixed the issues with attachments (in latest beta from 2020.02.07 18:36). I haven’t tested attachments with PDF/A-3a. But there is still an issue with /EmbeddedFiles. MWE: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em

Re: [NTG-context] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...

2020-02-06 Thread context
ce] \setupbodyfontenvironment [default] [a=1.2, b=2.4, c=3.6, d=4.8, em=italic] \starttext \startTEXpage[offset=1em] roman\\ {\bf bold}\\ {\it italic}\\ {\bi bold italic}\\ {\tfa roman}\\

Re: [NTG-context] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...

2020-02-06 Thread Pablo Rodriguez
ace] [rm] [WorkSans] [tf={style:light}, it={style:lightitalic}] \setupbodyfont[mainface] \setupbodyfontenvironment [default] [a=1.2, b=2.4, c=3.6, d=4.8, em=italic] \starttext \startTEXpage[offset=1em] roman\\

Re: [NTG-context] extreme table and right frames with vertically spanned cells

2020-01-05 Thread Pablo Rodriguez
On 1/4/20 7:00 PM, Damien Thiriet wrote: > Hi list, > > It looks like switching off right frame is not taken into account when > spanning cell vertically. Hi Damien, this might be a bug, since other options work fine, such as in: \starttext \startTEXpage[offset=1em]

Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-02 Thread Wolfgang Schuster
] \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\getbuffer \stopTEXpage

Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-02 Thread Pablo Rodriguez
e][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 https://mailman.ntg.nl/piperma

Re: [NTG-context] PDF layer links

2019-11-12 Thread Philipp A.
hat you want: >> >> \setupinteraction >> [state=start, >> style=, >> color=, >> contrastcolor=, >> focus=standard] >> \enabledirectives[references.border=red] >> %~ \enabledirectives[references.bo

Re: [NTG-context] Small integral signs

2019-11-10 Thread Otared Kavian
small integral signs in displayed formulas. > > I removed the cache, but the problem was still there. > > /Mikael > > \starttext > \startTEXpage[offset=3bp] > \startformula > \int f(x)\,dx

[NTG-context] Small integral signs

2019-11-10 Thread Mikael P. Sundqvist
Hi, in latest lmtx I get small integral signs in displayed formulas. I removed the cache, but the problem was still there. /Mikael \starttext \startTEXpage[offset=3bp] \startformula \int f(x)\,dx \stopformula \stopTEXpage \stoptext

Re: [NTG-context] PDF layer links

2019-11-08 Thread Philipp A.
ocus=standard] > \enabledirectives[references.border=red] > %~ \enabledirectives[references.border]% defaults to grey > \define[1]\MyURL{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} > \starttext > \startTEXpage[offset=1em] > \MyURL{https://wiki.contextgarden.net} > \stopTEXpag

Re: [NTG-context] PDF layer links

2019-11-06 Thread Pablo Rodriguez
color=, contrastcolor=, focus=standard] \enabledirectives[references.border=red] %~ \enabledirectives[references.border]% defaults to grey \define[1]\MyURL{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \starttext \startTEXpage[offset=1em] \MyURL{https://wiki.conte

Re: [NTG-context] issue attaching remote files

2019-11-04 Thread Hans Hagen
On 11/4/2019 6:26 PM, Pablo Rodriguez wrote: Hi Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \attachment [file={https://eur-lex.europa.eu/legal-content/% ES/TXT/PDF/?uri=CELEX:02010L0040

[NTG-context] issue attaching remote files

2019-11-04 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \attachment [file={https://eur-lex.europa.eu/legal-content/% ES/TXT/PDF/?uri=CELEX:02010L0040-20180109}, name=one.pdf, color=orange

Re: [NTG-context] beta

2019-10-29 Thread Hans Hagen
On 10/28/2019 10:00 PM, Floris van Manen wrote: On 28-10-2019 19:20, Hans Hagen wrote: As a teaser ... it is also possible to embed svg code, as in: \startbuffer[svgtest]         \stopbuffer \startTEXpage     \includesvgbuffer[svgtest] \stopTEXpage \startTEXpage

Re: [NTG-context] beta

2019-10-28 Thread Floris van Manen
ot;10" stroke-opacity="0.3" >     fill="red" fill-opacity="0.3" >     /> >         cx="150" cy="50" r="40" >     stroke="green" stroke-width="10" >     fill="red" >     opacity=&

[NTG-context] beta

2019-10-28 Thread Hans Hagen
Hi, I uploaded a beta. In lmtx there is now a bit more advanced support for svg. A preliminary manual is included that explains a few things. As a teaser ... it is also possible to embed svg code, as in: \startbuffer[svgtest] \stopbuffer \startTEXpage \includesvgbuffer

[NTG-context] LMTX: Linux and Windows

2019-10-12 Thread Pablo Rodriguez
Dear list, I have the following sample (slightly modified version taken from java-imp-vplayer.mkiv): \starttext \startTEXpage[offset=3em] \useJSscripts[vplayer] \setupinteraction [state=start] \externalfigure [shockwave] [frame

Re: [NTG-context] issue with JavaScript in Acrobat

2019-10-07 Thread Pablo Rodriguez
function step_clock() { >> try { ++msecs ; >> if ((msecs >= (transitions[this.pageNum]/10)) && ( this.pageNum >> < this.numPages )) { ++this.pageNum; }; >> } catch (e) {} >> } >> >> advance = app.setInterval ("step_cl

Re: [NTG-context] issue with JavaScript in Acrobat

2019-10-07 Thread Peter Rolf
; < this.numPages )) { ++this.pageNum; }; > } catch (e) {} > } > > advance = app.setInterval ("step_clock()", 1); > advance.count = 0; > \stopJSpreamble > \starttext > \dorecurse{10}{\startTEXpage[pagestate=start, offset=1em] > \page

[NTG-context] issue with JavaScript in Acrobat

2019-10-06 Thread Pablo Rodriguez
Spreamble \starttext \dorecurse{10}{\startTEXpage[pagestate=start, offset=1em] \pagenumber \stopTEXpage} \stoptext Acrobat is required. And I have an issue with it Each slide takes a full second (1000 milliseconds). But the conditional in step_clock() needs to divide the element

Re: [NTG-context] new (lmtx) beta

2019-10-05 Thread Fabrice Couvreur
> ymin=-5, > ymax=5, > xstep=0.01, > ystep=0.01, > range={0}, > levels=1, > function="-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5", > linecolor="orange", > linewidth=1, > legend=false, > cache=true, > ] xsized 10cm ; > \stopMPpage > > \st

Re: [NTG-context] new (lmtx) beta

2019-10-04 Thread Mikael P. Sundqvist
h=1, legend=false, cache=true, ] xsized 10cm ; \stopMPpage \startbuffer[mmainput] ContourPlot[ {-4+x^2+x^5+15y-y^2-10x^3y^2+5x*y^4 == 0, -15x+2x*y+5*x^4*y-10x^2*y^3+y^5 == 0}, {x, -5, 5}, {y, -5, 5}, Frame -> False] \stopbuffer \startTEXpage[offset=2bp] \typebuffer[mmainput] \externalfigure[ma

[NTG-context] new (lmtx) beta

2019-10-04 Thread Hans Hagen
color[KindergartenEqual] [darkgreen] \definecolor[KindergartenPlus] [darkred] \definecolor[KindergartenMinus] [darkred] \definecolor[KindergartenTimes] [darkblue] \definecolor[KindergartenDivided][darkblue] \definefontfeature [mathextra] [metapost=kindergarten] \setupbodyfont[dejavu] \

Re: [NTG-context] Overfull hbox issues: different font,

2019-09-08 Thread Pablo Rodriguez
Namenskonflikte}\\ \setbreakpoints[compound] \hyphenatedword{gemessene Namens-konflikte Namenskonflikte} \stopbuffer \starttext \startTEXpage[offset=3em] \getbuffer[text]\\ \language[de] \getbuffer[text] \stopTEXpage \stoptext I hope it helps,

Re: [NTG-context] radiobuttons

2019-08-15 Thread Hans Hagen
me=off] \definefield[WHAT][radio][WHATEVER][WHATONE,WHATTWO][WHATONE] \definesubfield[WHATONE][][YES,NOP] \definesubfield[WHATTWO][][YES,NOP] \starttext \startTEXpage[offset=2cm] \field[whatone]\space\field[whattwo] \field[WHATONE]\space\field[WHATTWO] \field[WHATONE]\space

Re: [NTG-context] radiobuttons

2019-08-14 Thread Hans Hagen
][horizontal][width=50mm,height=15mm,offset=0pt,option={printable},offset=overlay] \definefield[whatthree][text][textstuff] \starttext \startTEXpage[offset=2cm] \field[whatone]\space\field[whattwo]\space\field[whatthree] \stopTEXpage % \startTEXpage[offset=2cm] % \field[whatone]\space\field

[NTG-context] bug with fonts in LMTX (Win7)?

2019-07-17 Thread Pablo Rodriguez
][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\getbuffer

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
every glyph carefully in a metapost file "cas-chars.mp": beginglyph(20013,1000,1000,0); % a lot of fillings and drawingsendglyph; then call them in a test file: \definemetafont[cas-logo][cas-chars.mp] \startTEXpage \definefont[cas][cas@cas-logo] \cas 中國科學院\stopTEXpage I

Re: [NTG-context] issue with italic correction (again)

2019-06-27 Thread Taco Hoekwater
ing: \definefontfeature[italic][itlc=yes,textitalics=yes] \setupitaliccorrection[global, always] \starttext \startbuffer[chars] \definefontfamily [mainface\DesiredFont] [rm] [\DesiredFont] \definefontfamily [mainface_corrected\DesiredFont] [

[NTG-context] issue with italic correction (again)

2019-06-25 Thread Pablo Rodriguez
] \startTEXpage[offset=1em] \dorecurse{26} {\setupbodyfont[mainface]% [{\em \recurselevel}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters{\recurselevel}}) ({\em \Characters{\recurselevel

[NTG-context] italic correction (before the glyph)

2019-06-23 Thread Pablo Rodriguez
[mainface_corrected] [rm] [\DesiredFont] [features={italic}] \setupbodyfont[mainface] \setupitaliccorrection[global,always] \starttext \startbuffer[chars] \startTEXpage[offset=1em] \dorecurse{26} {\setupbodyfont[mainface]% [{\em

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

  1   2   3   4   5   6   7   8   >