[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
[medium]}, alternative=serried, right=, headcommand=\groupedcommand{}{.}, distance=0.5em, width=fit, headstyle=bold, titlestyle=bold, way=bytext, conversion=numbers, prefix=chapter, list=all, title=yes, indentnext=no, ] \defineenumeration[definition][ text=Defintion, style

[NTG-context] Key distance with enumeration

2023-07-27 Thread Fabrice Couvreur
=, titlestyle=normal, prefix=no, prefixsegments=chapter, way=bychapter, prefixconversionset=digit, counter=, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=broad] \defineenumeration [definition] [text

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
] \setuplayout [width=12cm, rightmargin=60mm] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5em, title=yes, titleleft=, titleright=, titlestyle=normal, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand

Re: [NTG-context] underbar aligns badly

2022-08-31 Thread Mikael Sundqvist via ntg-context
On Wed, Aug 31, 2022 at 9:45 AM Jan Ulrich Hasecke via ntg-context wrote: > > Am Wed, Aug 31, 2022 at 09:30:33AM +0200 schrieb juh+ntg-context--- via > ntg-context: > > Now in node-rul.mkxl I have this: > > > > \protected\def\node_rules_direct#1% > > {\grou

Re: [NTG-context] underbar aligns badly

2022-08-31 Thread Jan Ulrich Hasecke via ntg-context
Am Wed, Aug 31, 2022 at 09:30:33AM +0200 schrieb juh+ntg-context--- via ntg-context: > Now in node-rul.mkxl I have this: > > \protected\def\node_rules_direct#1% > {\groupedcommand > {\dontleavehmode % this should not be needed but it is in \bTD > {\node_rules_set{#

Re: [NTG-context] underbar aligns badly

2022-08-31 Thread juh+ntg-context--- via ntg-context
wrote: Hi all, can nobody confirm this bug? in: \protected\def\node_rules_direct#1% {\groupedcommand {\dontleavehmode % this should not be needed but it is in \bTD \node_rules_set{#1}% add a % after that line and remake the format sorry I don't find the right file to do

Re: [NTG-context] underbar aligns badly

2022-08-31 Thread Mikael Sundqvist via ntg-context
all, > >> > >> can nobody confirm this bug? > > in: > > > > \protected\def\node_rules_direct#1% > >{\groupedcommand > > {\dontleavehmode % this should not be needed but it is in \bTD > >\node_rules_set{#1}% > > > > add a

Re: [NTG-context] underbar aligns badly

2022-08-31 Thread juh+ntg-context--- via ntg-context
Dear Hans, thanks a lot, but... Am 27.08.22 um 08:54 schrieb Hans Hagen via ntg-context: On 8/27/2022 8:46 AM, Jan Ulrich Hasecke via ntg-context wrote: Hi all, can nobody confirm this bug? in: \protected\def\node_rules_direct#1%   {\groupedcommand {\dontleavehmode % this should

Re: [NTG-context] underbar aligns badly

2022-08-27 Thread Hans Hagen via ntg-context
On 8/27/2022 8:46 AM, Jan Ulrich Hasecke via ntg-context wrote: Hi all, can nobody confirm this bug? in: \protected\def\node_rules_direct#1% {\groupedcommand {\dontleavehmode % this should not be needed but it is in \bTD \node_rules_set{#1}% add a % after that line and remake

[NTG-context] How to reset settings in setuphead back to defaults?

2022-08-21 Thread Joel via ntg-context
, placehead=yes, expansion=yes, page=yes,                         numbercommand=\groupedcommand{}{\blank[1cm]},                         alternative=middle,                         numberstyle=ssl,                         numbercolor=white,                         strut=yes,                         page

