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
, seems to fix the problem. For the 4th problem: I've found that we can do \setupitemize[A,text] which makes it like (A.) 0 (B.) 1 (C.) 2 (D.) 3 The problem now is, how can we remove the parentheses around the item labels? On 07/09/2021, Sylvain Hubert wrote: > Dear List, > &g

[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

Re: [NTG-context] Bug: missing Lua API in binaries

2021-04-23 Thread Sylvain Hubert
ers different from the ones for stock lua? On Fri, 23 Apr 2021 at 23:53, luigi scarso wrote: > > > On Fri, Apr 23, 2021 at 10:08 PM Sylvain Hubert > wrote: > >> Dear Devs, >> >> Sorry if this is not the best place for reporting bugs. >> >> I'm

[NTG-context] Bug: missing Lua API in binaries

2021-04-23 Thread Sylvain Hubert
Dear Devs, Sorry if this is not the best place for reporting bugs. I'm trying to use the lpeglabel library written in C and delivered as lpeglabel.so. $ ls testlabel.lua lpeglabel.so $ cat testlabel.lua require("lpeglabel") The ConTeXt binary cannot load the library because it lacks certain

[NTG-context] context() does not ignore space in empty line

2021-04-19 Thread Sylvain Hubert
Dear list, does anyone have an idea why, in the example below, context() starts a new paragraph at "\n\n" but not at "\n \n" with a space in between? Is there any way to fix it? \starttext Without using context(), inside the next parentheses is a new line: ( ) note that a space sits between the

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
Hi Andrés, You could probably put the notes inside a \start...\stopxtablefoot Sylvain On Tue, 10 Nov 2020 at 21:49, Andres Conrado Montoya < andresconr...@gmail.com> wrote: > MWE (sorry for the long table, I hadn't anything else at hand): > > >

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 19:11: > > > Weirdly enough, "\hskip 0pt" solves the problem. > > > > \setuphead[section][after={\blank[s

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:25, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 18:06: > > > Thanks for the suggestion, but as illustrated by the second example, > > copied here, where the section title i

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:05, Aditya Mahajan wrote: > On Tue, 10 Nov 2020, mf wrote: > > > Il 10/11/20 09:42, Sylvain Hubert ha scritto: > > > Dear List, > > > > > > Does anyone know how to indent the paragraph beneath \placefigure in > the > >

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Pablo Rodriguez schrieb am 10.11.2020 um 15:59: > > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > >> Dear List, > >> > >> In the following example,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:37, Pablo Rodriguez wrote: > On 11/10/20 5:23 PM, Sylvain Hubert wrote: > > My mistake, but the problem survives the fix: > > > > \setuphead[section][after={\blank[samepage,big]}] > > \starttext > > \showframe > > \

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
\dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow} \stopxtable \stoptext Sylvain On Tue, 10 Nov 2020 at 17:11, Sylvain Hubert wrote: > > On Tue, 10 Nov 2020 at 16:00, Pablo Rodriguez wrote: > >> On 11/10/20 9:55 AM, Sylvain Hubert wrote: >> > Dear List, &g

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 16:00, Pablo Rodriguez wrote: > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, the section title appears at the very end of > > the first page. > > [...] > > Does anyone know where

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 10:05, mf wrote: > Il 10/11/20 09:42, Sylvain Hubert ha scritto: > > Dear List, > > > > Does anyone know how to indent the paragraph beneath \placefigure in the > > following example? > > > > \indenting[2em] > >

[NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
Dear List, In the following example, the section title appears at the very end of the first page. \showframe \starttext \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{30}{a b

[NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
Dear List, Does anyone know how to indent the paragraph beneath \placefigure in the following example? \indenting[2em] \setupindenting[yes] \starttext \dorecurse{50}{a b c } \placefigure[here,none][indentnext=yes]{}{ \startMPcode draw fullcircle scaled 1cm;

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
On Mon, 9 Nov 2020 at 23:40, Jairo A. del Rio wrote: > Hi, Sylvain. > > LuaMetaTeX and LuaTeX, the engines used by ConTeXt nowadays, use an > embedded library, so external compilations/files are not necessary. Just > out of curiosity, wouldn't it be easier to use a ConTeXt environment? E.g.: > >

[NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
Dear List, I'm trying to embed a metapost image into the document. According the MetaFun manual , "embedding such a graphic is done by: \externalfigure[graphic.123][width=4cm]", but the following example produces an empty page: %

[NTG-context] extra warning in the lua version

2020-11-09 Thread Sylvain Hubert
Dear List, The following code does the same thing twice, once with lua and once without, but the lua version triggers a warning: \starttext % this triggers a warning: fonts > checking > char [sub] in font 'LMMono12-Regular' with id 8: missing \startluacode context.startxtable()

Re: [NTG-context] indentation of item separators

2020-11-09 Thread Sylvain Hubert
On Mon, 9 Nov 2020 at 20:35, Pablo Rodriguez wrote: > On 11/9/20 8:09 PM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, what is indented is the text instead of the > > numbers. > > [...] > > Does anyone know how to indent the whol

[NTG-context] indentation of item separators

2020-11-09 Thread Sylvain Hubert
Dear List, In the following example, what is indented is the text instead of the numbers. \starttext \startitemize[n, packed][indenting=2em] \item abc \item def \item ghi \stopitemize \stoptext Does anyone know how to indent the whole item group altogether? Thanks!

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 18:27, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 17:56: > > Hi Wolfgang, > > > > I'm sorry that the question was not clear enough. Let me ask in this way: > > how to define a \d

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
Hi Wolfgang, I'm sorry that the question was not clear enough. Let me ask in this way: how to define a \dorecurse, such that \dorecurse{10}{\type{ab c}} does not squash the spaces? Sylvain On Sun, 8 Nov 2020 at 15:03, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: >

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 13:44, Pablo Rodriguez wrote: > On 11/8/20 11:48 AM, Sylvain Hubert wrote: > > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > > the help!. > > > > Btw, do you know whether there is any difference between \lastpagenumber

[NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
Dear List, I would like to ask how to define a command, \same, such that \same{\type{a b c}} produces the same result as its argument does \type{a b c} The naive way doesn't work because it makes all the spaces collapse: \define[1]\same{#1} I would also like to ask whether

Re: [NTG-context] temporarily move up a section title

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 10:12, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 03:19: > > Dear List, > > > > I'm trying to move up a section title (section b) 2cm upward: > > > > \starttext > >

Re: [NTG-context] temporarily move up a section title

2020-11-08 Thread Sylvain Hubert
Hi Hraban, On Sun, 8 Nov 2020 at 07:57, Henning Hraban Ramm wrote: > > > > Am 08.11.2020 um 03:19 schrieb Sylvain Hubert : > > > > Dear List, > > > > I'm trying to move up a section title (section b) 2cm upward: > > > > \startte

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 12:52, Hans Hagen wrote: > On 11/8/2020 12:46 PM, Sylvain Hubert wrote: > > On Sun, 8 Nov 2020 at 12:14, Hans Hagen > <mailto:j.ha...@xs4all.nl>> wrote: > > > > when yyou use several bodyfonts you can do this before \starttext: &

Re: [NTG-context] weird behavior of font.feature.effect

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 11:24, Pablo Rodriguez wrote: > Hi Sylvain, > > this is the same as: > > \definefontfamily[face1][rm][gabriola] > > Just in case, "slanted" is an already defined feature. It slants the font. > > > \definefontfamily[face2][rm][gabriola][it={features:{default, > >

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 12:14, Hans Hagen wrote: > when yyou use several bodyfonts you can do this before \starttext: > > \usebodyfont[face,24pt] > \usebodyfont[deface] > > \starttext > > \stoptext > Thank you for the information, Hans! Could you please also shed some light on the

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 12:07, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 11:48: > > On Sun, 8 Nov 2020 at 10:31, Pablo Rodriguez > <mailto:oi...@gmx.es>> wrote: > > > > Hi Sylvain, >

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez wrote: > On 11/8/20 11:18 AM, Sylvain Hubert wrote: > > Hi Pablo, > > > > thanks for the suggestion. Here's the minimal example which shows the > > difference: > > > > \definefontfamily[face][rm][dejavuser

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 10:31, Pablo Rodriguez wrote: > Hi Sylvain, > > \setupfootertexts[\pagenumber/\lastpagenumber] > \starttext > \dorecurse{25}{\null\page} > \stoptext > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for the help!. Btw, do you know whether there

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
Many thanks for the help! On Sun, 8 Nov 2020 at 10:20, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 02:58: > > Dear List, > > > > Does anyone know how to set the footer to be "page i/n" where i=cu

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 11:18, Sylvain Hubert wrote: > Hi Pablo, > > thanks for the suggestion. Here's the minimal example which shows the > difference: > > \definefontfamily[face][rm][dejavuserif] > \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext > > this

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Sylvain Hubert
ular-4' with id 10: missing while \definefontfamily[face][rm][dejavuserif] \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext produces the expected result despite a harmless warning. Sylvain On Sun, 8 Nov 2020 at 10:41, Pablo Rodriguez wrote: > On 11/8/20 2:35 AM, Sylvain Hub

[NTG-context] \define in conflict with \startxtable[]

2020-11-07 Thread Sylvain Hubert
Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup". \starttext \define\sample{ \startxtable[] \startxtablehead \startxrow \startxcell 123\stopxcell \stopxrow \stopxtablehead \stopxtable

[NTG-context] \setupindenting[first] not working

2020-11-07 Thread Sylvain Hubert
Dear List, The first paragraph of the following example is not indented. \setupindenting[yes,first,4cm] \starttext \section{a} \dorecurse{84}{abc } \dorecurse{84}{abc } \stoptext Does anyone know how to actually get the first paragraph indented? Thanks! Best,

[NTG-context] temporarily move up a section title

2020-11-07 Thread Sylvain Hubert
Dear List, I'm trying to move up a section title (section b) 2cm upward: \starttext \section{a} \blank[-2cm,force]\ \section{b} \section{c} \stoptext The empty space (\ ) after the \blank is necessary here, without which the \blank does nothing. I would like to ask

[NTG-context] "page i/n" in footer

2020-11-07 Thread Sylvain Hubert
Dear List, Does anyone know how to set the footer to be "page i/n" where i=current page number, n=total number of page? I've tried \setuppagenumbering[location=footer, command=\groupedcommand{page }{/\lastcounter[userpage]}] but \lastcounter[userpage] results in empty string. Thanks in

[NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-07 Thread Sylvain Hubert
Dear List, after hours of debugging, I finally found out that \switchtobodyfont[face, 20pt] does NOT behave the same with \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is the correct one, while the former does nothing but falling back to latinmodern. Does anyone know when

[NTG-context] weird behavior of font.feature.effect

2020-11-07 Thread Sylvain Hubert
Dear List, I'm confused by the result of the following example (see attached): \definefontfamily[face1][rm][gabriola][it={features:{default}}] \definefontfamily[face2][rm][gabriola][it={features:{default, effect={}}}] \definefontfamily[face3][rm][gabriola][it={features:{default,

Re: [NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
The motivation of using \section was to avoid \stopsection, but I just found out that \stopsection is not really necessary. Now I would like to ask whether there is any difference between \section{Title} and \startsection[title=Title]. Thanks. On Sat, 7 Nov 2020 at 22:33, Sylvain Hubert wrote

[NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
Dear List, it is known that we can supply additional userdata like authors to \startsection: \startsection[title=Title][author=Someone] so that the author can be included in the table of contents using \structurelistuservariable{author}. Now I would like to do the same with \section, but

Re: [NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
On Sat, 7 Nov 2020 at 20:37, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > \structurelistuservariable is for lists (e.g. the table of contents), > to access the values in your text use \structureuservariable. > Indeed. Thanks for the help, Wolfgang.

[NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
Dear List, I have sections tagged with authors: \startsection[title={Title}][author={Author}] ... \stopsection The authors were to be included in the table of contents using \structurelistuservariable{author}. Now I would also like to mention the authors inside the sections, but

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Hi Pablo, thanks for the suggestion, but I was looking for an automated method for writing a module, therefore manual reference is not feasible here. Sylvain On Sat, 7 Nov 2020 at 16:46, Pablo Rodriguez wrote: > On 11/7/20 4:32 PM, Sylvain Hubert wrote: > > Dear List, > > >

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
useful. Sylvain On Sat, 7 Nov 2020 at 16:41, Pablo Rodriguez wrote: > On 11/7/20 4:06 PM, Sylvain Hubert wrote: > > [...] > > Could anyone help me define a {\bf}-aware version of \fakebf which can > > render the "4 5 6" in the example above in lat

[NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Dear List, say I have three sections in the document: \section{foo} ... \section{bar} ... \section{baz} ... Now I would like to auto generate a heavily customized table of contents like the following text, which cannot be done by the stock \placecontent in general, and put it into the

[NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
Dear List, I'm using a weirdfont that does not have a pre-defined bold variant but still want to emboldening short extracts of text occasionally, so I've defined \defineeffect[thicker][alternative=both,rulethickness=0.3pt] \define\fakebf{\effect[thicker]} but in situations like

Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Sylvain Hubert
If you happen to use ibus on a linux, there's a emoji/unicode picker , where you can type `elem` and pick one from the candidates “∈∉∊⋲⋳⋴⋵⋶⋷⋸⋹⟒⫙” . On Thu, 5 Nov 2020 at 21:25, wrote: > A quick question for

Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 16:25, Pablo Rodriguez wrote: > Hi Sylvain, > > you can avoid this with the following code (althought the "height" > option is probably not needed): > > \setuplayout[width=middle, height=middle] > Thanks Pablo. This happens to be what I've been looking for for a long

Re: [NTG-context] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 14:21, mf wrote: > \blank[.25\paperheight,force] > > A blank at the top of a page is ignored, because usually you use a blank > as a separator, that is useless at the top of a page, because the page > break is enough to separate two texts. > > Sometimes you need a blank on

Re: [NTG-context] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
ght). > I do not know why... > > But if I use another dimension, eg. 5*big or 20cc, it works with > \dontleavehmode: > > \starttext > \dontleavehmode > \blank[5*big] > %\blank[20cc] > foo > \stoptext > > Maybe it will help you. > > The best, > > Tomáš &g

[NTG-context] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
Dear List, I'm trying to put the document title at around .25\paperheight by inserting a \blank: \setuplayout[topspace=0cm, header=0cm, height=\paperheight] \starttext \blank[.25\paperheight] foo \stoptext But the "foo" still appears at the very top. Does anyone know why it behaves

Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 11:57, Henri Menke wrote: > %D The default dimensions are quite old and will not change. The funny > fractions > %D were introduced when we went from fixed dimensions to relative ones. > Since > %D \CONTEXT\ is a dutch package, the dimensions are based on the metric >

Re: [NTG-context] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 12:07, Taco Hoekwater wrote: > > > > On 5 Nov 2020, at 11:48, Sylvain Hubert wrote: > > > > After dozens of compilations of various minimal examples using the newly > installed context, the problem reappeared. > > > > Removing tex/

Re: [NTG-context] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Sylvain Hubert
After dozens of compilations of various minimal examples using the newly installed context, the problem reappeared. Removing tex/texmf-cache does not help. Does anyone know what files context modifies apart from tex/texmf-cache? Sylvain On Wed, 4 Nov 2020 at 16:01, Sylvain Hubert wrote

[NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
Dear List, \starttext \showframe \showsetups \stoptext This minimal example without further configuration shows that the default value for backspace, textwidth and paperwidth are 2.5cm, 15cm, 21cm resp., which means that the textarea is horizontally 0.5cm off the center by default, and one

[NTG-context] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Sylvain Hubert
Dear List, according to https://wiki.contextgarden.net/Command/setuplayout , "cutspace" and "bottomspace" are the counterparts of "backspace" and "topspace", and "If cutspace is set to 0, it is taken to be equal to the backspace". But in fact, the following document stays the same no matter what

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 22:22, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > There was never a real test for the performance but when you enable the > checker in the example below (which works only with LuaTeX) the second list > is slower. > > % engine=luatex > \starttext >

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 21:32, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > 4. it performance issues and leads to a noticeable performance drop. > This sounds a bit surprising, since intuitively it takes no less effort to deal with the registered key than to determine that a key

[NTG-context] Is there any intuitive way of handling missing characters?

2020-11-04 Thread Sylvain Hubert
Dear List, Is there any way to give a sequence of fonts to context and let it try one after another in case of missing characters? Ideally it should be something like \usefallback[font1,font2,font3,...] The methods I've found are all way too complicated for someone who does not really care about

Re: [NTG-context] How does lua callback work?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 19:25, Hans Hagen wrote: > no callback > > \checkcharactersinfont > > will report missing chars > Thanks, but this command doesn't seem to add any information on top of the missing characters that context already reported without the command. My motivation was to write a

Re: [NTG-context] How to draw a horizontal line of 0.5\paperwidth ?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 18:44, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > \blackrule[width=.5\paperwidth] > It works! Thanks! ___ If your question is of interest to others as well, please add an

[NTG-context] How to draw a horizontal line of 0.5\paperwidth ?

2020-11-04 Thread Sylvain Hubert
Dear List, I've tried \hl[0.5\paperwidth] but context complains 'a number should have been here' since \hl assumes 'em' as unit. Does anyone know how to draw a horizontal line of 0.5\paperwidth ? Thanks! Best, Sylvain

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
again, sorry for replying on the wrong channel. On Wed, 4 Nov 2020 at 17:35, Hans Hagen wrote: > > it would harm performance because it involves parsing all values and > also ways around cases where the title is "function" (lieral text). > I'm not sure I understand what you mean by literal

[NTG-context] How does lua callback work?

2020-11-04 Thread Sylvain Hubert
Dear List, I'm trying to intervene whenever context encounters a character that it cannot render in the current font. I guess this should have something to do with lua callbacks (pls correct me if I'm wrong), but the document does not seem

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 17:06, Duncan Hothersall wrote: > Hi Sylvain, > > This page may be useful: https://wiki.contextgarden.net/Layout > I was aware of this page but have mistakenly inferred from the figure that the backspace is an automatically calculated sum of other parameters. Basically

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
Never mind, there's a 'backspace=0cm' to be set. On Wed, 4 Nov 2020 at 16:47, Sylvain Hubert wrote: > Dear List, > > The following example results in a pdf that has a wide margin on both > sides despite the \setuplayout : > > \showframe > \setuppapersize[A4][A

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
% Hans, sorry for having replied on the wrong channel before. On Tue, 3 Nov 2020 at 09:03, Hans Hagen wrote: > On 11/3/2020 4:05 AM, Sylvain Hubert wrote: > > > as tables like those in setuphead({somehead}, {somesettings}) are > > actual Lua tables and follow L

[NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
Dear List, The following example results in a pdf that has a wide margin on both sides despite the \setuplayout : \showframe \setuppapersize[A4][A4] \setuplayout[margin=0cm, edge=0cm, margindistance=0cm, edgedistance=0cm] \starttext hello world \stoptext Does anyone know

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
Moreover, is there any way to let context give an error at all when encountering something like `\setuppagenumbering[position=footer]` ? On Wed, 4 Nov 2020 at 15:53, Sylvain Hubert wrote: > Dear List, > > I was reading workflow-mkiv > <http://www.pragma-ade.nl/general/manuals/wor

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Sylvain Hubert
Here a fresh standalone installed an hour ago doesn't seem to have the problem. On Wed, 4 Nov 2020 at 16:11, Pablo Rodriguez wrote: > Dear list, > > after latest from 2020.09.20, I afraid I get this error when running > install.sh on Linux or install.bat on Windows (both 64bit): > > mtx-install

  1   2   >