Re: [NTG-context] fallbacks

2023-04-24 Thread Sylvain Hubert via ntg-context
I believe it's a bug. https://github.com/contextgarden/context/blob/d025bcdf995be6951f69fed6869048ab22491b9e/tex/context/base/mkxl/font-col.lmt#L278 the newchar[] table, which should contain all chars supported by the fallback termes font if I'm not mistaken, turns out to have only 392 chars

Re: [NTG-context] horizontal space in CJK document

2023-02-21 Thread Sylvain Hubert via ntg-context
Thanks, but I guess the space width would be fixed. I just found a hack: 口口\hspace[big]\hbox{}口口 does the trick. On Tue, 21 Feb 2023 at 06:46, fv leung via ntg-context wrote: > Maybe the ideographic space U+3000 works. > > 在 2023年2月21日週二 03:42,Sylvain Hubert via ntg-context > 寫

[NTG-context] horizontal space in CJK document

2023-02-20 Thread Sylvain Hubert via ntg-context
Dear list, Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]? \setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored \dorecurse{100}{口}

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote: > > [...] > > Btw, just in case if anyone shares this idea: is it possible to have a > > zulip channel for ConTeXt

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
blo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 2/19/23 20:34, Sylvain Hubert via ntg-context wrote: > > Dear list, > > > > I have a long document (A4 * 170 pages) with some CJK fonts, where some > > of the \subject{...} are placed at the end of the

[NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Sylvain Hubert via ntg-context
Dear list, I have a long document (A4 * 170 pages) with some CJK fonts, where some of the \subject{...} are placed at the end of the corresponding pages, which looks awkward. How can one flush those last-line titles to the next pages? Currently I don't have a MWE, as trivial filling-up with 1-2

Re: [NTG-context] TOC colors and in-page anchors

2022-10-11 Thread Sylvain Hubert via ntg-context
(heartbeat packet) I think some kind of modern issue tracker on e.g. https://github.com/contextgarden/context-mirror would be generally helpful. On Wed, 28 Sept 2022 at 23:31, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 9/28/22 12:20, Sylvain Hubert via ntg-cont

Re: [NTG-context] TOC colors and in-page anchors

2022-09-28 Thread Sylvain Hubert via ntg-context
Horrocks wrote: > > > > On 28 Sep 2022, at 09:18, Sylvain Hubert via ntg-context < > ntg-context@ntg.nl> wrote: > > > > Dear list, > > > > \usemodule[ipsum] > > \setupinteraction[state=start] > > > > \starttext > >

[NTG-context] TOC colors and in-page anchors

2022-09-28 Thread Sylvain Hubert via ntg-context
Dear list, \usemodule[ipsum] \setupinteraction[state=start] \starttext \completecontent \section{s1}\ipsum \section{s2}\ipsum \section{s3}\ipsum \section{s4}\ipsum \section{s5}\ipsum \section{s6}\ipsum \stoptext In the table of contents, s1 and s2 (at

[NTG-context] Roman PDF labels

2021-09-14 Thread Sylvain Hubert via ntg-context
Dear List, Do we have something like "\pagenumbering{roman}" in latex, which sets the pdf labels (page numbers for pdf viewers, not the ones rendered in the footer) to roman numbers? Here's a MWE for latex: \documentclass{report} \usepackage{hyperref} \begin{document} \pagenumbering{roman}

[NTG-context] textbackground for text of different size

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, the red highlight block in the following example is not covering the two 40pt characters: \definetextbackground[important][frame=no,background=color,backgroundcolor=red] \starttext abc\important{123{\switchtobodyfont[40pt]45}xy}z \stoptext Is there an option that fixes this? Thanks!

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
Thanks Hans! On Sun, 12 Sept 2021 at 19:02, Hans Hagen wrote: > On 9/12/2021 6:54 PM, Sylvain Hubert via ntg-context wrote: > > Dear List, > > > > The following code draws a circle at the center of the page, ignoring > > the "shifted" part. > >

[NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, The following code draws a circle at the center of the page, ignoring the "shifted" part. \startuniqueMPgraphic{concept} draw fullcircle scaled 1cm shifted (10cm,10cm); \stopuniqueMPgraphic \defineoverlay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept]

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-12 Thread Sylvain Hubert via ntg-context
The problem also concerns \starttyping: \starttext . \startluacode context([[ \starttyping \stoptyping ]]) \stopluacode \stoptext tex error > runaway error: end of file encountered mtx-context | fatal error: return code: 256 % \starttext . \startluacode context([[

[NTG-context] Equation alignment

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, The following example of equation alignment copied from An Excursion is not reproducible under my context 2021.03.05 shipped with texlive 2021: \starttext \startformula \eqalign{ ax^2+bx+c &= 0 \cr x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr } \stopformula \stoptext Both ampersands are

[NTG-context] features of fallback font

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, I'm using the chinese simsun font that has no builtin SerifBold. I'm trying to define a fakebold feature for it, but the following code does not work: \definefontfeature[fakebold][effect={width=0.3, delta=0}] \definefontfallback [sunfallback] [name:simsun] [cjkunifiedideographs]

[NTG-context] Remove vertical space around typing

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, How should we remove the vertical space above and below the following typing? \starttext Remove space below \starttyping some code \stoptyping \stoptext Thanks! Best, Sylvain ___ If your question is of

Re: [NTG-context] margin of inner item group

2021-09-07 Thread Sylvain Hubert via ntg-context
Thanks but I believe 'distance' means ' * <--> text', while margin means '<--> * text'. On 07/09/2021, fv leung via ntg-context wrote: > Use > > distance=... > > instead of > > margin=... > > . > > 在 2021年9月7日週二 16:58,Sylvain Hubert via ntg-c

Re: [NTG-context] itemize problems

2021-09-07 Thread Sylvain Hubert via ntg-context
This works, thanks! On 07/09/2021, fv leung via ntg-context wrote: > Use > > \startitemize[A,text][lefttext=,righttext=,stopper=] > > then. > > Maybe that's the new way. > > Sylvain Hubert via ntg-context 於 2021年9月7日 週二 > 下午4:32寫道: > >> Thanks, but

[NTG-context] margin of inner item group

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, Does anyone know how to set the margin of an inner item group? The natural way does not seem to work: \showframe \starttext \startitemize[margin=5em] \item 1 \startitemize[margin=10em] \item 1 \item 2 \item 3 \stopitemize \item 2 \item 3 \stopitemize \stoptext In the doc above, only

[NTG-context] error: (nodes): fuzzy token cleanup in whatsit node

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, I think I've just encountered a fragile bug. It is only reproducible with exactly the same layout as the doc below. Any insertion or removal of an item that changes the pagination would let the document compile. \defineitemgroup[choice][itemize] \setupchoice[packed,columns,one]

Re: [NTG-context] itemize problems

2021-09-07 Thread Sylvain Hubert via ntg-context
e second option group. > > 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context 寫道: > >> A few more information: >> >> For the 1st problem: >> >> It seems that \setupitemize accepts two option groups, to which >> n,packed and margin belong accordingly. Ho

[NTG-context] error: (nodes): fuzzy token cleanup in whatsit node ...

2021-09-06 Thread Sylvain Hubert via ntg-context
% context version: 2021.03.05 19:11 % This seems to be a bug of a very subtle layout problem. % Inserting or removing anything will likely to suppress the bug \defineitemgroup[choice][itemize] \setupchoice[packed,columns,one] \setupchoice[before={\blank[medium]}] \starttext .\blank[32*big]

Re: [NTG-context] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
A few more information: For the 1st problem: It seems that \setupitemize accepts two option groups, to which n,packed and margin belong accordingly. However, \setupitemize[n][margin=2em] does not seem to work. For the 2nd problem: \setupitemize[columns,one], although doing nothing in theory,

[NTG-context] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
Dear List, Here's a collection of four problems about item groups that I've just encountered. 1. 'n' and 'packed' not playing well with other options. This works: \defineitemgroup[myitems][itemize][margin=2em,before=before] \setupmyitems[n,packed] \starttext text

Re: [NTG-context] \usemodule[chinese] not found

2021-09-06 Thread Sylvain Hubert via ntg-context
Thanks Hans! On 06/09/2021, Hans Hagen via ntg-context wrote: > On 9/6/2021 6:51 PM, Sylvain Hubert via ntg-context wrote: >> Dear List, >> >> I'm trying to typeset an item group (itemize) with chinese numbering. It >> is suggested in multiple older

[NTG-context] \usemodule[chinese] not found

2021-09-06 Thread Sylvain Hubert via ntg-context
Dear List, I'm trying to typeset an item group (itemize) with chinese numbering. It is suggested in multiple older documentations and answers that \startitemize[c] should be used, for which \usemodule[chinese] is required. But I can no longer find the 'chinese' module neither in texlive, in

[NTG-context] Automatically adjust number of table columns

2021-09-05 Thread Sylvain Hubert via ntg-context
Dear List, I'm trying to make "\startchoice", "\stopchoice", and "\choice", such that: \startchoice \choice -1 \choice 0 \choice 1 \choice N/A \stopchoice results in (_ for whitespace) A. -1__B. 0__C. 1__D. N/A while \startchoice \choice not so