Re: [NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
, > >title=yes, > >titleleft=, > >titleright=, > > titlestyle=normal, > >prefix=yes, > >prefixsegments=chapter, > >way=bychapter, > >headcommand=\groupedcommand{}{.}, > >numbercommand=\groupedcommand{}{}, > >

Re: [NTG-context] Special numbering

2022-08-17 Thread Aditya Mahajan via ntg-context
alternative=serried, >distance=0.5em, >title=yes, >titleleft=, >titleright=, >titlestyle=normal, >prefix=yes, > prefixsegments=chapter, >way=bychapter, > headcommand=\groupedcommand{}{.}, >numbercommand=\group

[NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
, prefixsegments=chapter, way=bychapter, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=broad] \defineenumeration [definition] [text=Définition, number=yes, style=italic] \defineenumeration [proposition

[NTG-context] Numbercommand and title

2022-08-12 Thread Fabrice Couvreur via ntg-context
] [] [n] \setupheads[sectionconversionset=structure] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5em, title=yes, titleleft=, titleright=, titlestyle=normal, numbercommand=\groupedcommand{}{.}, titlecommand=\groupedcommand

[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.

2022-05-10 Thread Zhichu Chen via ntg-context
\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}}     \protected\def\nocasing {\groupedcommand{\setcharactercasing[reset]}{}}     \setuphead[chapter][textstyle=\WORD]     \chapter{some \nocasing{kept} text or \casing[Word]{more} text}

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Willi Egger via ntg-context
e[a]% > \definefontsize[b]% > \definefontsize[c]% > \definefontsize[l]% > \setupbodyfontenvironment[default]% >[% >a=1.200, >b=1.440, >c=1.728, >l=8.916 >]% > % > > \setuplabeltext[chapter=\strut] > \setuphead[chapter][style=

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Taco Hoekwater via ntg-context
ally big chapter number >> === <-- there is a border created by a background image between >> these >>How to keep <--chapter title >> fish >> >> This is the article <-- the article begins about how to keep fish >>

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Denis Maier via ntg-context
; - > > \definefontsize[a]% > \definefontsize[b]% > \definefontsize[c]% > \definefontsize[l]% > \setupbodyfontenvironment[default]% > [% > a=1.200, > b=1.440, > c=1.728, > l=8.916 > ]% > % > >

Re: [NTG-context] Is there a "smart" capitalisation implementation?

2022-05-08 Thread Hans Hagen via ntg-context
\NoCaseChange#1{\noexpand\NoCaseChange{\noexpand#1}} \starttext \protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}} \protected\def\nocasing {\groupedcommand{\setcharactercasing[reset]}{}} \setuphead[chapter][textstyle=\WORD] \chapter{some \nocasing{kept} text

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
\ssc,placehead=yes,expansion=yes,page=yes, numbercommand=\groupedcommand{}{\blank[1cm]}, alternative=middle, numberstyle=ssl, numbercolor=green, strut=yes] \starttext \completecontent \chapter{Test} \input knuth \chapter{Test} \input knuth \stoptext The problem I'm fa

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
[b]% \definefontsize[c]% \definefontsize[l]% \setupbodyfontenvironment[default]% [% a=1.200, b=1.440, c=1.728, l=8.916 ]% % \setuplabeltext[chapter=\strut] \setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes, numbercommand=\groupedcommand{}{\blank[1cm

[NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-07 Thread Joel via ntg-context
     c=1.728,         l=8.916     ]% % \setuplabeltext[chapter=\strut] \setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes, numbercommand=\groupedcommand{}{\blank[1cm]}, alternative=middle, numberstyle=ssl, numbercolor=green, strut=yes] \starttext     \completecontent          \

Re: [NTG-context] Proper formatting of itemized bullets in ConTeXt

2022-04-12 Thread śrīrāma via ntg-context
xample \defineitemgroup [pitemize] [command=\Word] \define\citem{% \incrementnumber[itemgroup:pitemize]% \sym{\symbol[\currentitemgroupsymbol]}% \groupedcommand{}{,}% } \define\pitem{% \incrementnumber[itemgroup:pitemize]% \sym{\symbol[\currentitemgroupsymbol]}%

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-31 Thread Mikael Sundqvist via ntg-context
: > Can solve with > > > \defineenumeration[remark][ > alternative=serried, > width=fit, > text={{\it Remark}}, > headstyle=\tf, > indenting={first,medium}, > %headcommand=\groupedcommand{\hskip 1em}{}, > ] > > > Mikael Sundqvist via ntg-context 於 2

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread fv leung via ntg-context
Can solve with \defineenumeration[remark][ alternative=serried, width=fit, text={{\it Remark}}, headstyle=\tf, indenting={first,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] Mikael Sundqvist via ntg-context 於 2021年12月31日 週五 上午4:55寫道: > Hi, > > I have two questio

[NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread Mikael Sundqvist via ntg-context
orrect way to (in the example below) get Remark in italic and the number upright? /Mikael \defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] \starttext \samplefile{tufte} \startremark

Re: [NTG-context] Problem with \head inside \itemize

2021-12-23 Thread Benjamin Buchmuller via ntg-context
bla bla. >> >> From: >> >> \setupitemize[each][2, headintext] >> % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}] >> \setupitemize[each][headcolor=red, headstyle=bold] >> >> \startitemize >> \item Unformatted item. >>

Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Wolfgang Schuster via ntg-context
. – Unformatted item. – *Head One.* Something bla bla. – *Head Two.* Other bla bla. From: \setupitemize[each][2, headintext] % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}] \setupitemize[each][headcolor=red, headstyle=bold] \startitemize \item Unformatted item. \head Head

Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Benjamin Buchmuller via ntg-context
Not sure if this is the behavior to expect, but I would like to get formatted inline headers in itemize like: – Unformatted item. – *Head One.* Something bla bla. – *Head Two.* Other bla bla. From: \setupitemize[each][2, headintext] % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space

