[NTG-context] Re: Cite-proc Lua - Following up

2024-06-12 Thread Max Chernoff
arguments = "string", actions = function(key) context(engine:makeCitationCluster { { id = key } }) end } interfaces.implement { name = "cslbibliography", public = true, actions = functi

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread seyal zavira
Also you can use this: assuming that you have a fixed size figure such as a pdf page: \definesymbol[Bsymbol][{\scale[width=1.6ex]{\externalfigure[myfile.pdf][page=1]}}] \define\mysym{\kern 0.2em \symbol[Bsymbol] \kern 0.3em} \starttext this is a sample\mysym text. \tfa{this is a sample\mysym

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Hans Hagen
On 6/10/2024 1:16 PM, Gerion Entrup wrote: Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measured"

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Wolfgang Schuster
has same style all over the document. but i want it to have style base on current font and if the font changes, the style should change, while maintaining the ratio of sizes(i.e., at the half of current font). i attached the resulted pdf 1. You can use the \offset command to raise the footnote

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 10:49, vm via ntg-context wrote: > in the document > https://wiki.contextgarden.net/images/8/8c/xhtml.pdf > > near the end an essential line got truncated: > [...] > how should this line continue ? > {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Thomas A. Schmitz
On 6/8/24 10:49, vm via ntg-context wrote: in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread vm via ntg-context
in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("\xmla \stopxmlsetups how s

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Wolfgang Schuster
correctly do not add spaces. 1. \setcharacterspacing[frenchpunctuation] takes care about the space before/after quotation marks when you use manual quotes in a document. It doesn't matter whether you use or don't use space between the quotations marks and the quoted text. begin example

[NTG-context] Re: background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
; (\framed is working as expected). Here is a MWE: > > 1. \starttextbackground isn't based on \framed and has a mp-key to assign a > metapost graphic. Thanks. I had forgotten that. > 2. \startbackground needs to be fixed but it's simple, replace \defcsname > with \edefcsname in pac

[NTG-context] Re: background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 06.06.2024 um 14:48: Hi, I am testing some of my old styles on latest context and find that the background key of \startbackground and \starttextbackground doesn't work (\framed is working as expected). Here is a MWE: 1. \starttextbackground isn't based on \framed

[NTG-context] Re: Kerning in Noto Serif

2024-06-06 Thread Lutz Haseloff
t; Hi all, >> I can't get Kerning working with Noto Serif. >> My minimal file is: >> >> \definefontfeature[oldstylenumber][onum=yes] >> \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] >> \starttext >> Line 1: {VAVAVAVAVAVA 12345}\par >&g

[NTG-context] Re: setuphead in connection with the command argument

2024-06-06 Thread Gerion Entrup
Am Montag, 3. Juni 2024, 15:13:20 MESZ schrieb Hans Hagen via ntg-context: > On 6/3/2024 1:36 PM, Gerion Entrup wrote: > > Thank you. I think that I understand command vs alternative now. > > With try and error, I experienced, that the font/style of the `style` > >

[NTG-context] Re: Kerning in Noto Serif

2024-06-06 Thread Henning Hraban Ramm
Am 06.06.24 um 09:41 schrieb Lutz Haseloff: Hi all, I can't get Kerning working with Noto Serif. My minimal file is: \definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff

[NTG-context] Kerning in Noto Serif

2024-06-06 Thread Lutz Haseloff
Hi all, I can't get Kerning working with Noto Serif. My minimal file is: \definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 3: {\addff

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Hans Hagen
{\xmldocument}{*}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:something \tex{StartSomething}\par \xmlflush{#1}\par \tex{StopSomething}\par \stopxmlsetups \startxmlsetups xml:what \tex{StartWhat}\par \xmlflush{#1}\par \tex{StopWhat}\par

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
t commands. Here is a sample (using a buffer instead of an external file): \startbuffer[demo] line 1 line 2 line 3 \stopbuffer \starttext \startxmlsetups abc:def \xmlsetsetup{#1}{foo|bar}{xyz:*} \stopxmlsetups \xmlregistersetup{abc:def} \startxml

[NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 05.06.2024 um 16:03: As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} You can use \definehighlight to create a custom command for a style. The case where you want a slash before the text you have

[NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread Henning Hraban Ramm
Am 05.06.24 um 16:03 schrieb ai2472206...@yeah.net: As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} \starttext \placecontent% if i dont place toc command , ConText can render it. \chapter{anything else} \section{\cmdi

[NTG-context] After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread ai2472206007
As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} \starttext \placecontent% if i dont place toc command , ConText can render it. \chapter{anything else} \section{\cmdi{with command} section} \section{\cmdii{with command} section

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
of me. And now to my initial question, which I didn't specify precisely enough. I have the following workflow in mind: 1. I have an XML file (TEI-XML), 2. then, following your brilliant suggestion, I will create an xml-analyze-template.tex file and customise it. 3. As you suggest, now one would

[NTG-context] Re: Number in a circle

2024-06-04 Thread Bruce Horrocks
> On 4 Jun 2024, at 19:00, Kip Warner wrote: > > On Tue, 2024-06-04 at 18:19 +0100, Bruce Horrocks wrote: >> 1) I installed Ubuntu 14.04 It comes with context pre-installed but >> it's broken. > > Hey Bruce. Just an FYI, but Trusty Tahr (14.04) is over a deca

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Hans Hagen
precisely enough. I have the following workflow in mind: 1. I have an XML file (TEI-XML), 2. then, following your brilliant suggestion, I will create an xml-analyze-template.tex file and customise it. 3. As you suggest, now one would actually use     context --environment xml-analyze-template.tex

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Christoph Edenhauser
in mind: 1. I have an XML file (TEI-XML), 2. then, following your brilliant suggestion, I will create an xml-analyze-template.tex file and customise it. 3. As you suggest, now one would actually use     context --environment xml-analyze-template.tex file.xml     to typeset in a pdf file. But I would

[NTG-context] Re: Number in a circle

2024-06-04 Thread Kip Warner
On Tue, 2024-06-04 at 18:19 +0100, Bruce Horrocks wrote: > 1) I installed Ubuntu 14.04 It comes with context pre-installed but > it's broken. Hey Bruce. Just an FYI, but Trusty Tahr (14.04) is over a decade old. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.theverti

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
On Tue, Jun 4, 2024 at 19:30 (+0200), Wolfgang Schuster wrote: > Jim schrieb am 04.06.2024 um 18:01: >> Hi, >> When I run Example 1 given there, I get three bullet symbols, but no >> "column N ..." >> text. >> Note that the >>

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Wolfgang Schuster
Jim schrieb am 04.06.2024 um 18:01: Hi, When I run Example 1 given there, I get three bullet symbols, but no "column N ..." text. Note that the \starttext is *after* the \startitemize ... \stopitemize Q1: Is my ConTeXt installation broken, or is the wiki page show

[NTG-context] Re: Number in a circle

2024-06-04 Thread Bruce Horrocks
> On 1 Jun 2024, at 01:48, Bruce Horrocks wrote: > > I'm not sure there is a need to do any more than Adam Reviczky is already > doing. When I find a bit of time I'll install a Ubuntu 24.04 into a VM and > see what version of Context is installed, likewise Debian. TL;DR:

[NTG-context] https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
Hi, When I run Example 1 given there, I get three bullet symbols, but no "column N ..." text. Note that the \starttext is *after* the \startitemize ... \stopitemize Q1: Is my ConTeXt installation broken, or is the wiki page showing output that does not

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread Kip Warner
%%% > > \defineframed    [marginframe] > >   [width=max, height=max,   > > style=\ss, > >    corner=08, location=lohi,    > > frame=off] > > \setuptext [style={\ss}] > > \setuptexttexts  [margi

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread Wolfgang Schuster
style=\ss, corner=08, location=lohi,frame=off] \setuptext [style={\ss}] \setuptexttexts [margin] [] [\marginframe{\hbox orientation 1 {DRAFT}}] [\marginframe{\hbox orientation 1 {DRAFT}}] There is no need for low level optio

[NTG-context] issue with signing

2024-06-03 Thread Pablo Rodriguez via ntg-context
PDF document. But Acrobat cannot find (or display) any signature in that PDF document. pdfsig (from poppler-utils-24.02.0) complains about digest mismatch: $ pdfsig a.pdf Digital Signature Info of: a.pdf Signature #1: - Signature Field Name: signature - Signer Certificate Common

[NTG-context] Re: setuphead in connection with the command argument

2024-06-03 Thread Hans Hagen via ntg-context
On 6/3/2024 1:36 PM, Gerion Entrup wrote: Thank you. I think that I understand command vs alternative now. With try and error, I experienced, that the font/style of the `style` parameter interleave in a strange way. Therefore I see it as related. What i mean is: style: outer level, also sets

[NTG-context] Re: setuphead in connection with the command argument

2024-06-03 Thread Gerion Entrup
Am Montag, 3. Juni 2024, 00:05:22 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 01.06.2024 um 16:34: > > Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster: > >> Gerion Entrup schrieb am 31.05.2024 um 00:37: > >>> What, if I define m

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread ai2472206007
frame=off] \setuptext [style={\ss}] \setuptexttexts [margin] [] [\marginframe{\hbox orientation 1 {DRAFT}}] [\marginframe{\hbox orientation 1 {DRAFT}}] [] \starttext \chapter{C:Some Word} \dorecurse{5}{ \section{S:Some Wo

[NTG-context] Re: setuphead in connection with the command argument

2024-06-02 Thread Wolfgang Schuster
Gerion Entrup schrieb am 01.06.2024 um 16:34: Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster: Gerion Entrup schrieb am 31.05.2024 um 00:37: What, if I define multiple of them? Is the system not made for this? Multiple of what? When I define `alternative=` _and_ `command

[NTG-context] Re: setuphead in connection with the command argument

2024-06-01 Thread Gerion Entrup
Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 31.05.2024 um 00:37: > > What, if I define multiple of them? Is the system not made for this? > > Multiple of what? When I define `alternative=` _and_ `command=` in the s

[NTG-context] Re: setuphead in connection with the command argument

2024-06-01 Thread Wolfgang Schuster
example [...] end example Thank you very much! That looks really clean. I will add it to the wiki. Can you bring some clarification regarding "style=", "command=" and "alternative="? 1. Alternatives are the different styles/layouts for the section titles.

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-05-31 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
> On 30 May 2024, at 23:25, Gerion Entrup wrote: > > Am Donnerstag, 30. Mai 2024, 18:49:08 MESZ schrieb Bruce Horrocks: >> >>> On 30 May 2024, at 15:15, Gerion Entrup wrote: >>> >>> Let's begin with a minimal example: >>> ``` >>&

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
Am Donnerstag, 30. Mai 2024, 18:49:08 MESZ schrieb Bruce Horrocks: > > > On 30 May 2024, at 15:15, Gerion Entrup wrote: > > > > Let's begin with a minimal example: > > ``` > > \define[2]\MyChapter{% > > #1 #2: \structureuservariable{subtitle} (\struct

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
uacode -- from https://wiki.contextgarden.net/Command/defineconversion: interfaces.implement { name = "FRdate", public= true, arguments = "string", actions = function(s) local n = tonumber(s) if n == 1 then

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Peter Münster
t/Command/defineconversion: interfaces.implement { name = "FRdate", public= true, arguments = "string", actions = function(s) local n = tonumber(s) if n == 1 then context"1\\ier"

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
Peter Münster schrieb am 30.05.2024 um 13:59: Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
> On 30 May 2024, at 15:15, Gerion Entrup wrote: > > Let's begin with a minimal example: > ``` > \define[2]\MyChapter{% > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } Stop there! Use \definehead to create your own variation of a headi

[NTG-context] Re: Number in a circle

2024-05-30 Thread Henning Hraban Ramm
] \starttext \utfchar{0x02460} \stoptext The above just prints the vanilla character '1'. That might be because the online editor doesn't have access to the font. So I tried compiling the above locally with the Symbola.otf file in the same directory and same problem. My example

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ead [chapter] [style=\tf] > > \setuphead [chapter] [style=\bf] So this sentence of the wiki [1] is wrong (documentation of the command argument)?: > Command to use for typesetting the title; overrules all other styling. First > argument is the number, second the title text. If I

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
MyChapter{% \framedtext{% #1 #2:\\ \structureuservariable{subtitle}\\ (\structureuservariable{intro}) } } > I also want to set everything except of the intro in a flushright environment > but do not know how. I tried: As above: \framedtext[align=flushright]{% T

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ot quite sure about it's internals. > > Let's begin with a minimal example: > ``` > \define[2]\MyChapter{% > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
; argument in setuphead for that. However, I'm not quite sure about it's internals. Let's begin with a minimal example: ``` \define[2]\MyChapter{% #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) } \setuphead[title, chapter][command=\MyChapter] \setupbodyfont[11pt]

[NTG-context] self defined conversion in \date

2024-05-30 Thread Peter Münster
Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self defined conversion in date: \date[d=1][day:mytest

[NTG-context] Re: how to prevent item appearing in List of Figures

2024-05-30 Thread Charles Doherty via ntg-context
and also no caption, I wouldn’t use floats > (\placefigure) at all, but just plain \externalfigure. > > Hraban *** CHARLES DOHERTY 13 BANCROFT ROAD TALLAGHT DUBLIN D24 YH2V home: +353 1 2447483 Mobile: +353 863868629 charles.

[NTG-context] Re: BibTeX choking on comments in database

2024-05-29 Thread Kip Warner
On Wed, 2024-05-29 at 06:49 -0600, Alan Braslau wrote: > 1) You appear to be using the long-frozen mkii bibliography code. I think you are right! I just realized that. I'm using in my Environment file... % \BIBTEX macro... \usemodule[abr-02] % Setup bibliogra

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

2024-05-29 Thread Pablo Rodriguez via ntg-context
tart, offset=1em] > \startluacode > local pat = (lpeg.Cmt(lpeg.P("this") + lpeg.P("that"), > function(str,_,s) > context(s) > return #str > end) + lpeg.P(1))^1 > lpeg.match

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Wolfgang Schuster
] \setdataset[myset] [foo=1,boo=4] \newcount\tempa \datasetvariable{myset}{1}{boo} % definitely get 4 %\tempa=\datasetvariable{myset}{1}{boo} % why i cannt pass 4 to tempa? %\number\tempa \stoptext % If anyone can fix it, thanka very much You have to add a check to ensure there is a value

[NTG-context] lua error in `back-exp.lmt`

2024-05-29 Thread Sylvain Hubert
ConTeXt LMTX version: 2024.05.27 18:16 Sample tex file: \setupbackend[export=yes] \starttext x \startsectionlevel \startitemize \item \startitemize \item \startitemize \item \stopitemize \stopitemize \stopitemize \stopsectionlevel \stoptext Error log: tex error > tex error on lin

[NTG-context] Re: BibTeX choking on comments in database

2024-05-29 Thread Alan Braslau via ntg-context
exactly. > > I see. The first few lines of my BibTeX file just contains a copyright > notice that is commented out with the % character. If that is not a > valid comment character, is there no way to write a comment in the > file? > 1) You appear to be using the long-frozen mki

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Taco Hoekwater
> > \starttext > \definedataset [myset] > \setdataset[myset] [foo=1,boo=4] > \newcount\tempa > \datasetvariable{myset}{1}{boo} % definitely get 4 > %\tempa=\datasetvariable{myset}{1}{boo} % why i cannt pass 4 to tempa? > %\number\tempa > \stoptext Works for me

[NTG-context] Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset] \setdataset[myset] [foo=1,boo=4] \newcount\tempa

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

2024-05-29 Thread Henning Hraban Ramm
    local pat = (lpeg.Cmt(lpeg.P("this") + lpeg.P("that"), function(str,_,s)     context(s)     return #str         end) + lpeg.P(1))^1     lpeg.match(pat,"how about this being that")     local pat = (lpeg.Cmt(lpeg.oneof(

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> > > (...tail calls...) > can you test with the attached ... (remake the format) > > \st

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
ev.lua:75: attempt > > to index a nil value (field '?') > > stack traceback: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> > >

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
; > U+2469. > > > They mean circled digits and are available in many fonts. > > > > Thanks Ryszard. Those would be perfect, except I can't get them to > > work > > in ConTeXt. I tried using the \utfchar{0x2460} but it just displays > > the > > n

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

2024-05-28 Thread Hans Hagen
("this") + lpeg.P("that"), function(str,_,s) context(s) return #str end) + lpeg.P(1))^1 lpeg.match(pat,"how about this being that") local pat = (lpeg.Cmt(lpeg.oneof({ "this", "that"

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

2024-05-28 Thread Henning Hraban Ramm
them to work in ConTeXt. I tried using the \utfchar{0x2460} but it just displays the number 1. I am assuming it needs a font that supports it, but I'm not sure how to switch to a supporting font just to typeset that character and then revert back. Is there some way to define a macro? You could just

[NTG-context] Re: BibTeX choking on comments in database

2024-05-28 Thread Henning Hraban Ramm
file: Secret_Sauce.aux The style file: cont-au.bst Database file #1: ./References.bib I was expecting a `{' or a `('---line 2 of file ./References.bib : : % See the file Copying for details on copying conditions. (Error may have been on previous line) I'm skipping

[NTG-context] Re: Number in a circle

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

[NTG-context] BibTeX choking on comments in database

2024-05-27 Thread Kip Warner
-au.bst Database file #1: ./References.bib I was expecting a `{' or a `('---line 2 of file ./References.bib : : % See the file Copying for details on copying conditions. (Error may have been on previous line) I'm skipping whatever remains of this entry (There was 1 error

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
tried using the \utfchar{0x2460} but it just displays the number 1. I am assuming it needs a font that supports it, but I'm not sure how to switch to a supporting font just to typeset that character and then revert back. Is there some way to define a macro? -- Kip Warner OpenPGP signed/en

[NTG-context] Re: Number in a circle

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

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-05-27 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: Number in a circle

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

[NTG-context] Re: page number

2024-05-26 Thread Wolfgang Schuster
[{\getmarking[chapter]}][pagenumber] Please send a complete working example next time. Can anyone show me code to achieve this? 1. You use \setupheadertexts to set the header for all pages. 2. You use \definetext to create a custom header for the chapter page and apply it with the header-key

[NTG-context] Re: simplify side by side Poems

2024-05-25 Thread seyal . zavira
Thanks so much i also could define poem structure like this: Using table method: \protected\def\PoemStart#1\PoemStop {\bTABLE[setups=tablepoem]#1\eTABLE} \protected\def\Beyt#1 {\bTR #1 \eTR} \protected\def\Misra#1 {\bTD #1 \eTD} \starttext \PoemStart \Beyt{\Misra{the first sentence

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Wolfgang Schuster
. If anyone can give advice, appreciate it 1. It is better to add new languages to Context itself and not just in your document. 2. Chinese doesn't use hyphenation pattern but has rules where to break which is enabled with the \setscript command. 3. We should use agree upon a name which

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Jean-Pierre Delange
uot; --all (indicate actual font name) Don't forget the following commands to purge the font cache and restore the database: 1. mtxrun --script cache --erase && mtxrun --generate 2. mtxrun --script fonts --reload Then : 3. mtxrun --script fonts --list --pattern="Chinese Font"

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
of your new delimited command is then passed to the normal commands for the table cell. begin example \starttext \protected\def\StartTableCell#1\StopTableCell {\bTD#1\eTD} % New method to create delimited arguments with #L and #R in Luametatex % % \protected\def\StartTableCell#L

[NTG-context] Re: Playing with math font setup

2024-05-21 Thread Hans Hagen
omFontSelection] [default] [rscale=0.97] \stoptypescript \stoptypescriptcollection \setupbodyfont[CustomFontSelection] \starttext We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever. \mathematics{% \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR

[NTG-context] Playing with math font setup

2024-05-21 Thread Ali Ali
criptcollection \setupbodyfont[CustomFontSelection] \starttext We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever. \mathematics{% \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases } We use

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
? >> I did, but as far as I know they place the text on the margin next to >> the \inmargin invocation in the text, so they may overlap, which is what >> I want to avoid. > > \setupmarginblocks[inbetween=] > > \starttext > > \dorecurse{100} >{\bold{#1:}

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
vm via ntg-context schrieb am 21.05.2024 um 16:07: On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}    {\bold{#1:} \samplefile{ward}%     \startmarginblock Note #1\stopmarginblock     \par} \stoptext when I compile this, i get per

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
just noticed that if the notes need more margin space then are pages available by the text, they get lost. e.g. this mwe generates 10 pages with 100 par but only 80 notes will show up. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}   {\bold{#1:} \samplefile{ward}%    \startmarginblock Note #1\stopmarginblock    \par} \stoptext when I compile this, i get per page with \par 1..10 -> the notes 1..11 \par 11.

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
to the \inmargin invocation in the text, so they may overlap, which is what I want to avoid. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginblock Note #1\stopmarginblock \par} \stoptext Wolfgang

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen
\Hashtag#1{ \hbox{\tfa\ctxlua{ str = "#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable.

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen via ntg-context
\Hashtag#1{ \hbox{\tfa\ctxlua{ str = "#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable.

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread seyal . zavira
Thanks. What if we want the text to be copied when it is clicked? I found these link on the stack site for this https://tex.stackexchange.com/questions/174637/copy-to-clipboard-feature-in-pdf-output/545107#545107 also i defined this: \def\Hashtag#1{ \hbox{\tfa\ctxlua{ str = &qu

[NTG-context] Re: build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread Hans Hagen via ntg-context
on the circumstances, so here is one. \setupbodyfont[11pt] \definemeasure [mywidth] [7cm] \definemeasure [mywidtha] [5cm] \definemeasure [myheight] [{\the\dimexpr\baselineskip*37+\lineskip\relax}] \definemeasure [myheighta] [{\the\dimexpr\baselineskip*18+\lineskip*1\relax

[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
] %-- \usecolors[svg] \definemeasure [mywidth] [7cm] \definemeasure [mywidtha] [5cm] \definemeasure [myheight] [{\the\dimexpr\baselineskip*37+\lineskip\relax}] \definemeasure [myheighta][{\the\dimexpr\baselineskip*18+\lineskip*1\relax}] \definemeasure

[NTG-context] Re: Special charakter

2024-05-18 Thread BPJ
s to all of you for your hints and comments! > I thought \l does work, why \L does not. > To type \L is faster than changing the keyboard language when I write in > German normally. > > > 1. Hans made a while ago the decision to reduce the number of commands to > output certain chara

[NTG-context] Re: Special charakter

2024-05-18 Thread Wolfgang Schuster
Thomas Meyer schrieb am 18.05.2024 um 14:53: Thanks to all of you for your hints and comments! I thought \l does work, why \L does not. To type \L is faster than changing the keyboard language when I write in German normally. 1. Hans made a while ago the decision to reduce the number

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-18 Thread Bruce Horrocks
> various sources of documentation : > In one small table he/she has an overview of the documentation for a given > topic, : > - the few key tutorials > - link to one "main wiki page" about the topic > - the few key manuals > - the reference for commands The fonts p

  1   2   3   4   5   6   7   8   9   10   >