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
,
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
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
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
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
; >>>>
> >>>> \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
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 [
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{>
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]}{}},
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}{
elow.
\definedescription[category][
alternative=top,
headstyle=bold,
width=broad,
]
\definedescription[desc][
width=fit,
distance={\widthofstring{~}},
headcommand={\groupedcommand{>\,}{:}},
headstyle=\tt,
before={\startpacked},
after={\sto
:
```
\definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}]
\definedescription[category][
alternative=top,
headstyle=bold,
width=broad,
]
\definedescription[desc][
width=broad,
distance={\widthofstring{~}},
headcommand={\groupedcommand{
text=Theorem,
style=italic,
headstyle=bold,
headcommand=\groupedcommand{}{.},
]
\defineenumeration [theorem]
[...,
text=,
stopper=.,
numbercommand=\groupedcommand{}{ Theorem},
...]
or
\defineenumeration [theorem]
[...,
text=,
stopper=.,
right={ Th
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
=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
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,
right=,
titlestyle=normal,
prefix=no,
prefixsegments=chapter,
way=bychapter,
prefixconversionset=digit,
counter=,
headcommand=\groupedcommand{}{.},
numbercommand=\groupedcommand{}{},
titlecommand=\groupedcommand{(}{)},
width=broad]
\defineenumeration
[definition]
]
\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
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
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{#
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
> >>
> >> 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
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
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
, placehead=yes, expansion=yes, page=yes,
numbercommand=\groupedcommand{}{\blank[1cm]},
alternative=middle,
numberstyle=ssl,
numbercolor=white,
strut=yes,
page
,
> >title=yes,
> >titleleft=,
> >titleright=,
> > titlestyle=normal,
> >prefix=yes,
> >prefixsegments=chapter,
> >way=bychapter,
> >headcommand=\groupedcommand{}{.},
> >numbercommand=\groupedcommand{}{},
> >
alternative=serried,
>distance=0.5em,
>title=yes,
>titleleft=,
>titleright=,
>titlestyle=normal,
>prefix=yes,
> prefixsegments=chapter,
>way=bychapter,
> headcommand=\groupedcommand{}{.},
>numbercommand=\group
,
prefixsegments=chapter,
way=bychapter,
headcommand=\groupedcommand{}{.},
numbercommand=\groupedcommand{}{},
titlecommand=\groupedcommand{(}{)},
width=broad]
\defineenumeration
[definition]
[text=Définition,
number=yes,
style=italic]
\defineenumeration
[proposition
] [] [n]
\setupheads[sectionconversionset=structure]
\setupenumerations
[before={\blank},
after={\blank},
alternative=serried,
distance=0.5em,
title=yes,
titleleft=,
titleright=,
titlestyle=normal,
numbercommand=\groupedcommand{}{.},
titlecommand=\groupedcommand
}}
\starttext
\protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}}
\protected\def\nocasing
{\groupedcommand{\setcharactercasing[reset]}{}}
\setuphead[chapter][textstyle=\WORD]
\chapter{some \nocasing{kept} text
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=
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 &
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,
>
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
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
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
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
\
xample
\defineitemgroup
[pitemize]
[command=\Word]
\define\citem{%
\incrementnumber[itemgroup:pitemize]%
\sym{\symbol[\currentitemgroupsymbol]}%
\groupedcommand{}{,}%
}
\define\pitem{%
\incrementnumber[itemgroup:pitemize]%
\sym{\symbol[\currentitemgroupsymbol]}%
:
> 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
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
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
bla bla.
>>
>> From:
>>
>> \setupitemize[each][2, headintext]
>> % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}]
>> \setupitemize[each][headcolor=red, headstyle=bold]
>>
>> \startitemize
>> \item Unformatted item.
>>
.
– 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
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
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
,
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
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
={\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
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
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,
>
[align=flushright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=darkgray,
textstyle=ChapterTextStyle,
numberstyle=ChapterNumberStyle,
before=\startChapterFrame,
after=\stopChapterFrame,
header=high]
\setuphead
[title]
[header=empty,
align=,
textc
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
>>
> \setuphead
>[chapter]
>[align=flushright,
> textcommand=\groupedcommand{\blank[medium]}{},
> numbercolor=darkgray,
> textstyle=ChapterTextStyle,
> numberstyle=ChapterNumberStyle,
> before=\startChapterFrame,
> aft
ents ?
Hi Fabrice,
a simple way would be:
\startsectionblockenvironment[bodypart]
\setuphead
[chapter]
[align=flushright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=darkgray,
textstyle=ChapterTextStyle,
numberstyle=ChapterNumberSty
or me:
\defineenumeration
[test]
[text=,
alternative=serried,
width=fit,
distance=.5em,
numbercommand=\groupedcommand{}{~exemple},
numberconversion=ordinal]
\mainlanguage [fr]
\starttext
\starttest
\input knuth
\stop
=,
numbercommand=\groupedcommand{}{~exemple},
numberconversion=ordinal]
\mainlanguage [fr]
\starttext
\starttest
\input knuth
\stoptest
\starttest
\input knuth
\stoptest
\stoptext
Wolfgang
___
If your question is of
; text={dummy text},
> titleleft=,
>titleright=,
> headcommand=\groupedcommand{[}{]},
> numbercommand=\groupedcommand{(}{)},
> titlecommand=\groupedcommand{<}{>}]
>
> \starttext
>
> \startgrouptest [title={dummy title}]
> \un
[grouptest]
[title=yes,
text={dummy text},
titleleft=,
titleright=,
headcommand=\groupedcommand{[}{]},
numbercommand=\groupedcommand{(}{)},
titlecommand=\groupedcommand{<}{>}]
\starttext
\startgrouptest [title={dummy title}]
\unknown
\stopgro
=\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
,
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
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
,
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
foregroundstyle=]
>
>
> \setupenumerations
> [before={\blank},
>after={\blank},
>alternative=top,
>title=yes,
>titleleft={},
>titleright={},
>titlestyle=bold,
>width=broad]
>
> \defineenumeration
>[exercice]
={},
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
[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
]
[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
={)},
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
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
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
>
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
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
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
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
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
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
]
> [ChapterRule]
> [left=\zerowidthnobreakspace,
>right=\quad]
>
> \definefiller
> [ChapterRightRule]
> [ChapterRule]
> [left=\quad,
>right=\zerowidthnobreakspace]
>
> \setuphead
> [chapter]
> [%align=middle,
>textstyle={
[chapter]
[%align=middle,
textstyle={\setcharactercasing[WORD]\ssa},
textcommand=\groupedcommand{\filler[ChapterLeftRule]}{\filler[ChapterRightRule]}]
\starttext
\chapter{My Chapter Title}
\stoptext
Julian
___
If you
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
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
,
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
old,
>width=broad]
>
> \defineenumeration
>[definition]
>[text=Définition,
> number=yes,
> headcommand=\groupedcommand{}{.},
> style=italic]
>
> \starttext
>
> \startdefinition
> \blank
> \startxtable[align={lohi,middle},w
ve=serried,
>title=yes,
>titleleft=,
>titleright=,
>prefix=yes,
>prefixsegments=chapter,
>way=bychapter,
>titlestyle=bold,
>width=broad]
>
> \defineenumeration
> [definition]
>[text=Définition,
> number=
=,
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
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
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.
=\groupedcommand{}{.},
style=italic]
\starttext
\startchapter
[title=Nombres complexes : point de vue algébrique]
\startdefinition
\input zapf
\stopdefinition
\startdefinition
\input zapf
\stopdefinition
\stopchapter
\stoptext
,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
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
> > [text=Propriété,
> >title=yes,
> >headstyle={bold},
> >alternative=serried,
> >style=italic,
> >number=no,
> >headcommand=\ProprieteHeadcommand,
>
Headcommand
> {\textrule[top]{#1}}
>
> \defineenumeration
> [propriete]
> [text=Propriété,
>title=yes,
>headstyle={bold},
>alternative=serried,
>style=italic,
>number=no,
>headcommand=\ProprieteHeadcommand,
>numbercomma
=\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
,
number=no,
headcommand=\ProprieteHeadcommand,
numbercommand=\groupedcommand{}{\nbsp},
after=\textrule]
\starttext
\startpropriete
\input ward
\stoppropriete
\stoptext
___
If your question is of interest to
.
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
] [] [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
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
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
, 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
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
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
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 - 100 of 321 matches
Mail list logo