Re: [NTG-context] descriptions -- symbol between head and text

2021-12-15 Thread Denis Maier via ntg-context
, headcommand=\groupedcommand{[BEFORE] }{ [AFTER]}] \starttext \startdeflist{Knuth} \input knuth \stopdeflist \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] descriptions -- symbol between head and text

2021-12-14 Thread Wolfgang Schuster via ntg-context
,    width=fit,    headcommand=\groupedcommand{[BEFORE] }{ [AFTER]}] \starttext \startdeflist{Knuth} \input knuth \stopdeflist \stoptext Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Switching to righttoleft without changing margins of delimited text

2021-12-13 Thread Denis Maier via ntg-context
tter way. Any hints? You switch directions when we're still in vertical mode, so you need: \startblockquote \dontleavehmode\righttoleft\ignorespaces \input knuth \stopblockquote I can add this: \permanent\protected\def\rtltext {\groupedcommand{\dontleavehmode\righttoleft\ignorespaces}\remove

Re: [NTG-context] Switching to righttoleft without changing margins of delimited text

2021-12-13 Thread Hans Hagen via ntg-context
={\righttoleft}] But maybe there’s a better way. Any hints? You switch directions when we're still in vertical mode, so you need: \startblockquote \dontleavehmode\righttoleft\ignorespaces \input knuth \stopblockquote I can add this: \permanent\protected\def\rtltext {\groupedcommand

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
] ... \endcomponent end component begin environment \startenvironment[terminale-style] ... \startsetups [section:chapter] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
ot? > > It would make sense that the fancy chapter doesn’t appear only compiling > a chapter. I guess there is no \startbodymatter...\stopbodymatter > wrapping it. > > Another approach would be: > > \setuphead > [chapter] >[align=flushright, >

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
[align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \setuphead [title] [header=empty, align=, textc

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
y book. >> > How can I prevent this header from appearing on the page with the table >> > of contents ? >> >> Hi Fabrice, >> >> a simple way would be: >> >> \startsectionblockenvironment[bodypart] >> \setuphead >>

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
> \setuphead >[chapter] >[align=flushright, > textcommand=\groupedcommand{\blank[medium]}{}, > numbercolor=darkgray, > textstyle=ChapterTextStyle, > numberstyle=ChapterNumberStyle, > before=\startChapterFrame, > aft

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
ents ? Hi Fabrice, a simple way would be: \startsectionblockenvironment[bodypart] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberSty

Re: [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context
or me: \defineenumeration   [test]   [text=,    alternative=serried,    width=fit,    distance=.5em,    numbercommand=\groupedcommand{}{~exemple},    numberconversion=ordinal] \mainlanguage [fr] \starttext \starttest \input knuth \stop

Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context
=,    numbercommand=\groupedcommand{}{~exemple},    numberconversion=ordinal] \mainlanguage [fr] \starttext \starttest \input knuth \stoptest \starttest \input knuth \stoptest \stoptext Wolfgang ___ If your question

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-28 Thread Fabrice Couvreur via ntg-context
; text={dummy text}, > titleleft=, >titleright=, > headcommand=\groupedcommand{[}{]}, > numbercommand=\groupedcommand{(}{)}, > titlecommand=\groupedcommand{<}{>}] > > \starttext > > \startgrouptest [title={dummy title}] > \un

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context
[grouptest] [title=yes, text={dummy text}, titleleft=, titleright=, headcommand=\groupedcommand{[}{]}, numbercommand=\groupedcommand{(}{)}, titlecommand=\groupedcommand{<}{>}] \starttext \startgrouptest [title={dummy title}] \unknown \stopgro

[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
=\groupedcommand{}{\bf.}, width=broad] \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=italic] \starttext \startdefinition{With a title} \samplefile{lorem} \stopdefinition Without title but no dot after the name

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Hans Hagen via ntg-context
, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdéfinition Soit E un ensemble fini. Le cardinal de E, noté \card{E}, est le nombre d'éléments de E. En particulier, nous avons \m{\card{\emptyset}=0}. \stopdéfinition \stoptext Thank

[NTG-context] Macro that does not work in an environment

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello, How to make the macro work in the environment definition ? Thank you Fabrice \unexpanded\def\card#1{\math{\text{Card}\thinspace#1}} \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
, number=yes, numbercommand=\groupedcommand{}{.}, style=italic] \defineenumeration [solution] [text=Solution, headcommand=\ACFRAME, number=no, numbercommand=\groupedcommand{}{}, style=normal] \starttext \startexercice{Le nombre d'or est irrationnel} Le nombre

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
foregroundstyle=] > > > \setupenumerations > [before={\blank}, >after={\blank}, >alternative=top, >title=yes, >titleleft={}, >titleright={}, >titlestyle=bold, >width=broad] > > \defineenumeration >[exercice]

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
={}, titlestyle=bold, width=broad] \defineenumeration [exercice] [text=Exercice, number=yes, numbercommand=\groupedcommand{}{.}, style=italic] \defineenumeration [solution] [text=Solution, headcommand=\ACFRAME, number=no, numbercommand=\groupedcommand{}{}, style

Re: [NTG-context] Header for a book

2021-07-13 Thread Wolfgang Schuster
apterframe] [\useMPgraphic{chapterframe}] \defineframedtext [ChapterFrame] [frame=off, background=chapterframe, width=max, height=6cm, after={\blank[2*line]}, offset=0pt] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray,

