[NTG-context] lmtx update: two experimental features

2021-04-18 Thread Hans Hagen
be more than one hyphen character so here is the way to deal with it (the hyphenchar code is like the other 'codes'): \hccode"002D = "002D \hccode"2010 = "2010 \hccode"2013 = "2013 \hccode"2014 = "2014 This makes all these four into (kind of) compound w

[NTG-context] braces removed in url

2021-03-26 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \def\MyURL#1{\goto{\hyphenatedurl{#1}}[url(#1)]} \MyURL{a={b}}\\ \MyURL{a=\letterleftbrace b\letterrightbrace}\\ \asciimode\MyURL{a={b}}\\ \stopTEXpage \stoptext For all

[NTG-context] metafun / patterns

2021-03-25 Thread Hans Hagen
shifted (25,-25))) withcolor "darkgreen" withopacity .5) withpatternscale (1/3,1/3) ; draw closedcurve(unitsquare xyscaled (200,200) shifted (0,-200)) withpattern image (fill closedcurve((fullcircle scaled 40 shifted (25,-25))) withcolor "darkblue" withopac

Re: [NTG-context] Zero size kerns with latest LMTX beta 2020-03-17

2021-03-19 Thread Pablo Rodriguez
On 3/19/21 10:11 PM, Joseph wrote: > Dear list, > > Following MWE aims to reproduce the issue, Hi Joseph, I’m afraid that kerning current latest from 2021.03.17 17:46 isn’t able to deal with the OpenType kern feature (which is enabled by default): \showfontkerns \starttext \sta

[NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Jacob Kauffmann
that when writing the MWE. Best wishes, Jacob Kauffmann \setupTEXpage[width=10cm] \startTEXpage \placetable[force,none]{}{% \starttabulate[|c|c|] \NC A \NC B \NC\NR \HL \dorecurse{50}{\NC \expanded{\recurselevel} \NC \recurselevel \NC\NR} \stoptabulate } \stopTEXpage \stoptext

Re: [NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Hans Hagen
is not relevant for my actual use-case, but I found that when writing the MWE. Best wishes, Jacob Kauffmann \setupTEXpage[width=10cm] \startTEXpage \placetable[force,none]{}{% \starttabulate[|c|c|] \NC A \NC B \NC\NR \HL \dorecurse{50}{\NC \expanded{\recurselevel} \NC \recurselevel \NC\NR} \stoptabulate

[NTG-context] Indenting on all TEXpages

2021-02-28 Thread Jacob Kauffmann
\setupTEXpage[width=10cm] \setupindenting[yes,medium] % not working \starttext \startTEXpage \input knuth \stopTEXpage % working \startTEXpage \setupindenting[yes,medium] \input knuth \stopTEXpage \stoptext

Re: [NTG-context] Indenting on all TEXpages

2021-02-28 Thread Hans Hagen
page that needs indenting. Best, Jacob Kauffmann \setupTEXpage[width=10cm] \setupindenting[yes,medium] % not working \starttext \startTEXpage \input knuth \stopTEXpage % working ^^^ not working because you introduce a space: \startTEXpage \setupindenting[yes,medium]% add a percent here \input

Re: [NTG-context] looping an overlay

2021-02-24 Thread Pablo Rodriguez
On 2/24/21 7:44 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 24.02.2021 um 19:23: >> [...] >>\starttext >> \startTEXpage[offset=1em] >>\startoverlay >> \dostepwiserecurse{25}{95}{5} >>{{\recurselevel\ }} >

Re: [NTG-context] looping an overlay

2021-02-24 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 24.02.2021 um 19:23: Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startoverlay \dostepwiserecurse{25}{95}{5} {{\recurselevel\ }} \stopoverlay \stopTEXpage \stoptext Which is the right

[NTG-context] looping an overlay

2021-02-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startoverlay \dostepwiserecurse{25}{95}{5} {{\recurselevel\ }} \stopoverlay \stopTEXpage \stoptext Which is the right way to loop an overlay? Many thanks for your help

Re: [NTG-context] Arbitrary equation tags... again

2021-02-23 Thread Jairo A. del Rio
ork (the tag is missing): > > \startTEXpage[offset=2bp] > \startplaceformula[title=A,reference=alpha] > \startformula > 1 + 1 = 2 > \stopformula > \stopplaceformula > I'm in \in[alpha] > \stopTEXpage > > Jairo > > El lun, 22 de fe

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
Hi again. The following doesn't work (the tag is missing): \startTEXpage[offset=2bp] \startplaceformula[title=A,reference=alpha] \startformula 1 + 1 = 2 \stopformula \stopplaceformula I'm in \in[alpha] \stopTEXpage Jairo El lun, 22 de feb. de 2021 a la(s) 09:00, Jairo A. del

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
er level and only use it deep down. It was > never meant as user command. > > > I imagine some things have changed in 2021 and I hope a better solution > > is feasible nowadays. > > \startTEXpage[offset=2bp] > \startplaceformula[title=

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Hans Hagen
level and only use it deep down. It was never meant as user command. I imagine some things have changed in 2021 and I hope a better solution is feasible nowadays. \startTEXpage[offset=2bp] \startplaceformula[title=A] \startformula 1 + 1 = 2 \stopformula \stopplaceformula \stopT

Re: [NTG-context] path in LuaMetaFun

2021-02-21 Thread Hans Hagen
but that will be fixed in the next upload Many thanks for your new upload, Hans. Another minor detail: \starttext \startTEXpage \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3)..(9,-3)..(12,0)..(9

Re: [NTG-context] path in LuaMetaFun

2021-02-20 Thread Pablo Rodriguez
the next upload Many thanks for your new upload, Hans. Another minor detail: \starttext \startTEXpage \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3)..(9,-3)..(12,0)..(9,3)..(3,-3)..cy

[NTG-context] issue with references

2021-02-19 Thread Pablo Rodriguez
Hans, I have the following sample: \setuphead[chapter][sectionsegments=chapter] \setuphead[section][sectionsegments=section] \setupreferencestructureprefix [default] [prefixsegments=*:*] \starttext \startTEXpage[offset=1em] \chapter{Chapter} \section[sec]{Section

[NTG-context] lmtx

2021-02-19 Thread Hans Hagen
Hi, In the last couple of lmtx uploads \startTEXpage should work a bit better. These uploads also introduced a new option for alignments, which can be checked in: \def\DemoA#1{\vbox{\red \hsize#1\input tufte }} \def\DemoB#1{\vbox{\green \setupalign[always]\hsize#1\input

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
what you might have in mind. > > I’m afraid that I’m not sure whether the following sample contains your > “arbitrary styles”. > > \setupinteractionscreen[option=max] > > \definefontfamily > [mainface] > [rm] > [TeX Gyre Pagella] > [it={TeX Gyre Curso

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Pablo Rodriguez
. \setupinteractionscreen[option=max] \definefontfamily [mainface] [rm] [TeX Gyre Pagella] [it={TeX Gyre Cursor-Italic}, bf={TeX Gyre Adventor-Bold}, bi={TeX Gyre Termes-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainfac

Re: [NTG-context] [pagenumbers in pdf]

2021-02-13 Thread Wolfgang Schuster
Floris van Manen schrieb am 13.02.2021 um 13:10: When I generate a serie of TEXpages, those pages end up with the same page number in the pdf. 1, 1, 1 \starttext \def\blz{\begingroup \startTEXpage 1 2 3 \stopTEXpage \endgroup} \blz \blz \blz \stoptext If I insert a \strut at the start, I get

[NTG-context] [pagenumbers in pdf]

2021-02-13 Thread Floris van Manen
When I generate a serie of TEXpages, those pages end up with the same page number in the pdf. 1, 1, 1 \starttext \def\blz{\begingroup \startTEXpage 1 2 3 \stopTEXpage \endgroup} \blz \blz \blz \stoptext If I insert a \strut at the start, I get pagenumbering 1, 2, 3, 1 \starttext \def\blz

Re: [NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Wolfgang Schuster
on(1, 4){x} \position(2, 4){a} \stoppositioning \stoptext Why is it so, and how could I avoid that please? 1. Because the letters have different heights. \startTEXpage[offset=1ex] \processisolatedchars{aix}\ruledhbox \stopTEXpage 2. Add \strut, e.g. \position(1, 1){\strut i}

Re: [NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-09 Thread Pablo Rodriguez
On 2/9/21 7:30 PM, Hans Hagen wrote: > On 2/9/2021 7:15 PM, Pablo Rodriguez wrote: >> [...] >> Sorry, Hans, the original sample was different, but I removed the offset >> option in order to make it smaller: >> >>\setupinteractionscreen[option=max] >>

Re: [NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-09 Thread Hans Hagen
is \startpagemakeup \stoppagemakeup Sorry, Hans, the original sample was different, but I removed the offset option in order to make it smaller: \setupinteractionscreen[option=max] \starttext \startTEXpage[offset=1em] \ConTeXt \stopTEXpage \stoptext I hope it is clearer now

Re: [NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-09 Thread Pablo Rodriguez
you want is > > \startpagemakeup > > \stoppagemakeup Sorry, Hans, the original sample was different, but I removed the offset option in order to make it smaller: \setupinteractionscreen[option=max] \starttext \startTEXpage[offset=1em] \ConTeXt \stopTEXpage \stoptext I hope it

[NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-08 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteractionscreen[option=max] \starttext \startTEXpage \null \stopTEXpage \stoptext LMTX doesn’t include full page. MkIV compiles it fine. If I remove the TEXpage, LMTX includes the full page mode. I’m using latest version from

[NTG-context] small lmtx update

2021-02-02 Thread Hans Hagen
\stopbuffer \starttext \startTEXpage[offset=2pt,strut=no] \getbuffer \switchtobodyfont[pagella] \getbuffer \switchtobodyfont[dejavu] \getbuffer \stopTEXpage \stoptext This is dedicated to Jano who wants to be able to search and these are proper glyphs (so

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Henning Hraban Ramm
ds more consistent. OTOH I can understand you don’t want to bloat your module. > Another option is to write the external files as valid tex file (i.e., with a > \startTEXpage .. \stopTEXpage wrapper), and when defining the filtercommand, > use something like `context --environment=env fi

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
nd after filters while processing external files. Another option is to write the external files as valid tex file (i.e., with a \startTEXpage .. \stopTEXpage wrapper), and when defining the filtercommand, use something like `context --environment=env filename`, where env is the environment file

Re: [NTG-context] font fallback hook (alphabet suspects)

2021-01-29 Thread Hans Hagen
for ideas. Already there for ages ... testsuite goodies-002.tex + demo.lfg shows how to color your special characters ... one of the probably many unknown features -) There's also this: \enabletrackers[fonts.missing=replace] \startTEXpage Jano uses \char 12345. \stopTEXpage and of course you

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-28 Thread Henning Hraban Ramm
filter.tex \startmodule[tikzfilter] \usemodule[filter] % docs see https://github.com/adityam/filter \def\TIKZTEMP{tikztemp} % name of folder for TikZ/buffer files % normal setup \startbuffer[tikz::before] \environment env_world \environment env_TikZ \startTEXpage \starttikzpicture \stopbuffer

Re: [NTG-context] understanding \startTEXpage

2021-01-28 Thread Hans Hagen
On 1/27/2021 6:24 PM, Peter Münster wrote: Hi, According to https://wiki.contextgarden.net/Command/startTEXpage it "starts a page that fits its contents exactly". But it seems, that part of the content is cropped here: \startTEXpage X \hskip20cm X \stopTEXpage No problem with 10

Re: [NTG-context] externalizing TikZ graphics

2021-01-27 Thread Henning Hraban Ramm
ikz::before] > \environment env_world % contains font setup etc. > \environment env_TikZ % contains TikZ settings > > \startpagefigure Wrong, I need \startTEXpage > \starttikzpicture[thick,domain=-90:90]% TODO: make this configurable Now, how can I forward options from \starttix

[NTG-context] understanding \startTEXpage

2021-01-27 Thread Peter Münster
Hi, According to https://wiki.contextgarden.net/Command/startTEXpage it "starts a page that fits its contents exactly". But it seems, that part of the content is cropped here: \startTEXpage X \hskip20cm X \stopTEXpage No problem with 10cm instead of 20cm... Is this a bug or expected

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
ke sense. > I think I understand now why integrating MetaPost made a lot of sense. Here is a simple example: \usemodule[filter] \startbuffer[tikz-before] \usemodule[tikz] \startTEXpage \starttikzpicture \stopbuffer \startbuffer[tikz-after] \stoptikzpicture \stopTEXpage \stopbuffer \defineex

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Hans Hagen
buffer[foo] % maybe include a style / enviroment \usemodule[tikz] \usetikzlibrary[patterns] \startTEXpage \starttikzpicture \draw[pattern color=red,pattern=bricks] (0,0) circle (1cm); \stoptikzpicture \stopTEXpage \stopbuffer \framed[offset=overlay]{\typ

[NTG-context] new font trickery

2021-01-24 Thread Hans Hagen
category {demo} unicode 105 \relax % rather low level for now \registerboxglyph category {demo} unicode 106 \relax % rather low level for now \definefontfeature[whatever][box=demo] \definedfont[Serif*whatever] % \enabletrackers[fonts.collecting] \startTEXpage%[offset=0pt] %\hbox{g

Re: [NTG-context] demo-symbols not working with LMTX

2021-01-19 Thread Hans Hagen
. Has something changed? i'll fix it for mkiv (has to be adapted to lua 5.3+) the lmtx example usage is like this: \showglyphs \startTEXpage[offset=10pt] \definemetafont[MyDemoA][demo-symbols][at 10pt]\MyDemoA\char9754 \definemetafont[MyDemoB][demo

[NTG-context] lmtx upload

2021-01-11 Thread Hans Hagen
Hi, I uploaded a new lmtx. Nothing spectacular as I'm still playign with compact font support (as explained in previous mails). Most seem to work now. New magic: \startTEXpage[offset=10pt] \vl\glyph `M\vl\quad \vl\glyph raise 3pt`M\vl\quad \vl

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Hans Hagen
primitives of which many deal with all kind of font related paraneters and inter-blob spacing. \starttext \startTEXpage[offset=2mm,width=30cm,align={verytolerant,nothyphenated,flushleft},foregroundstyle=\tttf] \startluacode local t = tex.primitives() table.sort(t) local

Re: [NTG-context] issue with defined font feature

2020-12-26 Thread Wolfgang Schuster
[anothermpface] [ss] [Gabriola] [features={default, standarddigits}] \definefontfamily [anothermpface] [tt] [Gabriola] [features={standarddigits}] \setupbodyfont[anothermpface] \starttext \startTEXpage[offset=1em] 123324234 --\\ \ss

[NTG-context] issue with defined font feature

2020-12-26 Thread Pablo Rodriguez
={default, standarddigits}] \definefontfamily [anothermpface] [tt] [Gabriola] [features={standarddigits}] \setupbodyfont[anothermpface] \starttext \startTEXpage[offset=1em] 123324234 --\\ \ss 12123 -- 123\\ \tt 12123 -- 123 \stopTEXpage \stoptext I’m not being

Re: [NTG-context] Ducks in ConTeXt

2020-12-24 Thread Jairo A. del Rio
xt > > > > I wish the best for you all. Happy holidays! > Nice! > > You can add, at the end of the module: > > \continueifinputfile{t-metaducks.mkvi} > > \starttext > \dorecurse{100}{ > \startTEXpage > \randomducks % Why plura

Re: [NTG-context] Ducks in ConTeXt

2020-12-24 Thread Hans Hagen
I wish the best for you all. Happy holidays! Nice! You can add, at the end of the module: \continueifinputfile{t-metaducks.mkvi} \starttext \dorecurse{100}{ \startTEXpage \randomducks % Why plural? \stopTEXpage } \stoptext Which means that you run the module

Re: [NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-07 Thread Hans Hagen
On 12/7/2020 10:03 AM, Jairo A. del Rio wrote: Understood. Sorry, I wasn't meant to be rude. In such cases, how should Regarding the the 'tagging' as 'bug' ... it's more that once a question mentions 'bug' it no longer serves as 'general question' with 'possible answer' for anyone. I

Re: [NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-07 Thread Jairo A. del Rio
i. Thanks to Hans for the quick fixes. However, some examples are still > > misbehaving. > > See the following: > > > > \setupbodyfont[70pt] > > \starttext > > \startTEXpage > > \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} > >

Re: [NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-07 Thread Hans Hagen
On 12/7/2020 6:15 AM, Jairo A. del Rio wrote: Hi. Thanks to Hans for the quick fixes. However, some examples are still misbehaving. See the following: \setupbodyfont[70pt] \starttext \startTEXpage \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} \stopTEXpage \stoptext It

[NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-06 Thread Jairo A. del Rio
Hi. Thanks to Hans for the quick fixes. However, some examples are still misbehaving. See the following: \setupbodyfont[70pt] \starttext \startTEXpage \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} \stopTEXpage \stoptext It works in MkIV, but it has the right margin cut wit

Re: [NTG-context] Bugs using \startTEXpage ... \stopTEXpage, Metapost and text

2020-12-06 Thread Pablo Rodriguez
On 12/6/20 3:29 PM, Jairo A. del Rio wrote: > [...] > gives a normal output in MkIV, but buggy output in LMTX. It seems only > TeX commands in Metapost (textext, thetextext, etc.) are affected. Am I > missing something? Hi Jairo, the sample can be much simpler: \starttext \startMPcode

[NTG-context] Bugs using \startTEXpage ... \stopTEXpage, Metapost and text

2020-12-06 Thread Jairo A. del Rio
Hi. The following: \starttext %Using \startMPpage instead doesn't help \startTEXpage[width=1920px,height=1080px,margin=1em] \startplacefigure[location=force,number=no] \startMPcode draw textext("some text"); \stopMPcode \stopplacefigure \stopTEXpage \stoptext gives a normal outp

Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Wolfgang Schuster
Hi Bruce, here you have a sample: \setuphyphenation[method=traditional] \registerhyphenationexception[en][re-im-ple-men-ta-tion] \starttext \startTEXpage[offset=1em] \hyphenatedword{re-implementation}\\ \hyphenatedword{re||implementation}\\ \hyphenatedword{re--impl

Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Pablo Rodriguez
uce, here you have a sample: \setuphyphenation[method=traditional] \registerhyphenationexception[en][re-im-ple-men-ta-tion] \starttext \startTEXpage[offset=1em] \hyphenatedword{re-implementation}\\ \hyphenatedword{re||implementation}\\ \hyphenatedword{re--implementation}\\ \hyphenatedword{reim

Re: [NTG-context] Testing for LMTX

2020-11-27 Thread Jean-Philippe Rey
are looking for: > > \starttext > \startTEXpage[offset=1em] > \startlmtxmode LMTX\stoplmtxmode > \startmkivmode MkIV\stopmkivmode > \stopTEXpage > \stoptext > > Just in case it helps, > > Pablo -- Jean-Philippe Rey jean-philippe@centralesupelec.fr

Re: [NTG-context] Testing for LMTX

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 8:06 PM, Jean-Philippe Rey wrote: > [...] > Do you know a way to distinguish between LMTX and MkIV ? Hi Jean-Philippe, I guess this is what you are looking for: \starttext \startTEXpage[offset=1em] \startlmtxmode LMTX\stoplmtxmode \startmkivmode MkIV\stopmk

[NTG-context] flushleft nbsp with unequal width

2020-11-23 Thread Jano Kula
Hello, with \setupalign[flushleft] non-breakable space has different width than regular space. With pure \rightskip0pt plus 1fill all spaces are equal. Is this wanted behaviour or do I miss additional settings? \showmakeup[glue] \startTEXpage[width=80mm,offset=5mm] \rightskip0pt plus 1fill woo

Re: [NTG-context] Problem with setupcharacterspacing and comma

2020-11-21 Thread Rik Kabel
ght=1,alternative=1] % ,     \setupcharacterspacing [Test] ["0065]     [left=0.5,right=1,alternative=1] % e     \setupcharacterspacing [Test] ["003B]     [left=0.5,right=1,alternative=1] % e     \startTEXpage[offset=1em]     abc; def, g     \setcharacterspacing[Test]abc; def, g     \stop

Re: [NTG-context] Problem with setupcharacterspacing and comma

2020-11-21 Thread Hans Hagen
acing [Test] ["0065] [left=0.5,right=1,alternative=1] % e \setupcharacterspacing [Test] ["003B] [left=0.5,right=1,alternative=1] % e \startTEXpage[offset=1em] abc; def, g \setcharacterspacing[Test]abc; def, g \stopTEXpage remove the spac

[NTG-context] Problem with setupcharacterspacing and comma

2020-11-20 Thread Rik Kabel
.5,right=1,alternative=1] % e \setupcharacterspacing [Test] ["003B] [left=0.5,right=1,alternative=1] % e \startTEXpage[offset=1em] abc; def, g \setcharacterspacing[Test]abc; def, g \stopTEXpage

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Wolfgang Schuster
be: \setupbodyfont[cursor] \starttext \startTEXpage[offset=1em] a ▸ \stopTEXpage \stoptext Which explains why the character is being dropped. What I don't understand is why is LMMono12-Regular being used? I thought I had read somewhere that TeX Gyre fonts were now the default (I'm

[NTG-context] problems with signature fields

2020-11-11 Thread Pablo Rodriguez
Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \definefield[x][signature] \field[x] \stopTEXpage \stoptext I can only use Acrobat to sign PDF documents with signature fields generated by ConTeXt. Other tools sign

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Pablo Rodriguez
[cursor] \starttext \startTEXpage[offset=1em] a ▸ \stopTEXpage \stoptext > Which explains why the character is being dropped. What I don't > understand is why is LMMono12-Regular being used? I thought I had > read somewhere that TeX Gyre fonts were now the default (I'm on > Co

[NTG-context] Bug in overprint? (was: how to set overprint)

2020-11-09 Thread Jano Kula
missing >> here? >> >> \setupcolors[intent=overprint] >> \startTEXpage[offset=10mm] >> \framed[frame=on,offset=10mm, >> background=color,backgroundcolor=darkgreen]{ >> % \startcolorintent[overprint] >> \start

[NTG-context] store data in the first run for later runs?

2020-11-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startmode[*first] \startluacode io.write(" What’s your name?") document.user_name = io.read() document_data = { "\\def\\UserName{" .. document.user_name .. "}" } io.sa

Re: [NTG-context] how to set overprint

2020-10-30 Thread Jano Kula
missing > here? > > \setupcolors[intent=overprint] > \startTEXpage[offset=10mm] > \framed[frame=on,offset=10mm, > background=color,backgroundcolor=darkgreen]{ > % \startcolorintent[overprint] > \startoverprint > text in black >

[NTG-context] how to set overprint

2020-10-29 Thread Jano Kula
Hello, whatever I try, I cannot get the overprinting right (checked in Output Preview of Acrobat). Even overprint-001.tex from the test suite (2020-09-19) doesn't seem to have it right (latest beta). What I'm missing here? \setupcolors[intent=overprint] \startTEXpage[offset=10mm] \framed[frame

Re: [NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-28 Thread Pablo Rodriguez
t with the first run mode. \startmode[*first] \startluacode io.write("\n\n Document URL?") document.url_address = io.read() \stopluacode \definedataset[document_data] \setdataset[document_data] [url=\cldcontext{document.url_address}] \stopmode \star

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

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