[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 decade old. Typo - 24.04 (phew!) — Br

[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.thevertigo.com s

[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: OMG! I thought Ubun

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

[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: https:

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

[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] [0x00300-0x0

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

[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. Althou

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

[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]    [0x00300-0x003FF,0x02100-0x02800,0x1F000-0x200

[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 2021.03.05.20230120+d

[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: 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: \definecolor[colour_text

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

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

[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: 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 did

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

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

[NTG-context] Re: Number in a circle

2024-05-27 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 the

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

[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] \starttex

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

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

[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, >   offset=non

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
Kip Warner schrieb am 27.05.2024 um 06:14: Hello list, I would like to typeset a number in a circle. Nothing fancy. No special colours, transforms, or complex metapost magic (which I am not familiar with). I have tried \circled{3} and \textcircled{3}, but ConTeXt does not appear to recognize th

[NTG-context] Re: Number in a circle

2024-05-27 Thread seyal zavira
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, ] ; \stopuniqueMPgraphic \defineoverlay [svgback] [\useMPgraphic{center

[NTG-context] Re: Number in a circle

2024-05-26 Thread Ryszard Kubiak
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. Best, Ryszard pon., 27 maj 2024 o 06:39 Kip Warner napisał(a): > Hello list, > > I would like to typeset a number in a circle. Nothing fancy. No special > colour