[NTG-context] Macro to write a letter with \ mathscript{}

2021-04-17 Thread Fabrice Couvreur
] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=slanted] \setupmathematics[stylealternative=calligraphic] \unexpanded\def\CScript#1#2{\start\switchtobodyfont[stixtwo]\m{{\mathscript{#1}}_{#2}}\stop} \unexpanded\def\cscript#1{\start\switchtobodyfont[stixtwo]\m

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
={)}, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=normal] \starttext \startdefinition \input knuth \stopdefinition

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

2020-11-08 Thread Sylvain Hubert
rrent > > 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. > > > \setuppagenumbering

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

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 2:58 AM, Sylvain Hubert wrote: > 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{pag

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

2020-11-08 Thread Wolfgang Schuster
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=current page number, n=total number of page? I've tried     \setuppagenumbering[location=footer, command=\groupedcommand{page }{/\lastcounte

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

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread Hans Hagen
On 9/2/2020 11:10 AM, mf wrote: Thanks Hans, this solves the problem I had with the new implementation of \wordright. It's not exactly a problem of \wordright, but the combination with \groupedcommand. that is always tricky as what happens is postponing till the group ends but wordright now

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread mf
Thanks Hans, this solves the problem I had with the new implementation of \wordright. It's not exactly a problem of \wordright, but the combination with \groupedcommand. Is \nextbox a new entry of latest versions? I've seen also \nextboxwd, \nextboxht, etc. So you can measure the next box

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread Hans Hagen
On 9/1/2020 5:47 PM, mf wrote: \unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright} \def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup} {\egroup\ifdim\wd\scratchbox < \hsize     \wordright{\unhbox\scratchbox}   \e

[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread mf
width is more than \hsize, then it ends the current paragraph and starts a right-aligned paragraph with the argument There are two implementations in the MWE: one is through \groupedcommand, and that's the one that worked once and doesn't now

Re: [NTG-context] Chapter heading with rules

2020-08-21 Thread Otared Kavian
ChapterRule] > [left=\zerowidthnobreakspace, >right=\quad] > > \definefiller > [ChapterRightRule] > [ChapterRule] > [left=\quad, >right=\zerowidthnobreakspace] > > \setuphead > [chapter] > [%align=middle, >textstyle={\setcharac

[NTG-context] Chapter heading with rules

2020-08-20 Thread jbf
]   [%align=middle,    textstyle={\setcharactercasing[WORD]\ssa}, textcommand=\groupedcommand{\filler[ChapterLeftRule]}{\filler[ChapterRightRule]}] \starttext \chapter{My Chapter Title} \stoptext Julian ___ If your question

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
le#1#2{\framed[frame=off,width=fit,align=flushleft] {#1\blank#2}} \setuphead[chapter] [style=\bfd, align={flushleft,broad}, command=\Title, textcommand=\MyNumber, numbercommand=\groupedcommand{}{\MyNumber}, number=no] \starttex

Re: [NTG-context] headers again

2020-08-12 Thread jbf
=empty,alternative=middle,style=\tfa, numbercommand=\groupedcommand{}{\blank[1cm]},after={\blank[3cm]},command=\MyChapter] Give that I was now no longer using MyChapter to solve the problem, that command=\MyChapter was causing a conflict. I removed it and, using your earlier \setupheadertexts

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
, conversion=Romannumerals, numbercommand=\groupedcommand{\blank[20mm]}{\blank[10mm]}, after={\blank[3cm]}, ] \setupheadtext[content=] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{whatever} \hfill \getmarking[chapter] \hfill

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
old, >width=broad] > > \defineenumeration >[definition] >[text=Définition, > number=yes, > headcommand=\groupedcommand{}{.}, > style=italic] > > \starttext > > \startdefinition > \blank > \startxtable[align={lohi,middle},w

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
ve=serried, >title=yes, >titleleft=, >titleright=, >prefix=yes, >prefixsegments=chapter, >way=bychapter, >titlestyle=bold, >width=broad] > > \defineenumeration > [definition] >[text=Définition, > number=

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdefinition \blank \startxtable[align

Re: [NTG-context] help with confusion re chapter number

2020-07-09 Thread Aditya Mahajan
,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]},command=\MyChapter] What happens if you remove `numbercommand=...,`? Aditya___ If your question is of interest to others as well, please add

