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

2024-06-03 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 03.06.2024 um 11:35: you can try 'setuptext' and '\setuptexttexts' to put "draft" in margin.and use 'orientation' to change direction. \defineframed[marginframe] [width=max, height=max, style=\ss,

[NTG-context] issue with signing

2024-06-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred]

[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 multiple of them? Is the system not

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

2024-06-03 Thread ai2472206007
you can try 'setuptext' and '\setuptexttexts' to put "draft" in margin.and use 'orientation' to change direction. \defineframed[marginframe] [width=max, height=max, style=\ss, corner=08, location=lohi,frame=off]

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

2024-06-03 Thread Henning Hraban Ramm
Am 03.06.24 um 02:45 schrieb Kip Warner: Hello list, I'd like to place the text "DRAFT" in the left and right side margins of every page, rotated 90 degrees so that the text runs vertically. It would be nice if the text was 180 degrees rotated on the right side in comparison to the left margin.

[NTG-context] Draft vertical text in margins

2024-06-02 Thread Kip Warner
Hello list, I'd like to place the text "DRAFT" in the left and right side margins of every page, rotated 90 degrees so that the text runs vertically. It would be nice if the text was 180 degrees rotated on the right side in comparison to the left margin. I've tried with overlays and I can't seem

[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_

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Hans Hagen
On 6/2/2024 2:43 PM, Alex wrote: Thank you so much Wolfgang, it solved it! I guess this is new as with LMTX from last week(s) it wasn’t required. you were just lucky that you got decent math at all (actually it probbaly also needs a proper lfg file) in the latest lmts the default feature

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Alex
Thank you so much Wolfgang, it solved it! I guess this is new as with LMTX from last week(s) it wasn’t required. Le 2 juin 2024 à 14:38 +0200, Wolfgang Schuster , a écrit : > Alex schrieb am 02.06.2024 um 14:08: > > Hi everyone, > > > > I’m facing an error with the latest LMTX with my custom

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Wolfgang Schuster
Alex schrieb am 02.06.2024 um 14:08: Hi everyone, I’m facing an error with the latest LMTX with my custom font definition: Math error: parameter 'subshiftdown' with id 49 in style 0 is not set \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \starttext Hello

[NTG-context] Issue with latest in math mode

2024-06-02 Thread Alex
Hi everyone, I’m facing an error with the latest LMTX with my custom font definition: Math error: parameter 'subshiftdown' with id 49 in style 0 is not set \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \starttext Hello \startformula \Gamma_1 \stopformula

[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 same `\setuphead`. Or

[NTG-context] Specify separator within setupbtx for custom bibliography rendering

2024-06-01 Thread Gerion Entrup
Hi, according to the section "Custom citation renderings" in the bibliography manual, I have specified an own setup for citation rendering. However, this seems only to work for single citations (of one source). I want to also specify the separator but did not get it to run. Here is a minimal

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

2024-06-01 Thread Wolfgang Schuster
Gerion Entrup schrieb am 31.05.2024 um 00:37: Am Donnerstag, 30. Mai 2024, 22:54:47 MESZ schrieb Wolfgang Schuster: Gerion Entrup schrieb am 30.05.2024 um 16:25: The chapter format that I want to achieve in the end is nearly the one in the attachment (excerpt of Christian Dietrich's PhD

[NTG-context] Re: Number in a circle

2024-05-31 Thread Bruce Horrocks
On 31 May 2024, at 00:05, Kip Warner wrote: > > On Thu, 2024-05-30 at 23:20 +0100, Bruce Horrocks wrote: >> I'd be able to maintain a Context PPA but there already seems to be >> one: >> > > I think that's just the source used in Ubuntu. This is

[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: framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
Forget this question: location=top did the trick. Should have found earlier. Rest of the day contemplating over the fact it took me so long to find out 沈 yours sincerely dr. Hans van der Meer > On 31 May 2024, at 12:13, Hans van der Meer via ntg-context > wrote: > > I have no problem of

[NTG-context] framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
I have no problem of aligning two or more \framedtext boxes bottomwise on the baseline, nor centering them vertically within a \vcenter. But I do not succeed in placing them with their top aligned without the following trick: typeset them in a box, determine largestheight and then typeset again

[NTG-context] Re: Number in a circle

2024-05-30 Thread Kip Warner
On Thu, 2024-05-30 at 23:20 +0100, Bruce Horrocks wrote: > I'd be able to maintain a Context PPA but there already seems to be > one: > I think that's just the source used in Ubuntu. This is called a "source package" in the Debian parlance:

[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: >>> ``` >>> \define[2]\MyChapter{% >>> #1 #2:

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

2024-05-30 Thread Gerion Entrup
Am Donnerstag, 30. Mai 2024, 22:54:47 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 30.05.2024 um 16:25: > > The chapter format that I want to achieve in the end is nearly the one in > > the attachment (excerpt of Christian Dietrich's PhD thesis). > > When you have a complex layout

[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} (\structureuservariable{intro}) > > } > > Stop

[NTG-context] Re: Number in a circle

2024-05-30 Thread Bruce Horrocks
> On 30 May 2024, at 21:19, Henning Hraban Ramm wrote: > > Am 30.05.24 um 19:25 schrieb Kip Warner: >> On Thu, 2024-05-30 at 18:26 +0200, Thomas A. Schmitz wrote: >>> Is this a message "I'm volunteering to maintain such a ppa" or a >>> message "wouldn't it be nice if someone went out of their

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

2024-05-30 Thread Wolfgang Schuster
Peter Münster schrieb am 30.05.2024 um 23:22: On Thu, May 30 2024, Wolfgang Schuster wrote: The \date mechanism can only use conversions which are defined on the Lua side Ok. How please? This does not work: --8<---cut here---start->8--- \startluacode --

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

2024-05-30 Thread Rik Kabel
My apologies to all, and thank you, Wolfgang. Time to update my notes. -- Rik On 2024-05-30 16:33, Wolfgang Schuster wrote: Rik Kabel schrieb am 30.05.2024 um 19:21:  From my basic environment file, a useful reminder:     %% \mainlanguage sets language used for labels (TOC, chapters, ...)    

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

2024-05-30 Thread Peter Münster
On Thu, May 30 2024, Wolfgang Schuster wrote: > The \date mechanism can only use conversions which are defined on the Lua side Ok. How please? This does not work: --8<---cut here---start->8--- \startluacode -- from

[NTG-context] Re: Number in a circle

2024-05-30 Thread Kip Warner
On Thu, 2024-05-30 at 17:26 +0200, Henning Hraban Ramm wrote: > My example wasn’t complete, and so is yours. You just define that > typeface but never use it. I'm probably doing it wrong, but I still can't get it to work: \definefontfallback[SymbolFB] [file:symbola.otf]

[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 Wolfgang Schuster
Gerion Entrup schrieb am 30.05.2024 um 16:25: The chapter format that I want to achieve in the end is nearly the one in the attachment (excerpt of Christian Dietrich's PhD thesis). When you have a complex layout it is easier to use the \defineheadalternative command to create it. To change

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

2024-05-30 Thread Wolfgang Schuster
Rik Kabel schrieb am 30.05.2024 um 19:21: From my basic environment file, a useful reminder: %% \mainlanguage sets language used for labels (TOC, chapters, ...) %% \language sets language to use for hyphenation, quote rules, ... \mainlanguage includes all settings of \language. As

[NTG-context] Re: Number in a circle

2024-05-30 Thread Henning Hraban Ramm
Am 30.05.24 um 19:25 schrieb Kip Warner: On Thu, 2024-05-30 at 18:26 +0200, Thomas A. Schmitz wrote: Is this a message "I'm volunteering to maintain such a ppa" or a message "wouldn't it be nice if someone went out of their way to make my life easier"? Just out of curiosity. Right now it's

[NTG-context] Re: Number in a circle

2024-05-30 Thread Kip Warner
On Thu, 2024-05-30 at 18:26 +0200, Thomas A. Schmitz wrote: > Is this a message "I'm volunteering to maintain such a ppa" or a > message "wouldn't it be nice if someone went out of their way to make > my life easier"? Just out of curiosity. Right now it's the latter due to time constraints.

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

2024-05-30 Thread Rik Kabel
From my basic environment file, a useful reminder: %% \mainlanguage sets language used for labels (TOC, chapters, ...) %% \language sets language to use for hyphenation, quote rules, ... -- Rik On 2024-05-30 11:34, Peter Münster wrote: Hi, When using \start/stopquotation in French

[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 heading - much more robust.

[NTG-context] Re: Number in a circle

2024-05-30 Thread Thomas A. Schmitz
On 30.05.24 18:18, Kip Warner wrote: Thanks Hrabab. With respect to the latter wiki page, the project might consider adding a PPA. They're very popular among the over a hundred different Debian based distros out there. They reconcile both system requirements of proper FHS usage and file tracking

[NTG-context] Re: Number in a circle

2024-05-30 Thread Kip Warner
On Thu, 2024-05-30 at 17:22 +0200, Henning Hraban Ramm wrote: > Am 28.05.24 um 23:50 schrieb Kip Warner: > > On Tue, 2024-05-28 at 17:47 +0200, Pablo Rodriguez wrote: > > > fw is a new dimensio unit only available in LMTX (not in LuaTeX). > > > > > > Just in case it might help, > > > > Thanks

[NTG-context] \hfrac undefined in latest

2024-05-30 Thread Henning Hraban Ramm
Hi Hans & Mikael, \hfrac is not defined anymore in latest LMTX, is this intentional? (I don’t need it, it’s just about documentation.) Hraban ___ If your question is of interest to others as well, please add an

[NTG-context] missing space with French quotation

2024-05-30 Thread Peter Münster
Hi, When using \start/stopquotation in French documents, there is a missing space: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Not Ok: a space is missing \stopquotation \stoptext Is this a bug or a feature? How

[NTG-context] Re: Number in a circle

2024-05-30 Thread Henning Hraban Ramm
Am 28.05.24 um 23:49 schrieb Kip Warner: On Tue, 2024-05-28 at 08:17 +0200, Henning Hraban Ramm wrote: Am 27.05.24 um 19:20 schrieb Kip Warner: You could just define a fallback font, like: \definefontfallback[SymbolFB]    [file:symbola.otf]   

[NTG-context] Re: Number in a circle

2024-05-30 Thread Henning Hraban Ramm
Am 28.05.24 um 23:50 schrieb Kip Warner: On Tue, 2024-05-28 at 17:47 +0200, Pablo Rodriguez wrote: fw is a new dimensio unit only available in LMTX (not in LuaTeX). Just in case it might help, Thanks Pablo. I'm using the context package for Ubuntu Mantic which is version

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

2024-05-30 Thread Gerion Entrup
Hi Tomáš, first, thank you for the answer. Am Donnerstag, 30. Mai 2024, 16:47:36 MESZ schrieb Tomáš Hála: > Hi Gebrion, > > > ## Font size + ## Bold text > > for font size etc., you can use > \setuphead [chapter] [style={\setupbodyfont[11pt]}] or > \setuphead [chapter] [style=\tf] > >

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

2024-05-30 Thread Tomáš Hála
Hi Gebrion, > ## Font size + ## Bold text for font size etc., you can use \setuphead [chapter] [style={\setupbodyfont[11pt]}] or \setuphead [chapter] [style=\tf] \setuphead [chapter] [style=\bf] > ## Line breaks + ## Framed > How can I achieve line breaks? \define[2]\MyChapter{%

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

2024-05-30 Thread Gerion Entrup
The chapter format that I want to achieve in the end is nearly the one in the attachment (excerpt of Christian Dietrich's PhD thesis). Best Gerion Am Donnerstag, 30. Mai 2024, 16:15:01 MESZ schrieb Gerion Entrup: > Hi, > > I'm trying to adapt the format of chapters in my document and have a

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

2024-05-30 Thread Gerion Entrup
Hi, I'm trying to adapt the format of chapters in my document and have a few questions regarding setuphead. My aim is to have the chapter (title) on a separate page with an additional intro in different text sizes for title, subtitle and the intro. I chose to use the "command=" argument in

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

2024-05-30 Thread Rik Kabel
Bypass the place figure mechanism completely  by placing them on the page in an overlay. On May 30, 2024 04:22, Tomáš Hála wrote:Hi Charlie, I guess that \starttplacefigure[location={none},...] might help you. Or (older) \placefigure[none][,,,]{...}{...} Best, Tomáš > I haven’t

[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
Thanks Hraban, Tomáš Hála suggested l \starttplacefigure[location={none},...] which works a treat. I will keep your suggestion in mind too. I am very grateful to you all. Thank you, Charlie > On 30 May 2024, at 11:41, Henning Hraban Ramm wrote: > > If you don’t need them in the list and also

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

2024-05-30 Thread Henning Hraban Ramm
Am 29.05.24 um 17:35 schrieb Charles Doherty via ntg-context: I have \placelistoffigures some of which are logos (for the publisher and two granting bodies) that I have placed with: \setupcaptions[number=no] \starttplacefigure[ location={middle,high,low}, reference=fig:logo,

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

2024-05-30 Thread Tomáš Hála
Hi Charlie, I guess that \starttplacefigure[location={none},...] might help you. Or (older) \placefigure[none][,,,]{...}{...} Best, Tomáš > I haven’t typeset a book before and various things are a challenge. The most > recent is the following. > > I have \placelistoffigures some of which

[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 bibliography... %

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

2024-05-29 Thread Charles Doherty via ntg-context
Hi Mikael, > I notice that you addressed Wolfgang, but you also sent to the list. > One way could be to condition on being on a chapter page: > > \setupheadertexts > [\doifelsefirstsectionpage{chapter}{\userpagenumber}{}] > > \setupheadertexts >

[NTG-context] slides from 2023 meeting

2024-05-29 Thread Pablo Rodriguez via ntg-context
Hi there, just out of curiosity, are the slides from the 2023 meeting (https://meeting.contextgarden.net/2023/programme.shtml) planned for public release? Many thanks for your help, Pablo ___ If your question is of

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

2024-05-29 Thread ai2472206007
I must have made a mistake with something, I changed a counter and it somehow worked properly. Because I've designed too many counters, I still haven't figured out exactly what the problem is doing. But admittedly, the question I asked is non-existent. It's a problem with my design.

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

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/29/24 13:00, Henning Hraban Ramm wrote: > [...] > See also Taco’s introduction to LPEG in > https://articles.contextgarden.net/journal/2019/77-98.pdf Many thanks for the reference, Hraban. I need to start digesting that to learn about LPEG. Pablo

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

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/28/24 20:06, Hans Hagen wrote: > On 5/28/2024 6:25 PM, Tomáš Hála wrote: >> Hi Pablo, >> >> unfortunately, that it is not possible: >> >> http://lua-users.org/wiki/PatternsTutorial, section Limitations. > > \starttext > \startTEXpage[pagestate=start, offset=1em] > \startluacode

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

2024-05-29 Thread ai2472206007
Thank you. I will try again. ___ 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/mailman3/lists/ntg-context.ntg.nl webpage

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

2024-05-29 Thread ai2472206007
Thanks, probably interfered with his output in other parts of my command. I didn't locate the error correctly. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

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

2024-05-29 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 29.05.2024 um 14:05: 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]

[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 line 1 in

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

2024-05-29 Thread Alan Braslau via ntg-context
On Tue, 28 May 2024 21:54:08 -0700 Kip Warner wrote: > On Tue, 2024-05-28 at 17:00 -0600, Alan Braslau wrote: > > The Context publications reference subsystem reads BibTeX databases > > but does not use BibTeX at all. I am not sure what your quoted > > statement means exactly. > > I see. The

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

2024-05-29 Thread Taco Hoekwater
> On 29 May 2024, at 14:05, ai2472206...@yeah.net wrote: > > 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 >

[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
Am 28.05.24 um 20:06 schrieb Hans Hagen: On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em]     \startluacode    

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

2024-05-29 Thread Henning Hraban Ramm
Am 29.05.24 um 11:16 schrieb Henning Hraban Ramm: Am 29.05.24 um 11:05 schrieb Sylvain Hubert: I replaced `strc-lev.lua` and rerun `context` but the error message stays the same. `context` command doesn't seem to recognize the change of `strc-lev.lua`. Should I run `mtxrun` or something

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

2024-05-29 Thread Hans Hagen
On 5/29/2024 11:05 AM, Sylvain Hubert wrote: I replaced `strc-lev.lua` and rerun `context` but the error message stays the same. `context` command doesn't seem to recognize the change of `strc-lev.lua`. Should I run `mtxrun` or something before? context --make

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

2024-05-29 Thread Henning Hraban Ramm
Am 29.05.24 um 11:05 schrieb Sylvain Hubert: I replaced `strc-lev.lua` and rerun `context` but the error message stays the same. `context` command doesn't seem to recognize the change of `strc-lev.lua`. Should I run `mtxrun` or something before? After changes to the source files you must

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

2024-05-29 Thread Sylvain Hubert
I rerun `install.sh` after replacing `strc-lev.lua` and the error goes away. Thanks Hans! On Tue, 28 May 2024 at 20:20, Hans Hagen wrote: > On 5/28/2024 10:48 AM, Sylvain Hubert wrote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > > > > \definesectionlevels > >

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

2024-05-29 Thread Sylvain Hubert
I replaced `strc-lev.lua` and rerun `context` but the error message stays the same. `context` command doesn't seem to recognize the change of `strc-lev.lua`. Should I run `mtxrun` or something before? On Tue, 28 May 2024 at 20:20, Hans Hagen wrote: > On 5/28/2024 10:48 AM, Sylvain Hubert wrote:

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

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 17:00 -0600, Alan Braslau wrote: > The Context publications reference subsystem reads BibTeX databases > but does not use BibTeX at all. I am not sure what your quoted > statement means exactly. I see. The first few lines of my BibTeX file just contains a copyright notice

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 15:02 -0700, Kip Warner wrote: > On Tue, 2024-05-28 at 17:38 +0200, Wolfgang Schuster wrote: > > Add > > > > framecolor=colour_text, > > > > to the frame settings. > > Thanks Wolfgang. That does work. > > But another problem I've found is the font and circle are not

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

2024-05-28 Thread Kip Warner
On Wed, 2024-05-29 at 00:45 +0200, Aditya Mahajan wrote: > Hard to say without looking at the bib file, but % is not a comment > character in bibtex. So, if your file starts with The first few lines of the file is just a copyright notice, with each line beginning with %. If that's not an

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

2024-05-28 Thread Alan Braslau via ntg-context
On Mon, 27 May 2024 16:24:49 -0700 Kip Warner wrote: > I am using BibTeX under ConTeXt to typeset a publication. The Context publications reference subsystem reads BibTeX databases but does not use BibTeX at all. I am not sure what your quoted statement means exactly. Alan

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

2024-05-28 Thread Aditya Mahajan
On Tue, 28 May 2024, Kip Warner wrote: > On Tue, 2024-05-28 at 08:05 +0200, Henning Hraban Ramm wrote: > > According to the documentation, everything outside of entries is > > considered a comment. Inside of entries, there can’t be comments. > > But in this case, is it not warning about text

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 17:38 +0200, Wolfgang Schuster wrote: > Add > > framecolor=colour_text, > > to the frame settings. Thanks Wolfgang. That does work. But another problem I've found is the font and circle are not automatically resized when used in a formula:

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 17:47 +0200, Pablo Rodriguez wrote: > fw is a new dimensio unit only available in LMTX (not in LuaTeX). > > Just in case it might help, Thanks Pablo. I'm using the context package for Ubuntu Mantic which is version 2021.03.05.20230120+dfsg-2. I'm assuming that doesn't

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 08:17 +0200, Henning Hraban Ramm wrote: > Am 27.05.24 um 19:20 schrieb Kip Warner: > > On Mon, 2024-05-27 at 07:09 +0200, Ryszard Kubiak wrote: > > > Hi Kip, > > > > > > You may try characters with Unicode slots from U+2460 upto > > > U+2469. > > > They mean circled digits

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
On Mon, 2024-05-27 at 20:15 +0200, vm wrote: > if you make width and hwight 1.4en instead of 1.5em, the characters > will align with the running text. Thank you. I will give that a try. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.thevertigo.com signature.asc Description:

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

2024-05-28 Thread Hans Hagen
On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local pat = (lpeg.Cmt(lpeg.P("this") +

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

2024-05-28 Thread Kip Warner
On Tue, 2024-05-28 at 08:05 +0200, Henning Hraban Ramm wrote: > According to the documentation, everything outside of entries is > considered a comment. Inside of entries, there can’t be comments. But in this case, is it not warning about text outside of an entry that should be treated as a

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

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/28/24 18:25, Tomáš Hála wrote: > Hi Pablo, > > unfortunately, that it is not possible: > > http://lua-users.org/wiki/PatternsTutorial, section Limitations. Many thanks for your reply, Tomáš. It is clear to me now. Pablo

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

2024-05-28 Thread Tomáš Hála
Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. The best, Tomáš On Tue, May 28, 2024 at 06:12:51PM +0200, Pablo Rodriguez via ntg-context wrote: > Dear list, > > I have the following sample: > > \starttext >

[NTG-context] regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local str = "this is that" context(str:match("(this|these)")) \stopluacode \stopTEXpage \stoptext In short,

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/26/24 20:50, Wolfgang Schuster wrote: > [...] > I get the same results with the default font mode in MkIV and LMTX but > when I add > > \enableexperiments[fonts.compact] > > the x and xx sizes are wrong. Many thanks for having fixed that in latest, both Hans and Wolfgang. Pablo

[NTG-context] Re: Number in a circle

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/28/24 17:47, Pablo Rodriguez via ntg-context wrote: > On 5/27/24 19:10, Kip Warner wrote: >> [...] >>to say pt, for printer's55points. two letters. >> >> I'm not sure what it is referring to. > > fw is a new dimensio unit only available in LMTX (not in LuaTeX). Sorry for the noise. I

[NTG-context] Re: Number in a circle

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/27/24 19:10, Kip Warner wrote: > [...] > 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 is a new one! I'll assume that you meant >to say pt, for

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
Kip Warner schrieb am 28.05.2024 um 06:29: On Mon, 2024-05-27 at 19:44 +0200, Wolfgang Schuster wrote: You can use the \framed solution and modify it to use a metapost graphic as background, it also easy to replace the circle with a hexagon etc. \startuseMPgraphic{textcircle} draw

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

2024-05-28 Thread Denis Maier via ntg-context
Well, you define less levels than you need. Try this : % \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext

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

2024-05-28 Thread Sylvain Hubert
ConTeXt LMTX version: 2024.05.27 18:16 Reproducible example: \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel

[NTG-context] Re: Number in a circle

2024-05-28 Thread Henning Hraban Ramm
Am 27.05.24 um 19:20 schrieb Kip Warner: On Mon, 2024-05-27 at 07:09 +0200, Ryszard Kubiak wrote: Hi Kip, You may try characters with Unicode slots from U+2460 upto U+2469. They mean circled digits and are available in many fonts. Thanks Ryszard. Those would be perfect, except I can't get

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

2024-05-28 Thread Henning Hraban Ramm
Am 28.05.24 um 01:24 schrieb Kip Warner: Hello list, I am using BibTeX under ConTeXt to typeset a publication. I noticed while building the publication ConTeXt raises the following non-fatal warning: ... This is BibTeX, Version 0.99d (TeX Live 2023/Debian) The top-level auxiliary

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 19:44 +0200, Wolfgang Schuster wrote: > You can use the \framed solution and modify it to use a metapost > graphic as background, it also easy to replace the circle with a > hexagon etc. > > \startuseMPgraphic{textcircle} > draw fullcircle > xscaled

[NTG-context] BibTeX choking on comments in database

2024-05-27 Thread Kip Warner
Hello list, I am using BibTeX under ConTeXt to typeset a publication. I noticed while building the publication ConTeXt raises the following non-fatal warning: ... This is BibTeX, Version 0.99d (TeX Live 2023/Debian) The top-level auxiliary file: Secret_Sauce.aux The style file:

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
if you make width and hwight 1.4en instead of 1.5em, the characters will align with the running text. \defineframed [textcircled] [ width=1.4em, height=1.4em, location=low, corner=round, %radius=.5fw, radius=\dimexpr\framedwidth/2\relax, offset=none]

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
Kip Warner schrieb am 27.05.2024 um 19:23: On Mon, 2024-05-27 at 05:43 -0400, seyal zavira wrote: if you don't want to use metapost you can also use svg for background for example: \startuniqueMPgraphic{centered_svg}   draw lmt_svg [     filename = "badge.svg",     width  = OverlayWidth,  

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 19:28 +0200, Wolfgang Schuster wrote: > TeX complains about the value ".5fw" for the radius key. Hans added > last year the function to add new units to ConTeXt and I used it to > set the radius to half of the width of the framed box. > > Use the following version of the

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
Kip Warner schrieb am 27.05.2024 um 19:10: On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote: 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,  

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 05:43 -0400, seyal zavira wrote: > if you don't want to use metapost you can also use svg for background > for example: > > \startuniqueMPgraphic{centered_svg} >   draw lmt_svg [ >     filename = "badge.svg", >     width  = OverlayWidth, >     y      = OverlayHeight/2,  ] ;

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 07:09 +0200, Ryszard Kubiak wrote: > Hi Kip, > > You may try characters with Unicode slots from U+2460 upto 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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote: > 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, >  

  1   2   3   4   5   6   7   8   9   10   >