[NTG-context] new font trickery

2020-12-22 Thread Hans Hagen
%% EXAMPLE \setuplayout[middle] \setupbodyfont[pagella,10pt] \setupalign[verytolerant,stretch] \setupwhitespace[big] \starttext \startbuffer \definescaledfont[bfe][scale=2000,style=bf] \setuphead[chapter][style=\bfe] \dostepwiserecurse {10} {2020} {10} { \title{Here we go #1!}

Re: [NTG-context] Alternative for selector in LMTX for different heading and reference texts for descriptions

2020-12-21 Thread Christoph Reller
On Sat, Dec 19, 2020 at 10:43 PM Christoph Reller < christoph.rel...@gmail.com> wrote: > Hans Hagen schrieb am Sa., 19. Dez. 2020, 19:16: > >> Actually, what you want is: >> >> \definedescription[desc] >> \starttext >> \startdesc[title={Long

Re: [NTG-context] Polar pgfplots seems to be broken (Aditya Mahajan)

2020-12-21 Thread Gavin
ntitled.tex: ! Undefined control sequence >>> >>> \pgfplots@environment@polaraxis@ [#1]->\begin >>> {axis}[#1,data cs=polar,axis >>> type=polar] >>> l.18\startpolaraxis[] >>> &

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mikael, Indeed you are right about the fact that > \startexample[title={Title}] > ... > \stopexample is more logical and also more convenient. Sorry for not having checked your example in mkiv, where this structure works as intended. So it might be a small buglet in LMTX. Bes

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
Hi Otared, Thank you for your suggestion. I would say yes and no. I want the result one gets from what you write, but I prefer the syntax \startexample[title={Title}] ... \stopexample and that has been working before. Reading in setup-en.pdf, it also looks to me as if that should work. Best

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mickael, Maybe this is what you want: \defineenumeration[example] [text=Example, title=yes, titleleft=, titleright={.}, ] \starttext \startexample{Title} This is a test. \stopexample \stoptext Of course is you say text=, then you get only

[NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
Hi, Has anything changed with titles and enumerations? I expected a title "Title" with the following setup. \defineenumeration[example][ text=Example, title=yes, ] \starttext \startexample[title={Title}] This is a test. \stopexample \stoptext But it does not show up

Re: [NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Aditya Mahajan
{axis}[#1,data cs=polar,axis > > type=polar] > > l.18\startpolaraxis[] > > > > 16 \startsection[title={Polar Plot}] > > 17 \starttikzpicture % tikz code > > 18 >> \st

[NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Gavin
\startpolaraxis[] > > 16 \startsection[title={Polar Plot}] > 17\starttikzpicture % tikz code > 18 >> \startpolaraxis[] > 19 > \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; > 20

Re: [NTG-context] Alternative for selector in LMTX for different heading and reference texts for descriptions

2020-12-19 Thread Christoph Reller
Hans Hagen schrieb am Sa., 19. Dez. 2020, 19:16: > Actually, what you want is: > > \definedescription >[desc] > > \starttext > > \startdesc[title={Long title},reference=foo,referencetext={Short > Title}] > \input jojomayer > \stopdesc &

Re: [NTG-context] Alternative for selector in LMTX for different heading and reference texts for descriptions

2020-12-19 Thread Hans Hagen
[sel][max=2, n=2] \definedescription[desc][headcommand={\setupselector[sel][n=1]}] \starttext \startdesc[title={\select{sel}{Long title}{Short}}, reference=desc]   \input jojomayer \stopdesc \about[desc] \stoptext Hm, I'll check it. Any help is welcome! Actually, what you wa

[NTG-context] Alternative for selector in LMTX for different heading and reference texts for descriptions

2020-12-19 Thread Christoph Reller
={\setupselector[sel][n=1]}] \starttext \startdesc[title={\select{sel}{Long title}{Short}}, reference=desc] \input jojomayer \stopdesc \about[desc] \stoptext Any help is welcome! Cheers, Christoph ___ If your question

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Wolfgang Schuster
] \starttest[title={This is a title}] \input ward \stoptest \starttest[title={This is another title}, list={This is in the 2nd list}] \input ward \stoptest just cheat: \starttest[title={This is another title}, list={This is in the 2nd list},after={\writetolist[test]{1}{what a cheat

Re: [NTG-context] Quirk with \userpagenumber, datasets and the .tuc file

2020-12-09 Thread Hans Hagen
[MyDS] [ title={Test title}, page={\userpagenumber}, ] \stoptext In the TUC file I get: utilitydata.job.datasets.collected={ ["MyDS"]={ { ["index"]=1, ["order"]=1, ["page"]="1\\relax &q

[NTG-context] Quirk with \userpagenumber, datasets and the .tuc file

2020-12-09 Thread Bruce Horrocks
Here's an odd quirk... I wanted to get at some of my dataset data for use outside of ConTeXt so I thought I would just extract it from the .tuc file. MWE: \definedataset [MyDS][delay=yes] \starttext \input tufte \setdataset [MyDS] [ title={Test title}, page={\userpagen

[NTG-context] Spacing in s-pre-50 (or better alternatives)

2020-12-08 Thread Jairo A. del Rio
Hi everyone. I've tried using s-pre-50 for a series of "Beamer-like" presentations. An example: \usemodule[s-pre-50] \starttext \StartSteps \starttitle[title=Random speak party] \FlushStep \input jojomayer \FlushStep Cows and lovebirds are nice. \FlushStep Food smells weird

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Aditya Mahajan
t; > > \starttext > > > > > > \placelist[test][criterium=all] > > > > > > \starttest[title={This is a title}] > > >\input ward > > > \stoptest > > > > > > \starttest[title={This is another title}, list={This is in th

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Aditya Mahajan
Hi, On Tue, 8 Dec 2020, Hans Hagen wrote: > On 12/8/2020 8:47 AM, Aditya Mahajan wrote: > > \usemodule[annotation] > > > > \defineannotation[test][alternative=paragraph] > > > > \starttext > > > > \placelist[test][criterium=all] > > > &g

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-08 Thread T. Kurt Bond
ation={footer,middle}] \setupwhitespace[quarterline] \setupbodyfont[pagella,9pt] \definepapersize[digest][width=5.5in,height=8.5in] \setuppapersize[digest] \starttext \startplacetable[location=force,title={Stun Levels}] \definecolor[back-3][r=.8,g=.8,b=.8] \setupTABLE[background=color,frame=off,frame

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Hans Hagen
On 12/8/2020 8:47 AM, Aditya Mahajan wrote: \usemodule[annotation] \defineannotation[test][alternative=paragraph] \starttext \placelist[test][criterium=all] \starttest[title={This is a title}] \input ward \stoptest \starttest[title={This is another title}, list={This is in the 2nd list

[NTG-context] Automatically setting the value of list key in annotation module

2020-12-07 Thread Aditya Mahajan
Hi, In the annotation module, is it possible to automatically set the value of the `list` key to be the same as the value of `title` key (as is the case with \startsection, for example). Here is a non-working example: \usemodule[annotation] \defineannotation[test][alternative=paragraph

[NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Damien Thiriet
Hi, \setuphead[subject] [page={yes,right}] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext makes the job on ConTeXt online, but doesn't with my lmtx version. Did the syntax change in lmtx? Best re

[NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Damien Thiriet
Hi, The following MWE does not give the output I expect, that is subject starting on page 1 and 3. What did I miss? \setuphead[subject] [page=right] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext Damien Thiriet

Re: [NTG-context] Can I caption a table without using something that makes it float?

2020-12-05 Thread T. Kurt Bond
Oh, after looking at some examples I found that \startplacetable[location=force,title={Caption Text}] places the table without the extra vertical space, as long as there wasn't a \setupalign[line] ! On Sat, Dec 5, 2020 at 11:01 PM T. Kurt Bond wrote: > If I use \placetable or startpl

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Bruce Horrocks
bookmarks[chapter] in my doc and all is fine except that I'd >>>> like to force an extra bookmark at the top of the list that jumps to the >>>> cover page. However there is no chapter title, or other built in style on >>>> the cover. >>>> >&g

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Hans Hagen
ps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no error, no bookmark. Any suggestions please? There's no need to bookmark to a specific point - just going to page 1 would

Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
>> cover page. However there is no chapter title, or other built in style on >> the cover. >> >> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no >> error, no bookmark. >> >> Any suggestions please? There's no need to bookma

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Hans Hagen
On 12/1/2020 6:55 PM, Otared Kavian wrote: Hi Wolfgang, Thank you for your explanations: I am wondering whether this kind of information could go into the wiki, and if yes what would be an appropriate title for that page (of course I'll do it). However the two commands \inputfiles

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi Wolfgang, Thank you for your explanations: I am wondering whether this kind of information could go into the wiki, and if yes what would be an appropriate title for that page (of course I'll do it). However the two commands \inputfilesuffix \jobfilesuffix put inside the file « myfil

Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Henning Hraban Ramm
> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : > > I have \placebookmarks[chapter] in my doc and all is fine except that I'd > like to force an extra bookmark at the top of the list that jumps to the > cover page. However there is no chapter title, or other built in s

[NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
I have \placebookmarks[chapter] in my doc and all is fine except that I'd like to force an extra bookmark at the top of the list that jumps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but no

Re: [NTG-context] Problem with gnuplot-module in lmtx

2020-11-27 Thread Christian Prim
was undefined. > > > mtx-context | fatal error: return code: 256 > > here is the code: > > gnuplot.tex: > \usemodule[gnuplot] > > \starttext > \externalfigure[sin.gp][conversion=svg,width=4cm] > \stoptext > > sin.gp: > set format xy "$%g$" > &

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
doc] section section \stopbuffer \startxmlsetups xml:name \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{document}{xml:name:*} \stopxmlsetups \xmlregistersetup{xml:name} \startxmlsetups xml:name:document \Title{inside xml:name:document} \Title{TeX} \Mea

[NTG-context] Problem with gnuplot-module in lmtx

2020-11-25 Thread Christian Prim
s the code: gnuplot.tex: \usemodule[gnuplot] \starttext \externalfigure[sin.gp][conversion=svg,width=4cm] \stoptext sin.gp: set format xy "$%g$" set title 'This is a plot of $y=\\sin(x)$' set xlabel 'This is the $x$ axis' set ylabel 'This is the $y$ axis'

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm
> Am 24.11.2020 um 22:38 schrieb Wolfgang Schuster > : > > Jannik Voges schrieb am 24.11.2020 um 22:24: >> Hello, >> as the title suggested, I get an error when using spaces in the argument of >> \startproduct. For example typesetting >> \startproduct{foo ba

[NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Jannik Voges
Hello, as the title suggested, I get an error when using spaces in the argument of \startproduct. For example typesetting \startproduct{foo bar} \starttext foo \stoptext \stopproduct results in an error: tex error > tex error on line 2 in file ./foo bar.tex: Too many

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
> On 24 Nov 2020, at 22:26, Aditya Mahajan wrote: > > On Tue, 24 Nov 2020, Bruce Horrocks wrote: > >> The following is giving me a section title with triple underbars instead of >> single. >> >> \definehead [Heading] [section] >> \setuphead [Headin

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Aditya Mahajan
On Tue, 24 Nov 2020, Bruce Horrocks wrote: > The following is giving me a section title with triple underbars instead of > single. > > \definehead [Heading] [section] > \setuphead [Heading] [style={\underbar}] Change this to: \setuphead [Heading] [textcommand={\underbar}

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Wolfgang Schuster
Jannik Voges schrieb am 24.11.2020 um 22:24: Hello, as the title suggested, I get an error when using spaces in the argument of \startproduct. For example typesetting \startproduct{foo bar} You can have a filename with a space use \startproduct [foo bar] but you don't even nee

[NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
The following is giving me a section title with triple underbars instead of single. \definehead [Heading] [section] \setuphead [Heading] [style={\underbar}] \starttext \Heading{First level section heading} \underbar{This is single underlined as expected} \stoptext (Same with \startHeading

Re: [NTG-context] Adding Custom PDF Property

2020-11-23 Thread Ramkumar KB
rties to the document. > > > > From the docs, I can see how to add standard properties (a.k.a headers) > > like Title, Author, Subtitle and Keywords - > > https://wiki.contextgarden.net/Interaction#PDF_Headers > > <https://wiki.contextgarden.net/Interaction#PDF_Heade

Re: [NTG-context] Current LMTX unable to compile file metafun-positioning.tex - error on line 240

2020-11-23 Thread Giulio Bertellini
ack. Giulio B. 234 \startsection[title={A more detailed view}] 235 236 As we know, a decent portion of \TEX's attention is focused on breaking 237 paragraphs into lines and determining the optimal point to split off the page. 238 Trying to locate the optimal points to bre

Re: [NTG-context] Adding Custom PDF Property

2020-11-23 Thread Hans Hagen
On 11/23/2020 11:26 AM, Ramkumar KB wrote: Hello List, I am looking for a way to add custom PDF properties to the document. From the docs, I can see how to add standard properties (a.k.a headers) like Title, Author, Subtitle and Keywords - https://wiki.contextgarden.net/Interaction

[NTG-context] Adding Custom PDF Property

2020-11-23 Thread Ramkumar KB
Hello List, I am looking for a way to add custom PDF properties to the document. >From the docs, I can see how to add standard properties (a.k.a headers) like Title, Author, Subtitle and Keywords - https://wiki.contextgarden.net/Interaction#PDF_Headers But I would like to add my own custom N

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
, background=color, backgroundcolor=white, ] %%% \defineenumeration[proclaim] [text=, before={\starttextbackground[leftbartext]}, after={\stoptextbackground}, style=slanted, title=yes, titleleft=, titleright

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext

[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
[subfigure] [numberconversion=characters, numberstopper=)] \setuplabeltext [subfigure=] \definecounter [subfigure] [way=bytext] \starttext \startplacefigure [title=First, reference=first] \startfloatcombination [nx=2, ny=1] \startplacesubfigure \externalfigure \stopplac

Re: [NTG-context] Index formatting difference LMTX and MkIV redux

2020-11-17 Thread Rik Kabel
,    cutspace=1in,   leftmargin=0.65in,  rightmargin=0.65in] \setupregister   [index] [n=2, balance=no, maxwidth=4cm] \starttext \startchapter[title={Index Test}] \index{Anonymous+Felix quem faciunt aliena pericula cautum} \index

[NTG-context] format error with latest 2020-11-16 19:40 with mkiv (luatex)

2020-11-16 Thread Adam Reviczky
f_checkinjector{#1}{#2}} 39 %D \placeregister[index][criterium=text] 40 %D \page 41 %D \startsection[title=Alpha] first \index{first} \stopsection 42 %D \startsection[title=Beta] second \index{second} \stopsection 43 %D \startsection[title=Gamm

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Willi Egger
I would like to learn "how to ConTeXt" complex titles styles like the one >> seen in the following document: >> - https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png >> - source document: >> https://www.hautconseilclimat.fr/wp-content/upload

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Pablo Rodriguez
On 11/15/20 7:53 PM, Garulfo wrote: > [...] > Initial PDF document: > https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf > [...] > ConTeXt output : > https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreint

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Garulfo
ilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf 1. doublesided document 2. on both side, section title are underlined by a red rule, always "left aligned" in the text area, shifted to the right by the same distance than it is done for the te

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
ns,small]\emph{Fuente:}~#1\par\stop} > > \starttext > \reference[tbl:t03]{}% > \startplacetable[title={Composición química y valor energético de recursos > forrajeros de corte en el área de influencia del Subproyecto Carne Bovina > (trópico de altura).}] > \startxtable[option=tight,b

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

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, Sylvain Hubert wrote: > Indeed. Thanks for the information! > > For the record, this is how the problem is finally solved: > > \setuphead[section][after={\blank[sampage]}] > \begingroup\setupindenting[no]\dontleavehmode\startxtable … > \stopxtable\endgroup Unless you

[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 Andres Conrado Montoya
:}~#1\par\stop} \starttext \reference[tbl:t03]{}% \startplacetable[title={Composición química y valor energético de recursos forrajeros de corte en el área de influencia del Subproyecto Carne Bovina (trópico de altura).}] \startxtable[option=tight,bodyfont=7pt] \startxtablehead[head] \star

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

2020-11-10 Thread Sylvain Hubert
amepage]\hskip 0pt}] > > \starttext > > \showframe > > \dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > > > What happens when you \hskip is that you switch to horizontal > mode and the preferred to do this is to use \dontlea

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

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 19:11: Weirdly enough, "\hskip 0pt" solves the problem.     \setuphead[section][after={\blank[samepage]\hskip 0pt}]     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec]     \startxtable What happens when

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] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
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 is at the top of the page:     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec][before={\blank[preference

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, the section

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

2020-11-10 Thread Sylvain Hubert
dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > Hi Sylvain, > > no fix is required when you allow the table to be split: > > \startxtable[split=yes] > > Pablo > Hi Pablo, Thanks for the suggestion, but unlike the MWE, in the o

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

2020-11-10 Thread Wolfgang Schuster
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, the section title appears at the very end of the first page. [...] Does anyone know where to adjust the penalty in this case, so that the section title can be

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

2020-11-10 Thread Pablo Rodriguez
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 >     \dorecurse{50}{a } >     \startsection[title=spec] >     \startxtable Hi Sylvain,

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

2020-11-10 Thread Sylvain Hubert
My mistake, but the problem survives the fix: \setuphead[section][after={\blank[samepage,big]}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow

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

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

2020-11-10 Thread Pablo Rodriguez
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 to adjust the penalty in this case, so that the > section title can be repositioned to the n

[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
a b c} > > > > The naive way doesn't work because it makes all the spaces collapse: > > > > \define[1]\same{#1} > > > \definetype [typeTEX] [option=tex] > > \starttext > &

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

2020-11-08 Thread Wolfgang Schuster
lapse:     \define[1]\same{#1} \definetype [typeTEX] [option=tex] \starttext \type{\startsection[title=\tex{type}]} \typeTEX{\startsection[title=\tex{typeTEX}]} \stoptext Wolfgang ___ If your question is of interest to o

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: > > > > \st

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

2020-11-08 Thread Wolfgang Schuster
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     \section{a}     \blank[-2cm,force]\ \blank[back,disable] Wol

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

2020-11-07 Thread Henning Hraban Ramm
> 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: > > \starttext > \section{a} > \blank[-2cm,force]\ > \section{b} > \section{c} > \stoptext >

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

Re: [NTG-context] \section with userdata

2020-11-07 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 07.11.2020 um 22:42: 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]. You get

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 Wolfgang Schuster
Sylvain Hubert schrieb am 07.11.2020 um 20:32: 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

[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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
> > Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a): > #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] > #\st

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

2020-11-05 Thread mf
Il 05/11/20 13:26, Sylvain Hubert ha scritto: 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 \blank[.25\paperh

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

2020-11-05 Thread Tomas Hala
\blank[5*big] %\blank[20cc] foo \stoptext Maybe it will help you. The best, Tomáš Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a): #Dear List, #I'm trying to put the document title at around .25\paperheight by #inserting a \blank: #    \setuplayout[topspac

[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

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 understa

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

2020-11-04 Thread Hans Hagen
complete and consistent interface between tex and lua unless it would harm the functionality. it would harm performance because it involves parsing all values and also ways around cases where the title is "function" (lieral text). anyway, chapter (section) titles go tinto a toc

[NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-03 Thread Garulfo
nt 2. on both side, section title are underlined by a red rule, always "left aligned" in the text area, shifted to the right by the same distance than it is done for the text of the title, which ends at the right border of the page 3. on the left page : section title are overli

Re: [NTG-context] Running mtxrun in a continuous batch mode

2020-11-03 Thread Ramkumar KB
tab['documentName'])} > > > > Any tips or pointers would be much appreciated. > foo.cld : > > require("util-jsn") > > -- local str = io.loaddata("somefile.json") > > local str = [[ { > "title": "Some JSON", > &q

[NTG-context] How to reproduce a particular head/title style

2020-11-03 Thread Garulfo
o describe the specification here : doublesided document on both side, section title are underlined by a red rule, always "left aligned" in the text area, shifted to the right by the same distance than it is done for the text of the title, whi

Re: [NTG-context] Running mtxrun in a continuous batch mode

2020-11-03 Thread Hans Hagen
require("test-json") \stopluacode The name of the document is \ctxlua{tex.print(tab['documentName'])} Any tips or pointers would be much appreciated. foo.cld : require("util-jsn") -- local str = io.loaddata("somefile.json") local str = [[ { &qu

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

2020-11-02 Thread Jairo A. del Rio
Sorry. What I meant is: when you use context.setuphead({'chapter'}, {title="Some text"}) at the Lua end, {'chapter'} and {title="Some text"} (notice "Some text" is a string, not a function) are Lua tables. TeX will print "Some text",

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

2020-11-02 Thread Sylvain Hubert
; for m = 1, 3 do > > context.setuphead({'chapter'}, {before='hello'}) > > context.startchapter({title="I'm a chapter!"}) > > for i = 1, 3 do > > context.input("knuth") > > end > > context.stopchapter() > >

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

2020-11-02 Thread Jairo A. del Rio
de.nl/general/manuals/cld-mkiv.pdf): \starttext \startluacode --First example for m = 1, 3 do context.setuphead({'chapter'}, {before='hello'}) context.startchapter({title="I'm a chapter!"}) for i = 1, 3 do context.input("knuth") end context.stopch

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

2020-11-01 Thread Hans Hagen
27;m referring to a proper use of the existing definition of "\chapter" instead of any faked duplication of it that visually resembles a chapter title. by design \ctxlua{context.chapter(context.delayed("one"))} \setuphead[chapter][exp

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

2020-11-01 Thread Sylvain Hubert
nstead of any faked duplication of it that visually resembles a chapter title. Thanks in advance. Best, Sylvain ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-

Re: [NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Otared Kavian
rse{5}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \startcolor[white] a \stopcolor \index{Something}\index{A\recurselevel} } \stopchapter } \completeindex \stoptext Best regards: OK > On 31 Oct 2020, at 17:56, Henning Hraban Ramm wrote: >

[NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Henning Hraban Ramm
didn’t help. The MWE shows that index entries in empty sections are ignored, i.e. “Something” is supposedly only on p.6: \usemodule[visual] \starttext \dorecurse{5}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \index{Something}\index{A

[NTG-context] [save] [setmatrix] [restore] and [latelua] messages on terminal

2020-10-30 Thread Aditya Mahajan
them. Here is a minimal example for the second message and I can also try to create one for the first: \starttext \startframedtext \startTABLE \NC \input knuth \NC[nr=2] \iftrialtypesetting\else\startplacefigure [location={right,high}, title={Blah blah blah

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
\starttext \startchapter[title={Introduction}] Someone who asks to a textbook in Philosophy to replace his own personnal thoughts and the necessary personnal self-education rooted within his own readings, \quote{would fail his own education}\footnote{\cite[alternative=entry][philosophie moderne

Re: [NTG-context] font rendering in bibliography

2020-10-27 Thread Denis Maier
with italics in the title of bibliographical references (I use a Jabref file along with ConTeXt). The title of books should be in italics, but it appears right now in the regular face. Do you have any idea of what it may be the origin of this problem ? Maybe it is within Jabref configuration t

Re: [NTG-context] font rendering in bibliography

2020-10-27 Thread Jano Kula
Hello, On Tue, 27 Oct 2020 at 12:15, Xenos Athenaios wrote: > > Dear ConTeXt fellows, > > With ConTeXT ConTeXt Process Management 1.03 > current version: 2020.09.20, I encounter some issue with italics in the > title of bibliographical references (I use a Jabref file along wi

<    7   8   9   10   11   12   13   14   15   16   >