[NTG-context] help with confusion re chapter number

2020-07-09 Thread jbf
=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]},command=\MyChapter] Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

[NTG-context] Vertical space between label and title

2020-07-07 Thread Fabrice Couvreur
=\groupedcommand{}{.}, style=italic] \starttext \startchapter [title=Nombres complexes : point de vue algébrique] \startdefinition \input zapf \stopdefinition \startdefinition \input zapf \stopdefinition \stopchapter \stoptext

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]}] and then setting up a mychapter as: \definehead[mychapter][chapter] \setuphead[mychapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[.5cm]}] That gives me the result I am after

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
Thanks Wolfgang. Clearly that fixes the problem. I also came up with another solution which avoids the need to define a MyChapterCommand, by first setting up the normal chapter as: \setuphead   [chapter] [header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
> > [text=Propriété, > >title=yes, > >headstyle={bold}, > >alternative=serried, > >style=italic, > >number=no, > >headcommand=\ProprieteHeadcommand, >

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Taco Hoekwater
Headcommand > {\textrule[top]{#1}} > > \defineenumeration > [propriete] > [text=Propriété, >title=yes, >headstyle={bold}, >alternative=serried, >style=italic, >number=no, >headcommand=\ProprieteHeadcommand, >numbercomma

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Otared Kavian
=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext \startpropriete \input ward \stoppropriete \stoptext > On 1 Oct 2019, at 11:09, Fabrice Couvreur wrote: > > Hello, > The top line is in the text, how to fix this problem ? > Thank

[NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
, number=no, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext \startpropriete \input ward \stoppropriete \stoptext ___ If your question is of interest

Re: [NTG-context] weird spacing after command type

2018-10-14 Thread Wolfgang Schuster
. Another way to avoid the space is to create commands which don’t take argument which works only when you have a environment which isn’t delimited (i.e. the environment grabs everything from the start-command to the stop-command). \define\slide{\groupedcommand{\startmakeup[standard]}{\stopmakeup

[NTG-context] Blocks in margin with overflow of text

2018-08-22 Thread Fabrice Couvreur
] [] [n] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, distance=1em, %headcommand=\groupedcommand{}{~---~}, distance=none, prefix=yes, prefixsegments=chapter, way=bychapter, prefixconversionset=digit, titlestyle=bold, width

Re: [NTG-context] Enumerations in an environment

2018-08-13 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 13.08.18 um 12:35: Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand

[NTG-context] Enumerations in an environment

2018-08-13 Thread Fabrice Couvreur
Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand=\groupedcommand{}{:\,}, width=broad

Re: [NTG-context] future versions

2018-07-25 Thread Hans Hagen
, but it is not an acceptable replacement for font switches with pdf output. And since the syntax for highlights ( \highlight{text} ) differs from that for font switches ( {\highlight text} ), it is not simply a matter of different environments for each output format, although perhaps \groupedcommand

Re: [NTG-context] future versions

2018-07-25 Thread Alan Braslau
h pdf output. And since > the syntax for highlights ( \highlight{text} ) differs from that for > font switches ( {\highlight text} ), it is not simply a matter of > different environments for each output format, although perhaps > \groupedcommand might help (I have not tried this). > >

Re: [NTG-context] future versions

2018-07-25 Thread Hans Hagen
for font switches with pdf output. And since the syntax for highlights ( \highlight{text} ) differs from that for font switches ( {\highlight text} ), it is not simply a matter of different environments for each output format, although perhaps \groupedcommand might help (I have not tried

Re: [NTG-context] future versions

2018-07-25 Thread Rik Kabel
the syntax for highlights ( \highlight{text} ) differs from that for font switches ( {\highlight text} ), it is not simply a matter of different environments for each output format, although perhaps \groupedcommand might help (I have not tried this). But that is in some ways beside the point

[NTG-context] Numbering properties in a chapter

2018-07-23 Thread Fabrice Couvreur
}} \setupenumerations[ text=Propriété , title=no, way=bychapter, titlestyle=bold, style=slanted, width=fit, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule ] \defineenumeration[propriete] \starttext

Re: [NTG-context] space sectioning control

2018-06-26 Thread Procházka Lukáš Ing .
agraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second},reference={}]

Re: [NTG-context] space sectioning control

2018-06-25 Thread Wolfgang Schuster
ter.wolfg...@gmail.com> 25. Juni 2018 um 13:41 To number paragraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward

Re: [NTG-context] space sectioning control

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
for your insights and help. Idris \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second},reference={}] \Paragraph\input ward

Re: [NTG-context] space sectioning control

2018-06-25 Thread Wolfgang Schuster
To number paragraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
ters: - -- \unexpanded\def\wordorparagraphright{\dosingleempty\WordOrParagraphRigh t} \def\WordOrParagraphRight[#1]{\groupedcommand{\setbox0\hbox\bgroup} {\egroup\newdimen\myBoxWd\myBoxWd=\wd0 \ifdim\myBoxWd < .7\hsize \wordright{\box0}% \else

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
geleft=\wordorparagraphright\bgroup, pageright=\egroup] \starttext \CONTEXT\index{\ConTeXt} \page \LATEX\index{\LaTeX} \page \CONTEXT\index{\ConTeXt} \page \placeindex \stoptext --- I suppose it's related to the problem that \groupedcommand

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
roup } \unexpanded\def\stopregisterpages{\egroup\origstopregisterpages} \setupregister[index][n=1,alternative=A] \starttext \CONTEXT\index{\ConTeXt} \page \LATEX\index{\LaTeX} \page \CONTEXT\index{\ConTeXt} \page \placeindex \stoptext I've also learned about \groupedcommand, which i did not know

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-09 Thread Wolfgang Schuster
. \setupregister [index] [n=1, alternative=A, textcommand=\groupedcommand{}{\hfill\quad}] Wolfgang MF <mailto:mass...@fastwebnet.it> 9. Mai 2018 um 17:09 Hello list, i'd like moving the page numbers in my index to the right, with a \wordright. \setupregister[index][n=1,alter

