Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
ur point with the following sample: \showframe \setupinteraction[state=start] \starttext \startbuffer[abc] def foo(x): if x == 0: bar() else: baz(x) foo(x - 1) \stopbuffer \comment[location=leftmargin, space=yes, buffer=abc, title={Python code}]

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Hans Hagen via ntg-context
On 1/27/2023 4:22 AM, Joel via ntg-context wrote: Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends

[NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Joel via ntg-context
Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? --Joel

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-26 Thread Otared Kavian via ntg-context
ael for all this work! >>> >>> Regarding the details of vertical alignment in math, I wonder whether the >>> column « : » in front of the equal sign « = », in the combination « := » >>> (used to define for instance a new variable) should be alos centered

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-26 Thread Hans Hagen via ntg-context
combination « := » (used to define for instance a new variable) should be alos centered around the math axis, as explained in the article. For instance in the following example \setupbodyfont[lucidaot,12pt] \starttext \startformula f(x) := -(u|x) := - \langle u, x \rangle \stopformula \stopformula

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-25 Thread Mikael Sundqvist via ntg-context
nation « := » > (used to define for instance a new variable) should be alos centered around > the math axis, as explained in the article. For instance in the following > example > > \setupbodyfont[lucidaot,12pt] > \starttext > \startformula > f(x) := -(u|x) := - \langle u, x \

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-25 Thread Otared Kavian via ntg-context
. For instance in the following example \setupbodyfont[lucidaot,12pt] \starttext \startformula f(x) := -(u|x) := - \langle u, x \rangle \stopformula \stopformula \startformula f : A \longrightarrow B \stopformula \stoptext it seems to me that the lower dot (or square…) in the semicolumn of the

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-24 Thread Aditya Mahajan via ntg-context
p -x "**/t-*.*" so that no t- modules from tikz are > unzipped but still get the following error on a simple hello world example: > > \usemodule[tikz] > > \starttext > Hello > \stoptext > > gives the attached log. FWIW, the above example also fails on 2023.0

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Pablo Rodriguez via ntg-context
ontfamily[mainface][ss][TeX Gyre Heros] \definefontfamily[mainface][tt][TeX Gyre Cursor] \definefontfamily[mainface][hw][Lucida Casual] \definefontfamily[mainface][cg][Lucida Casual] \setupbodyfont[mainface] \starttext \doloopoverlist{\rm,\ss,\tt,\hw,\cg} {{\recursestring% The quick

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Mattias Märka via ntg-context
xt wrote: > > > > On 1/23/23 19:04, Mattias Märka via ntg-context wrote: > > > Hi, > > > > I'm trying to access Lucida Casual. > > > Hi Matthias, > > With a relatively recent version of ConTeXt (LMTX or MkIV), the > following should wor

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Pablo Rodriguez via ntg-context
On 1/23/23 19:04, Mattias Märka via ntg-context wrote: > Hi, > > I'm trying to access Lucida Casual. Hi Matthias, With a relatively recent version of ConTeXt (LMTX or MkIV), the following should work: \definefontfamily[myserif][rm][Lucida Casual] \starttext The quick brown

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Garulfo via ntg-context
[font:fallback:serif]   \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default] \stoptypescript \starttypescript [myserif]   \definetypeface [myserif] [rm] [serif] [myserif]    [default] \stoptypescript \setupbodyfont[12pt] \starttext The quick brown fox jumps over the lazy dog

Re: [NTG-context] Change in \vec behavior

2023-01-22 Thread Mikael Sundqvist via ntg-context
do at the end of each year, I upgraded my ConTeXt installation. > I noticed a change in \vec behavior which doesn't extend the arrow anymore. > Here is my example: > > \starttext > Engine: \texenginename\ \texengineversion > > \ConTeXt: \contextversionnumber > >

[NTG-context] variable font not working

2023-01-22 Thread Pablo Rodriguez via ntg-context
Dear list, using current latest (from 2023.01.15 14:04), the just released version of Source Serif 4 Variable (https://github.com/adobe-fonts/source-serif/releases/latest) and the following sample: \usemodule[fonts-variable] \starttext \showfontvariations[font=file:SourceSerif4Variable

[NTG-context] Why won't custom indexes work when the value comes from \getvalue?

2023-01-21 Thread Joel via ntg-context
won't work} \starttext % \setcoreidea{this works} \input knuth \input knuth \input knuth \input knuth \setcoreidea{\getvalue{secret1}}         \startchapter[title=Core Ideas]             \placecoreidea         \stopch

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Lutz Haseloff via ntg-context
\starttext Test Test \definefont[bahnlight][name:bahnschriftlight*default] \startMPcode picture pic; pic := thelabel(textext("\bahnlight This is Bahnschrift light in Metafont 0123456789"), (0, 0)); draw pic; \stopMPcode \stoptext Am 20. Januar 2023 18:28:23 MEZ schrieb Guido Bart

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Guido Bartolucci via ntg-context
And how do you set the light variation? On Fri, Jan 20, 2023 at 2:08 AM Lutz Haseloff via ntg-context < ntg-context@ntg.nl> wrote: > Hi Guido, > > > this works here: > > \starttext > Test Test > > \usemodule[fonts-variable] > \definefontfamily [mainface]

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
t; > > > > > > Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context < > ntg-context@ntg.nl> a écrit : > >> > >> MWE: > >> > >> \starttext > >> > >> $\vec{k}$ > >> > >> \stoptext > >>

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Mikael Sundqvist via ntg-context
he spacing around $\overrightarrow{k}$ seems > pretty weird, so atm there is no fallback solution. > > > > Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context > a écrit : >> >> MWE: >> >> \starttext >> >> $\vec{k}$ >> >> \s

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
I confirm the behavior. Also possibly linked is that the spacing around $\overrightarrow{k}$ seems pretty weird, so atm there is no fallback solution. Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context < ntg-context@ntg.nl> a écrit : > MWE: > > \starttext > > $\

[NTG-context] bug $\vec{}$

2023-01-20 Thread Alan Braslau via ntg-context
MWE: \starttext $\vec{k}$ \stoptext places the arrow *before* the symbol "k", latest download. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Lutz Haseloff via ntg-context
Hi Guido, this works here: \starttext Test Test \usemodule[fonts-variable] \definefontfamily [mainface] [ss] [bahnschrift] \setupbodyfont[mainface] \ss 123456789 Wild! \medskip \startMPcode picture pic; pic := thelabel(textext("\ss This is in Metafont 0123456789"), (0, 0))

[NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Guido Bartolucci via ntg-context
I haven't been able to find working examples. Here is some sample code. I would really like to be able to use the light variation of this DIN-like font. \usemodule[fonts-variable] \definefontfamily [mainface] [ss] [bahnschrift] \setupbodyfont[mainface] \starttext \ss 123456789 Wild! \me

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Bruce Horrocks via ntg-context
t;> aspect of allowing embedded Lua. >> \startluacode >> -- \dummycommand >> \stopluacode >> \starttext >> Hello >> \stoptext > > a bang-head-against-the-wall case: > > \let\dummycommand\relax > > \startluacode > -- \dummycommand > \

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Hans Hagen via ntg-context
artluacode -- \dummycommand \stopluacode \starttext Hello \stoptext a bang-head-against-the-wall case: \let\dummycommand\relax \startluacode -- \dummycommand \stopluacode \starttext Hello \stoptext or: \ifdefined\dummycommand \else \let\dummycommand\relax \fi a document-on-the-wiki challenge for P

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Pablo Rodriguez via ntg-context
Hi Bruce, I think your code should read: \startluacode -- \\dummycommand \stopluacode \starttext Hello \stoptext BTW, in pure Lua: a = "\a" b = "\\b" print(a..b) outputs "\b". Sorry, I lack the knowledge to explain this, but backslash seems

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-17 Thread Aditya Mahajan via ntg-context
p -x "**/t-*.*" so that no t- modules from tikz are > unzipped but still get the following error on a simple hello world example: > > \usemodule[tikz] > > \starttext > Hello > \stoptext > > gives the attached log. In case anyone else needs a temp workaround

[NTG-context] Minor bug in Lua or ConTeXt

2023-01-17 Thread Bruce Horrocks via ntg-context
ConTeXt ver: 2023.01.04 The following MWE won't compile because of the \dummycommand line even though it is a comment. Not sure whether it's a minor bug or an unavoidable aspect of allowing embedded Lua. \startluacode -- \dummycommand \stopluacode \starttext Hello \stoptext — Bruc

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
following error on a simple hello world example: \usemodule[tikz] \starttext Hello \stoptext gives the attached log. Does the latest pgf/tikz run at your end? Adityajob > passes > version mismatch: 1.32 <> 1.33 system > system > ConTeXt ver: 2

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Hans Hagen via ntg-context
there \usemodule[tikz] \usemodule[pgfplots] \starttext Hello \stoptext seems to work here I did a fresh install of context and downloaded the latest version of pgf/tikz and pgfplots from ctan. Now, something is wrong with tikz: \usemodule[tikz] \starttext Hello \stoptext gives the attached log

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
e > > > > > > \usemodule[tikz] > > > \usemodule[pgfplots] > > > > > > \starttext > > > Hello > > > \stoptext > > > > > > seems to work here > > > > I did a fresh install of context and downloaded the latest versi

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Henri Menke via ntg-context
On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote: > > On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > > > just load tikz first so that the right loader helpers are there > > > > \usemodule[tikz] > > \usemodule[pgfplots] > > > > \sta

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > just load tikz first so that the right loader helpers are there > > \usemodule[tikz] > \usemodule[pgfplots] > > \starttext > Hello > \stoptext > > seems to work here I did a fresh install of context and do

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
twidth, height=\textwidth, framecolor=red] \userendering[#1][video/mp4][#1] [embed=yes, auto] \placerenderingwindow[#1][#1]} \starttext \null\page \startTEXpage[offset=1em, pagestate=start] \IncludeVideo[video-1.mp4] \stopTEXpage \null\page \startTEXpage[offset=1em, pagestate

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Hans Hagen via ntg-context
] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture \stoptext Without loading the pgfplots module, this draws a circle. With the \usemodule[pgfplots] line, this has the error below before doing

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-15 Thread Aditya Mahajan via ntg-context
> \usemodule[tikz] > > \usemodule[pgfplots] % PGFPlots module for graphs > > > > \starttext > > > > \starttikzpicture > > \draw (0, 0) circle (3cm); > > \stoptikzpicture > > > > \stoptext > > > > > >

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
from scrn-wid.mklx): > > \setupinteraction[state=start] > \starttext > \null\page > \definerenderingwindow[myrenderingwindow] > [width=\textwidth, height=\textwidth, > %openpageaction=StartCurrentRendering, > %closepageaction=StopCurrentRendering, > op

[NTG-context] question about multimedia renderings

2023-01-15 Thread Pablo Rodriguez via ntg-context
Dear list, I’m planning to add an explanation about multimedia inclusion to the wiki, but first I wanted to discuss an issue I have found. I have the following sample (adapted from scrn-wid.mklx): \setupinteraction[state=start] \starttext \null\page \definerenderingwindow

[NTG-context] Why does \doifsomething think there is content?

2023-01-15 Thread Joel via ntg-context
1                 \stopitemize         }         } \starttext     \chapter{Recipe 1}         \materialsneeded{\needsoven}                  \subject{Instructions}                      Spread peanut butter on sandwich.              \chapter{Recipe 2}                  \materialsneeded{\item pizza cutter \item st

Re: [NTG-context] Issue with location parameter in matrix

2023-01-09 Thread Jacob Kauffmann via ntg-context
One trick is to wrap the matrices inside a framed environment and putting the location parameter there: \starttext \startformula \startmatrix[left={\left(},right={\right)}] \NC A \NC B \NR \NC C \NC D \NR \stopmatrix = \startframed[location=top,frame=no,offset=none] \startmatrix[left={\left

Re: [NTG-context] Problem with latest version ?

2023-01-07 Thread Gavin via ntg-context
> >> TEST FILE: > >> \usemodule[tikz] > >> \usemodule[pgfplots] % PGFPlots module for graphs > >> \starttext > >> \starttikzpicture > >> \draw (0, 0) circle (3cm); > >> \stoptikzpicture > >> \starttikzpicture > >&g

[NTG-context] Issue with location parameter in matrix

2023-01-06 Thread Jacob Kauffmann via ntg-context
=bottom and location=top, but both give the same error. Do you have any ideas on how I can get the matrix in the desired locations? Thank you in advance for your help. Best regards, Jacob \starttext \startformula \startmatrix[left={\left(},right={\right)}] \NC A \NC B \NR \NC C \NC D \NR

Re: [NTG-context] Problem with latest version ?

2023-01-06 Thread Fabrice Couvreur via ntg-context
M, Gavin via ntg-context wrote: > >> ...I can try with the latest LMTX later today. The test file works with > TeXLive 2022 > >> Gavin > >> TEST FILE: > >> \usemodule[tikz] > >> \usemodule[pgfplots] % PGFPlots module for graphs > >>

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Mikael Sundqvist via ntg-context
er useful. > > Thanks in advance and happy new year, > Alex Hi Alex, Maybe there are other ways, but one can use \includeMPgraphic. One simple example given below. /Mikael \starttext \startuseMPgraphic{vanderwaerdenbas} u:=3cm ; def vdwbas(expr x) = abs(x-round x) enddef ; def vdw

Re: [NTG-context] Problem with latest version ?

2023-01-06 Thread Gavin via ntg-context
\usemodule[tikz] >> \usemodule[pgfplots] % PGFPlots module for graphs >> \starttext >> \starttikzpicture >> \draw (0, 0) circle (3cm); >> \stoptikzpicture >> \starttikzpicture >> \startaxis >>\addplot+[domain=0:360] >>{sin(x)}; >

Re: [NTG-context] Problem with latest version ?

2023-01-05 Thread Hans Hagen via ntg-context
: 2022.12.29 14:32 LMTX fmt: 2022.12.29 int: english/english. I can try with the latest LMTX later today. The test file works with TeXLive 2022 Gavin TEST FILE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0

Re: [NTG-context] Problem with latest version ?

2023-01-05 Thread Gavin via ntg-context
ror are below. I used ConTeXt ver: 2022.12.29 14:32 LMTX fmt: 2022.12.29 int: english/english. I can try with the latest LMTX later today. The test file works with TeXLive 2022 Gavin TEST FILE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs

Re: [NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Hans Hagen via ntg-context
On 1/5/2023 12:16 AM, Michael Guravage via ntg-context wrote: While typesetting a document containing a small tabulated table with the latest release I noticed that the tabulate \TH command hadn't added any vertical space between the rows. Here's a mwe. \starttext   \starttab

[NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Michael Guravage via ntg-context
While typesetting a document containing a small tabulated table with the latest release I noticed that the tabulate \TH command hadn't added any vertical space between the rows. Here's a mwe. \starttext \starttabulate[|l|l|] \NC Γ \NC Gamma \NC\NR \NC Θ \NC Theta \NC\NR

Re: [NTG-context] \autoinsertedspace fails

2023-01-04 Thread Rik Kabel via ntg-context
expected in many cases. As the first examples after \starttext show, the problem appears to be with \autoinsertedspace, but perhaps I am using it incorrectly in the macro as well. \starttexdefinition unexpanded BD   \dodoublegroupempty   \doBD \stoptexdefinition

Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Hans Hagen via ntg-context
On 1/4/2023 2:29 PM, Jacob Kauffmann via ntg-context wrote: The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext. Maybe the developers can shed some light :) \definefontfeature[mathextra][moderntocalligraphic=yes] you

Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Henning Hraban Ramm via ntg-context
Am 04.01.23 um 14:29 schrieb Jacob Kauffmann via ntg-context: The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext. \setupbodyfont[mainface] Did you try \setupbodyfont[mainface,rm] ? Hraban

Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Jacob Kauffmann via ntg-context
The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext. Maybe the developers can shed some light :) Please find MWE below. Cheers, Jacob \definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasescript

Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Jacob Kauffmann via ntg-context
netypeface[mainface][tt][mono] [modern] [default][rscale=1.075] \definetypeface[mainface][mm][math] [palatino][default][fallbacks=cal-fallback] \stoptypescript \definefontfamily[mainface][math][] \usetypescript[mainface] \setupbodyfont[mainface] \starttext {\rm \input ward } {\ss \input ward } {

Re: [NTG-context] Download remote SVG images

2023-01-02 Thread Henning Hraban Ramm via ntg-context
Am 03.01.23 um 07:38 schrieb Thangalin via ntg-context: Hi list! % SOT \starttext \externalfigure[https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg] \externalfigure[https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Ghostscript_Tiger.svg/1024px

[NTG-context] Download remote SVG images

2023-01-02 Thread Thangalin via ntg-context
Hi list! % SOT \starttext \externalfigure[https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg] \externalfigure[https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Ghostscript_Tiger.svg/1024px-Ghostscript_Tiger.svg.png] \stoptext % EOT Is there a way to have

[NTG-context] Double Lines

2023-01-02 Thread Ursula Hermann via ntg-context
Dear List, The following example is from the mailing list: I would like to have double vertical Lines with $\Vert instead of \VL, and also \HL. How can I do this with an Math Modus? \setupcolors[state=start] \starttext \null\vskip15ex \hskip1em\framed[orientation=90,frame=off]{\bf

Re: [NTG-context] numbering questions

2023-01-01 Thread Henning Hraban Ramm via ntg-context
[reverse-section]    [section,chapter] [] \defineprefixset [reverse-subsection] [subsection,section,chapter] [] \setuphead   [section]   [sectionset=reverse-section] \setuphead   [subsection]   [sectionset=reverse-subsection] \starttext \startchapter [title={A}] \startsection [title={B

Re: [NTG-context] issue with font

2023-01-01 Thread Hans Hagen via ntg-context
On 1/1/2023 11:55 AM, Pablo Rodriguez via ntg-context wrote: Hans, I have the following sample. \starttext \definedfont[TruetypewriterPolyglott-mELa.ttf] \input zapf \stoptext I get a fatal error in the font file (both LMTX and MkIV). Font is https://www.fontspace.com

[NTG-context] issue with font

2023-01-01 Thread Pablo Rodriguez via ntg-context
Hans, I have the following sample. \starttext \definedfont[TruetypewriterPolyglott-mELa.ttf] \input zapf \stoptext I get a fatal error in the font file (both LMTX and MkIV). Font is https://www.fontspace.com/truetypewriter-polyglott-font-f14955 (direct donwnload from https

Re: [NTG-context] numbering questions

2023-01-01 Thread Wolfgang Schuster via ntg-context
]   [sectionset=reverse-subsection] \starttext \startchapter [title={A}] \startsection [title={B}] \startsubsection [title={C}] \stopsubsection \startsubsection [title={D}] \stopsubsection \startsubsection [title={E}] \stopsubsection \stopsection \startsection [title={F}] \startsubsection [title={G

Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
; New Month. > > \dorecurse{5}{ > \startDay > Another day. > > \stopDay > } > > \stopMonth > }} > > \starttext > > \startYear[ownnumber=2023,title=This] > A new year begins. > > \Dummycontent > > \stopYear > >

[NTG-context] numbering questions

2022-12-31 Thread Henning Hraban Ramm via ntg-context
} \stopMonth }} \starttext \startYear[ownnumber=2023,title=This] A new year begins. \Dummycontent \stopYear \startYear Next year. \Dummycontent \stopYear \stoptext - Hraban ___ If your question is of interest to

[NTG-context] language identifier for all languages

2022-12-30 Thread Pablo Rodriguez via ntg-context
] \registerhyphenationexception[any][macOS] \registerhyphenationexception[it][macOS] \startbuffer \currentlanguage: \hyphenatedword{macOS} \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer \language[it]\getbuffer \stopTEXpage \stoptext I think this is better than having other commands

Re: [NTG-context] pgfplots module wrecks in latest

2022-12-30 Thread Hans Hagen via ntg-context
On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: Hi List, The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw

[NTG-context] \autoinsertedspace fails

2022-12-29 Thread Rik Kabel via ntg-context
repaired. The following code, run under the latest (and recent previous) version, produces an incorrect result, with no space inserted where expected in many cases. As the first examples after \starttext show, the problem appears to be with \autoinsertedspace, but perhaps I am using it incorrectly in

[NTG-context] pgfplots module wrecks in latest

2022-12-29 Thread Gavin via ntg-context
Hi List, The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture \stoptext

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread 黄复雄 via ntg-context
> > > I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the > > root directory. > > Also, my typography file, test.tex, is in the root directory, and it reads > > > > ```context > > \definefont[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Zdeněk Svoboda via ntg-context
, thanks for the tip. I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the root directory. Also, my typography file, test.tex, is in the root directory, and it reads ```context \definefont[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt] \starttext {\myfont 我我} \stoptext

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread 黄复雄 via ntg-context
nt[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt] \starttext {\myfont 我我} \stoptext ``` Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows: ```log .. fonts > defining > forced type 'otf' of 'NotoSerifCJ

Re: [NTG-context] Math bug (maybe) - prime

2022-12-27 Thread Hans Hagen via ntg-context
On 12/27/2022 6:33 PM, Alan Braslau via ntg-context wrote: MWE: \starttext $a^2′$ $a′^2$ $\mathord{a′}^2$ $a^*^2$ \stoptext Should the \mathord{} be necessary to get the desired result? (I would expect the second line to work, just like $a^*^2$.) primes are kind of special and a pain in

Re: [NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
): \starttext \null \stoptext resolvers | formats | executing runner 'run luametatex format': ~/context/tex/texmf-linux-64/bin/luametatex --jobname="./a.tex" --fmt=~/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en

Re: [NTG-context] new upload

2022-12-27 Thread Pablo Rodriguez via ntg-context
On 12/27/22 18:04, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded lmtx. There have been some additions to tabulate. Hi Hans, many thanks for the new upload, but I’m afraid I get this error in LMTX (MkIV works fine): \starttext \null \stoptext resolvers

[NTG-context] Math bug (maybe) - prime

2022-12-27 Thread Alan Braslau via ntg-context
MWE: \starttext $a^2′$ $a′^2$ $\mathord{a′}^2$ $a^*^2$ \stoptext Should the \mathord{} be necessary to get the desired result? (I would expect the second line to work, just like $a^*^2$.) Alan ___ If your

Re: [NTG-context] new upload

2022-12-27 Thread Floris van Manen via ntg-context
i get an error running the sample code: \starttext \defineorientation[test][orientation=down,vertical=top] \startbuffer[b] \definetabulatemove[a][xoffset=40pt] \definetabulatemove[b][orientation=test,yoffset=depth] \starttabulate[|c|c|] \TM[a] \NC \darkred cell one \NC \darkgray cell one

[NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
Hi, I uploaded lmtx. There have been some additions to tabulate. \starttext % \showboxes % \showstruts \starttabulate[|w(top,3cm)|w(top,3cm)|] \NC test \NC test \par test \NC \NR \NC test \NC test \par test \NC \NR \stoptabulate \starttabulate[|w(top,packed,3cm)|w(top,packed,3cm)|] \NC test

[NTG-context] Problem with float and new layout on same page

2022-12-25 Thread peter.hopcroft--- via ntg-context
][footerdistance=100mm, ] \definelayout[odd][reset] % ?? \definelayout[even][reset] \starttext \dorecurse{3}{\input{knuth} } % change to \dorecurse{2} - it works properly \definelayout[2][mypage] \dorecurse{2}{\input{knuth} } \placefigure [leftmargin] {} {\externalfigure[greybox][width

Re: [NTG-context] Help for using fonts Nupuram

2022-12-23 Thread Pablo Rodriguez via ntg-context
On 12/23/22 13:50, Pablo Rodriguez via ntg-context wrote: > On 12/23/22 12:00, Alain Delmotte via ntg-context wrote: > Color should be fine. I’m checking what may be wrong with weight. Alain, nothing is wrong with weight (https://pdf.ousia.tk/wght.pdf): \starttext \startTEXpage[offs

Re: [NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 9:14 PM, Rik Kabel via ntg-context wrote: With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: \starttext \startxtable   \startxrow     \startxcell   This is a line of text.     \stopxcell     \startxcell

[NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Rik Kabel via ntg-context
With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: \starttext \startxtable   \startxrow     \startxcell   This is a line of text.     \stopxcell     \startxcell   \contextversion     \stopxcell   \stopxrow

Re: [NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Hans Hagen via ntg-context
” added into the formula (“c3” was the anchor’s tag). MWE and unexpected output below. Thanks, Gavin \starttext \startboxanchoring[+] \connectboxanchors[top][top][distance=1ex,arrow=no] {c1}{c2} %\connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} % <-- I decided

[NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Gavin via ntg-context
). MWE and unexpected output below. Thanks, Gavin \starttext \startboxanchoring[+] \connectboxanchors[top][top][distance=1ex,arrow=no] {c1}{c2} %\connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} % <-- I decided not to use this connector, producing unexpected resu

[NTG-context] Accent wrecking \mathboxanchored

2022-12-22 Thread Gavin via ntg-context
ds of connections! Gavin \starttext \startboxanchoring[+] \connectboxanchors[top][top][distance=1ex,arrow=no] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} %\mathboxanchored[nucleus]{c2}{e}

Re: [NTG-context] move glyph vertically

2022-12-22 Thread Hans Hagen via ntg-context
[ '¿' ] = 1000, [ '¡' ] = 1000, } } \stopluacode \definefontfeature[ktest][gpost_tes=yes] \starttext \startTEXpage[offset=1em] \feature[+][gpos_test] ¿? ¡! \stopTEXpage \stoptext This tries to move vertically the opening questi

[NTG-context] move glyph vertically

2022-12-22 Thread Pablo Rodriguez via ntg-context
00, } } \stopluacode \definefontfeature[ktest][gpost_tes=yes] \starttext \startTEXpage[offset=1em] \feature[+][gpos_test] ¿? ¡! \stopTEXpage \stoptext This tries to move vertically the opening question and exclamation marks, so they are at the same height that its closing coun

[NTG-context] Unwanted space with \startframedtext

2022-12-21 Thread Max Chernoff via ntg-context
Hi Hans, There's an uncommented linebreak in the definition of \pack_framed_text_start that's introducing an unwanted space just before \startframedtext. Minimal example: \showmakeup[space] \starttext \hbox{.\startframedtext.\stopframedtext} \stoptext Patch:

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
\stopsetups \setuphead[chapter]   [style=\tfa,    after={\blank\setups{chapter:headings}},   ] \starttext \startchapter[title=Nothing special] \dorecurse{10}{\input knuth\par} \stopchapter \startchapter[title=Something special][custom={Hi there!}] \do

[NTG-context] Change in \vec behavior

2022-12-18 Thread Jean-Philippe Rey via ntg-context
Hello, As I usually do at the end of each year, I upgraded my ConTeXt installation. I noticed a change in \vec behavior which doesn't extend the arrow anymore. Here is my example: \starttext Engine: \texenginename\ \texengineversion \ConTeXt: \contextversionnumber \type{$\vec{AB}$} :

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context
ontext wrote: > Hi Marco, > > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. However ConTeXt seems to dislike \typefile{bar} > when the filename has no suff

[NTG-context] Definestartstop, Narrower, and Blockquotej

2022-12-17 Thread Michael Urban via ntg-context
I get a decidedly odd (or, at least, unexpected by me) result from this, based on the example on the contextgarden page for definestartstop: \starttext \defineblank[ExtractDistance][3pt] \definestartstop[Extract][ style=slanted, before={\blank[ExtractDistance] \setupnarrower[left

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100 Otared Kavian via ntg-context wrote: > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. I can confirm that. > However ConTe

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco, If I create a file named « bar.txt » then \starttext Nothing to say\dots \typefile{bar.txt} \stoptext gives the correct result. However ConTeXt seems to dislike \typefile{bar} when the filename has no suffix. Best regards : Otared > On 17 Dec 2022, at 16:06, Marco Patzer via

[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi! In the following example the file “bar” is not included: # create file “bar” echo Bar > bar # t.tex \starttext Foo \typefile{bar} \stoptext Then run context --errors='*' t.tex The text “bar” is not included in the PDF, only Foo is. The log file shows: verbatims

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Otared Kavian via ntg-context
Gavin). Best regards: Otared % begin anchoring-integrals.tex \starttext \startMPpositiongraphic{mypos:boxanchor:top} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ;

[NTG-context] \setuplanguage[explicitrighthyphenchar=-1] only works for English

2022-12-15 Thread Pablo Rodriguez via ntg-context
ethod=traditional]% \sethyphenationfeatures[underscore]% \setuplanguage [explicitrighthyphenchar=-1] \setupinteractionscreen[option=singlesided] \starttext \doloopoverlist {es,en,uk,de,nl,pt,fr,it,deo,da,sv,af,no,nb,pl,cs,sk,hr,sl,fi,et,hu} {\mainlanguage[\recursestring] \startTEXpage

[NTG-context] issues with variable fonts in latest

2022-12-15 Thread Pablo Rodriguez via ntg-context
}] \definefontfamily[mainface][hw][Recursive] [features={default, handy}] \definefontfamily[mainface][cg][Recursive] [features={default, cali}] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] \scale[width=\textwidth] {\rm áéíóúijrf} \scale[width=\textwidth

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
-- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - \continuewhenlmtxmode \usemodule[

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Thangalin via ntg-context
7.77 -18.4)" > > gradientUnits="userSpaceOnUse"/> > offset="0"/> > stop-opacity="0"/> > transform="translate(-48.91 -90.879)"> > fill-opacity=".5" d="M48.769 90.936H164.64V206.96H48.769z"/> > cx="106.745" cy

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Hans Hagen via ntg-context
On 12/14/2022 5:46 AM, Thangalin via ntg-context wrote: Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; viewBox="0 0 115.669 115.669"> \stopbuffer

[NTG-context] Radial and linear gradients

2022-12-13 Thread Thangalin via ntg-context
Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; viewBox="0 0 115.669 115.669"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[csvg][conversi

<    12   13   14   15   16   17   18   19   20   21   >