[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] 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] 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] 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()

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

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

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 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] 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] "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, >

[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

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

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

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

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] 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.: > >

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] 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;

[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

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] \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] 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 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
\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 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
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] 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 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] 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): > > >

[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] 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] 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] 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] \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] \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] A syntax sugar for ConTeXt

2020-11-02 Thread Sylvain Hubert
Dear List, I'm experimenting with a new syntax for ConTeXt and would appreciate it a lot if you could give some opinions/advice on it. https://github.com/champignoom/luax Details in the README. Basically it's lua code faking tex, while remaining a decent programming language, and saving

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

2020-11-02 Thread Sylvain Hubert
Dear List, I'm trying to mirror the context command `\setuphead[chapter][before=hello]` into lua with delayed typesetting of 'hello', but `\ctxlua{context.setuphead({'chapter'}, {before=context.delayed'hello'})}` does not have any effect. Could anyone help me on this? Thanks! Best, Sylvain

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

2020-11-02 Thread Sylvain Hubert
; > context.input(sometext) > > context.stopchapter() > > \stopluacode > > \stoptext > > > I hope examples help. > > Regards, > > Jairo :) > > > > El lun., 2 de nov. de 2020 a la(s) 21:09, Sylvain Hubert ( > champign...@gmail.co

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

2020-10-29 Thread Sylvain Hubert
And using safe mode here is just to make sure that the problem is not caused by extensions. The annoyance started long before I bothered opening firefox with an extra argument. On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 11:29, Sylvain H

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

2020-10-29 Thread Sylvain Hubert
Hi, sorry if this is not the best place to file a bug but I found no working bug tracker for context. Environment: Manjaro 20.1.2, context 2020.09.20 23:02, firefox 82.0 Step to reproduce: 1. `firefox --safe-mode # start firefox without add-ons` 2.a`context --version # or --help, or without

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

2020-10-29 Thread Sylvain Hubert
, Sylvain On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 11:29, Sylvain Hubert wrote: > > > > Hi, > > > > sorry if this is not the best place to file a bug but I found no working > bug tracker for context. > > Should you

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

2020-10-29 Thread Sylvain Hubert
Update: `mtxrun --script # without more arguments` triggers the same problem. On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 11:29, Sylvain Hubert wrote: > > > > Hi, > > > > sorry if this is not the best place to file a bug

[NTG-context] Unicode math input in LMTX

2020-10-29 Thread Sylvain Hubert
Hi all, Does anyone know if it is possible to input unicode in math formulas in LMTX with the help of something similar to unicode-math in LaTeX? Best, Sylvain ___ If your question is of interest to others as well,

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

2020-10-29 Thread Sylvain Hubert
Thu, 29 Oct 2020 at 13:56, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 12:44, Sylvain Hubert wrote: > > > > I've just tried chromium which behaves a bit better but still > experiences a sudden raise of cpu usage from <10% to >70% during ~1s. > > I've

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

2020-10-29 Thread Sylvain Hubert
29 Oct 2020, at 12:44, Sylvain Hubert wrote: > > > > I've just tried chromium which behaves a bit better but still > experiences a sudden raise of cpu usage from <10% to >70% during ~1s. > > I've also noticed that, even without any browser running, each time > after I comp

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

2020-10-29 Thread Sylvain Hubert
y sure this is a context bug, probably caused by unnecessary excessive disk operations or something. On Thu, 29 Oct 2020 at 12:33, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 12:19, Sylvain Hubert wrote: > > > > And using safe mode here is just to make sure that the problem

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

2020-10-30 Thread Sylvain Hubert
> You could test that theory by switching to a text terminal for running the ‘context’ command (assuming the text-only terminal is still accessible in Manjaro) and see whether the output of ‘context —help’ causes lag there as well. If I understand you correctly, here's what I've tried: 1. open

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

2020-10-30 Thread Sylvain Hubert
t is Firefox at > fault. If you don't then it might not be - unfortunately it only narrows it > down to a 'might'. > > Regards, > > > On 29 Oct 2020, at 11:44, Sylvain Hubert wrote: > > > > I've just tried chromium which behaves a bit better but still > experiences a sudden ra

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

2020-10-30 Thread Sylvain Hubert
A few new experiments: 1. `firefox --headless` stays quite no matter what 2. when `gimp` is running, `context --help` causes a rise of cpu usage of gimp up to 60% for ~1s 3. when only xfce4-terminal is running, I tried `context --help` for a few times and for each time, one of the following

[NTG-context] context.delayed is incompatible with some functions

2020-11-01 Thread Sylvain Hubert
Dear List, I was reading Typesetting in Lua using LuaTEX . By playing with the examples in the article, I found that `context.chapter(context.delayed("one"))` does not render the delayed text properly, while `context.bf(context.delayed("one"))` does. I

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

2020-11-04 Thread Sylvain Hubert
The problem disappeared after a fresh installation of context with everything else untouched. On Thu, 29 Oct 2020 at 11:29, Sylvain Hubert wrote: > Hi, > > sorry if this is not the best place to file a bug but I found no working > bug tracker for context. > > Environment

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

[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

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

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

[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

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

2020-11-04 Thread Sylvain Hubert
Dear List, I was reading workflow-mkiv and have found the '--errors' and '--noconsole' arguments which seemed quite helpful since, according to the documentation, "show errors at the end of a run" and "disables logging to the console"

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] 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

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] 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

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] 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

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 >

[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

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/

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

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] 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] Bug: context/mtxrun makes Firefox eat up cpu

2020-10-29 Thread Sylvain Hubert
ote: > > > > On 29 Oct 2020, at 15:14, Sylvain Hubert wrote: > > > > > But it seems to be a big problem only on your machine > > I fail to see what this implies. > > The point is that if this was a common problem, many users would complain > or at least respond to you

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

2020-10-29 Thread Sylvain Hubert
ote: > On Thu, 29 Oct 2020, Sylvain Hubert wrote: > > > Hi, > > > > sorry if this is not the best place to file a bug but I found no working > > bug tracker for context. > > > > Environment: > > Manjaro 20.1.2, context 2020.09.20 23:02, firefox 82.0 >

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

[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

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] 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

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

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] 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!

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

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] 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] 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

  1   2   >