Re: [NTG-context] Horizontal line after text in an environment

2018-04-26 Thread Fabrice Couvreur
e >> >> >> \setuptolerance[stretch,verytolerant] >> \useMPlibrary[dum] >> >> >> \define[1]\ProprieteHeadcommand >>{\textrule[top]{#1}} >> >> \defineenumeration >>[propriete] >>[text=Propriété, >> title=yes, >>

Re: [NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Hans Hagen
,    numbercommand=\groupedcommand{}{\nbsp},    after=\textrule] \starttext \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item \input ward \item \input ward \stopitemize \stoppropriete \startpropriete \placefigure[right,none]{}{\externalfigure[dummy

[NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Fabrice Couvreur
] \useMPlibrary[dum] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, style=italic, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Ibn Saeed
ader=12.9mm, footer=9mm, > > location=middle, > > ] > > > > > > \setupbodyfont[Arabic,20pt] > > \setupinterlinespace[line=32pt] > > \setupwhitespace[line] > > > > > > > > \def\TextBig{\switchtobodyfont[Arabic-Regular, rm, 62pt]} > > \d

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-19 Thread Otared Kavian
, 62pt]} > \def\TextNormal{\switchtobodyfont[Arabic-Regular, rm, 24pt]} > \def\TextSmall{\switchtobodyfont[Arabic-Regular, rm, 18pt]} > \def\TextSmaller{\switchtobodyfont[Arabic-Regular, rm, 14pt]} > \def\TextSmallSans{\switchtobodyfont[Arabic-Regular, ss, 12pt]} > > > \setuphead[chapter]

[NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-19 Thread Ibn Saeed
, number=no, numbercommand=\groupedcommand{}{\blank[2*big]}, after={\blank[2*medium]}, ] \starttext \startfrontmatter \startstandardmakeup[ align=r2l, doublesided=no, headerstate=none] \startalignment[middle] \blank[11*small] {\switchtobodyfont[62pt] فتح القوي المتين}\par \blank[7

  1   2   3   >