[NTG-context] Re: How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get an

2024-08-22 Thread Hraban Ramm
t][ page=no, placehead=yes, numbercommand=\groupedcommand{}{.} % Add period after numbers ] \setuphead[chapter][ page=no, numbercommand=\groupedcommand{}{.} % Add period after numbers ] \setuphead[section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][ numbercomma

[NTG-context] How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get any re

2024-08-22 Thread Felix
, numbercommand=\groupedcommand{}{.} % Add period after numbers ] \setuphead[chapter][ page=no, numbercommand=\groupedcommand{}{.} % Add period after numbers ] \setuphead[section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][ numbercommand=\groupedcommand{}{.} % Add

[NTG-context] About a pagination

2024-07-23 Thread Fabrice Couvreur
er:rightpage}] [\prefixedpagenumber] [\prefixedpagenumber] [\directsetup{header:leftpage}] \defineframedtext [ChapterFrame] [frame=on, width=local, height=broad, after={\blank[2*line]}, offset=0pt] \startsetups [section:chapter] \setuphead [chapter] [align=leftright, textco

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-07-01 Thread Gerion Entrup
Am Freitag, 28. Juni 2024, 11:59:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 28.06.2024 um 11:40: > > > Do you know, why the groupedcommand solution does not work? > > The command and the environment which are created by \definestartstop > can't be

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Wolfgang Schuster
Gerion Entrup schrieb am 28.06.2024 um 11:40: Do you know, why the groupedcommand solution does not work? The command and the environment which are created by \definestartstop can't be interchanged when you use the before/after and left/right keys. begin example \usemodule[v

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Gerion Entrup
; >>>> > >>>> \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] > >>>> % This is the wrong way to define such a command as '>' is not part of > >>>> the style. I have left this definition just for comparison with the sol

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-27 Thread Wolfgang Schuster
r way, I know of, would be just a plain def, something like \def{\hl}{\groupedcommand{>\,\switchtobodyfont[tt]}{}}, but actually I want to define a highlight (just with an additional prefix). 1. ConTeXt already uses \hl as name for a existing command. 2. Use \definestartstop: \definestartstop [

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-24 Thread Gerion Entrup
definition just for comparison with the soln below. > > Is there a better way to define a highlight that sets a style (color, font) > > _and_ a prefix (symbol)? > > Another way, I know of, would be just a plain def, something like > > \def{\hl}{\groupedcommand{>

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Wolfgang Schuster
I have left this definition just for comparison with the soln below. Is there a better way to define a highlight that sets a style (color, font) _and_ a prefix (symbol)? Another way, I know of, would be just a plain def, something like \def{\hl}{\groupedcommand{>\,\switchtobodyfont[tt]}{}},

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
command as '>' is not part of the > style. I have left this definition just for comparison with the soln below. Is there a better way to define a highlight that sets a style (color, font) _and_ a prefix (symbol)? Another way, I know of, would be just a plain def, something like \def{\hl}{

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Aditya Mahajan
elow. \definedescription[category][ alternative=top, headstyle=bold, width=broad, ] \definedescription[desc][ width=fit, distance={\widthofstring{~}}, headcommand={\groupedcommand{>\,}{:}}, headstyle=\tt, before={\startpacked}, after={\sto

[NTG-context] Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
: ``` \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] \definedescription[category][ alternative=top, headstyle=bold, width=broad, ] \definedescription[desc][ width=broad, distance={\widthofstring{~}}, headcommand={\groupedcommand{

[NTG-context] Re: Switch number and enumeration text

2024-05-04 Thread Wolfgang Schuster
text=Theorem,   style=italic,   headstyle=bold,   headcommand=\groupedcommand{}{.}, ] \defineenumeration [theorem] [..., text=, stopper=., numbercommand=\groupedcommand{}{ Theorem}, ...] or \defineenumeration [theorem] [..., text=, stopper=., right={ Th

[NTG-context] Re: Switch number and enumeration text

2024-05-03 Thread Henning Hraban Ramm
text=Theorem,   style=italic,   headstyle=bold,   headcommand=\groupedcommand{}{.}, ] \starttext Did you try: text=, stopper={ Theorem}, ? There are so many parameters in https://wiki.contextgarden.net/Command/setupenumeration and https://wiki.contextgarden.net/Command/setupcounter … H

[NTG-context] Switch number and enumeration text

2024-05-03 Thread Jethro Djan
=bold, headcommand=\groupedcommand{}{.}, ] \starttext \chapter{} \section{} \starttheorem This is a theorem \stoptheorem \stoptext Many thanks, Jethro ___ If your question is of interest to others as well, please add an ent

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

2023-08-19 Thread Jethro Djan
blank[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,

[NTG-context] Key distance with enumeration

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

[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-30 Thread Mikael Sundqvist via ntg-context
> >> > >> 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-30 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 not

Re: [NTG-context] underbar aligns badly

2022-08-26 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
}} \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-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
t; - >>1 <--really big chapter number >> === <-- there is a border created by a background image between >> these >>How to keep <--chapter title >>fish >> >> This is the article &

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
the article <-- the article begins about how to keep fish > - > > \definefontsize[a]% > \definefontsize[b]% > \definefontsize[c]% > \definefontsize[l]% > \setupbodyfontenvironment[default]% > [% > a=1.200, > b=1.440, >

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

2022-05-08 Thread Hans Hagen via ntg-context
trick works: \def\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 \no

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
tyle=\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

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
tsize[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{}{\blan

[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
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
h=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 an entry to the Wiki! mai

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 an

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

2021-12-13 Thread Denis Maier via ntg-context
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{\dontleavehmode\righttoleft\ignorespac

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 {\groupedco

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
rence] ... \endcomponent end component begin environment \startenvironment[terminale-style] ... \startsetups [section:chapter] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, number

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

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

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

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

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
[chapterframe] [\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=darkgra

[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
nt > > 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. > > > \setuppagenumbe

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

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 }{/\lastcounter[us

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

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 wordrigh

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 n

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
f its 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 d

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

[NTG-context] Chapter heading with rules

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

[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
er][header=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 \setuph

[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
eader=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]},command=\MyChapter] What happens if you remove `numbercommand=...,`? Aditya___ If your question is of interest

[NTG-context] help with confusion re chapter number

2020-07-09 Thread jbf
iddle,style=bold,numbercommand=\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.

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

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). > > B

Re: [NTG-context] future versions

2018-07-25 Thread Hans Hagen
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 this

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

  1   2   3   4   >