l or using \setupalign[r2l] has no effect.
Best,
Mohammad
\setupdirections[bidi=global,method=unicode]
\definefontfeature[default][arabic]
\setupbodyfont[dejavu,sans]
\defineenumeration[Theorem]
\setupenumeration[Theorem][alternative=serried,title=yes,text=قضیه]
\starttext
\startTheorem[title=ع
,
Mohammad
\setupdirections[bidi=global,method=unicode]
\definefontfeature[default][arabic]
\setupbodyfont[dejavu,sans]
\defineenumeration[Theorem]
\setupenumeration[Theorem][alternative=serried,title=yes,text=قضیه]
\starttext
\startTheorem[title=عنوان]
Test
\stopTheorem
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
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24:
hi!
I'm new to ConTeXt. I want to define a command with sidenote function. This
[setupsidenote] command inherits the options of [setupmargindata],
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the
opti
hi!
I'm new to ConTeXt. I want to define a command with sidenote function. This
[setupsidenote] command inherits the options of [setupmargindata],
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the
option of [setupcounter].
I've defined the following sideno
taset[ref.buffer]
\usebtxdefinitions[apa]
\definebtx
[apa:cite:theorem]
[apa:cite]
\startsetups btx:apa:cite:theorem
\btxflushauthorname{author}
\btxcomma
\btxflush{year}
\fastsetup{btx:cite:righttext}
\stopsetups
\setupenumeration[
before={\blank[medium]},
after={\
]
\setupenumeration
[definition]
[way=bysection,
prefix=yes,
prefixsegments=section]
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
If you are certain that the there will be no multi-line item (i.e. item text is
short enough that it fits in slightly less than half of textwidth) you can use
an enumeration, and put the contents inside a two-column layout:
%%% start example-1
\define[1]\aitemcmd{\inframed[width=1cm,align=flus
umbered since they are so in your example):
>> \definehead[exercises][subject]
>> \definehead[answers][subject]
>> then you can simply do
>> \setupenumeration[uppgift]
>> [alternative=left,
>> width=1cm,
>> text=,
>> after={\blank[2*big]},
>> wa
On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote:
> If 'Exercises' and 'Answers to exercises' are some head structure (assuming
> unnumbered since they are so in your example):
> \definehead[exercises][subject]
> \definehead[answers][subject]
> then yo
:
\definehead[exercises][subject]
\definehead[answers][subject]
then you can simply do
\setupenumeration[uppgift]
[alternative=left,
width=1cm,
text=,
after={\blank[2*big]},
way=bysubject]
and ConTeXt will aut
kauśika via ntg-context schrieb am 20.11.2021 um 14:28:
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
Dear list,
I have the following enumeration block.
\defineenumeration[verse]
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=fit,
distance=1em
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
> Dear list,
>
> I have the following enumeration block.
>
> \defineenumeration[verse]
> \setupenumeration[verse]
> [alternative=leftmargin,
>text=,
>width=fit,
>distance=1em,
>way=b
Dear list,
I have the following enumeration block.
\defineenumeration[verse]
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=fit,
distance=1em,
way=bysection]
I actually want to (flush) left align the enumeration's number inside the left
margin and give it a
ion for the enumeration and its
> reference?
>
Hi Hraban,
Here’s an example from my textbook which might be helpful. I use this
enumeration for example problems, but exercises could be similar. You have
access to the rest of the textbook, so feel free to grab anything useful.
-Gavin
; text={dummy text},
> titleleft=,
>titleright=,
> headcommand=\groupedcommand{[}{]},
> numbercommand=\groupedcommand{(}{)},
> titlecommand=\groupedcommand{<}{>}]
>
> \starttext
>
> \startgrouptest [title={dummy title}]
> \un
uptest
\startgrouptest
\unknown
\stopgrouptest
\blank[2*line]
\setupenumeration
[grouptest]
[number=no]
\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest
\startgrouptest
\unknown
\stopgrouptest
\stoptext
Wo
Hi Taco,
Thanks! This works for me.
It indeed seems at least inconsistent. Also, using
\definecounter[enumeration][object]
instead of
\setupenumeration[enumeration][counter=object]
Numbers figures correctly but forgets the object counter in enumerations, it
numbers 1.1., 1.1
\setupenumeration[enumeration] form. This may be intentional, I do not know for
sure.
Here is what I believe is the required code for your desired effect
(re-indented for Hans' style):
\setupcaptions
[way=bysection,
prefixsegments=chapter:section]
\setupenumerations
[prefi
s.
I checked it by adding definitions one by one and finally found the reason.
One line in my environment file cause the problem.
\setupenumeration[alternative=serried,width=broad,distance=0.5em]
Also, I found very strange phenomena that it depends on the order of appearance
of that line.
That i
ult of
>> \getnumber[problem]. I've also tried the analogous
>> context.getnumber({"problem"}), though without success.
>> Does anyone see what I am missing?
>> Many thanks!
>> -Sanjoy
>> \defineenumeration[problem]
>>
problem]. I've also tried the analogous
context.getnumber({"problem"}), though without success.
Does anyone see what I am missing?
Many thanks!
-Sanjoy
\defineenumeration[problem]
[title=yes, text=Problem, way=bychapter, prefix=chapter]
\defineenumeration[solution][problem]
problem]. I've also tried the analogous
context.getnumber({"problem"}), though without success.
Does anyone see what I am missing?
Many thanks!
-Sanjoy
\defineenumeration[problem]
[title=yes, text=Problem, way=bychapter, prefix=chapter]
\defineenumeration[solution][problem]
content ends with words. But it is not working
if the item contents end with \stopformula. If I put \placeclosesymbol before
\stopformula, then it is shown just after the last word.
Anyway, it works in most cases.
Thank you again.
Best regards,
Dalyoung
%%%%%
\defineenumeration[proo
On Mon, 27 Aug 2018, Jeong Dal wrote:
Hi,
The same thing happens after the itemization as in the following MWE.
\defineenumeration[proof][text=Proof.]
\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi
MWE.
Thank you for reading.
Best regards,
Dalyoung
\defineenumeration[proof][text=Proof.]
\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]
\starttext
\startproof
This is a simple proof.
\stopproof
,
Dalyoung
\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
\definecolor[lGreen] [r=0, g=.625, b=0]
\definecolor[lYellow] [r=.625,g=.625,b=.0]
\definecolor[dYellow] [r=.375,g=.375,b=.0]
\setupenumeration[alternative=serried,width=broad,distance=0.3em]
\defineenumeration[ExamA]
[text
=,
> titlecolor=black,
> headstyle={\sc},
> headcolor=darkred,
> style=,
> number=yes,
> ]
>
>
>
> \def\startquestion{\dodoubleempty\dostartquestion}
>
> \long\def\dostartquestion[#1][#2]#3\stopquestion{%
> \iffirstargument
>\setupenumeration[exercise][text={\got
headcolor=darkred,
style=,
number=yes,
]
\def\startquestion{\dodoubleempty\dostartquestion}
\long\def\dostartquestion[#1][#2]#3\stopquestion{%
\iffirstargument
\setupenumeration[exercise][text={\goto{Question}[A:#1]}]
\ifsecondargument
\startexercise[#1]{#2}
\else
\sta
gt;>
>> QUESTIONS:
>> 1) I would like to prefix the theorem counter with the chapter number, such
>> that the number of the second theorem becomes 2.1. Can this be done?
>> 2) Is it possible to circumvent the misplacement of the second theorem due
>> to the placed
Florian Leupold <mailto:fleup...@posteo.net>
4. September 2016 um 19:37
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration
inherits from \setupcounter; but in “ConTEXt reference manual", it
says on page 246 that \setupenumerations in
r, such
> that the number of the second theorem becomes 2.1. Can this be done?
> 2) Is it possible to circumvent the misplacement of the second theorem due to
> the placed figure? Ideally, the theorem would just use the space to the left
> it.
>
> Issues with the documentation:
space to the left it.
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits
from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that
\setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference m
Oups, I forgot the name "ex", I am confused.
Thanks
Fabrice
2016-08-08 13:27 GMT+02:00 Wolfgang Schuster :
> Fabrice Couvreur
> 8. August 2016 um 13:11
> Hi Wolfgang,
> In fact, I have a project "Lesson" with components chapter 1, chapter 2,
> ...
&
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com>
8. August 2016 um 13:11
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter
2, ...
If I add \setupenumeration [] [way=bysubsection] to each component
that does not work.
\defineenumeratio
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter 2, ...
If I add \setupenumeration [] [way=bysubsection] to each component that
does not work.
Fabrice
2016-08-08 12:30 GMT+02:00 Wolfgang Schuster :
> Fabrice Couvreur
> 8. August 2016 um 12:27
command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
\setupenumeration[...][way=bysection] % way=bychapter etc.
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wi
On Fri, Feb 13, 2015 at 6:20 PM, Rik Kabel wrote:
> \defineconversionset [appendix:floatconversionset] [] [n]
> \setupcaption[numberconversionset=floatconversionset]
Thank you very much!
\defineconversionset [appendix:enumconversionset] [] [n]
\setupenumeration[numberconvers
\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]
the \ifmmode is not honoured, and the change must have happened quite earlier
than a few weeks.
Maybe we should open a new thread as a bug in closecommand?
it
4 6:54 AM, Otared Kavian wrote:
>> Hi Mikael,
>>
>> Actually I just tried your example with the ConTeXt version on TeX Live, as
>> well as with a copy dating back to 2014-02-14, and both behaved in the same
>> wrong way regarding the closesymbol and closecomman
On 11/10/2014 6:54 AM, Otared Kavian wrote:
Hi Mikael,
Actually I just tried your example with the ConTeXt version on TeX Live, as
well as with a copy dating back to 2014-02-14, and both behaved in the same
wrong way regarding the closesymbol and closecommand. So in
\setupenumeration[proof
Hi Mikael,
Actually I just tried your example with the ConTeXt version on TeX Live, as
well as with a copy dating back to 2014-02-14, and both behaved in the same
wrong way regarding the closesymbol and closecommand. So in
\setupenumeration[proof]
[number=no,
closesymbol
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian wrote:
> Hi Mikael,
>
> In my files I have the following which used to work, but it doesn’t work as
> expected anymore, as you point out
>
> \defineenumeration[proof][text=Proof.]
>
> \setupenumeration[pro
Hi Mikael,
In my files I have the following which used to work, but it doesn’t work as
expected anymore, as you point out
\defineenumeration[proof][text=Proof.]
\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else
er wrote:
>>> This might not be the best way to do it, but when I need it, I use
>>>
>>> \resetnumber[problem]
>>>
>>> for my
>>>
>>> \startproblem
>>>
>>> \stopproblem
>>>
>>> enumeration.
>
t; \startproblem
>>
>> \stopproblem
>>
>> enumeration.
>
> \defineenumeration[test]
>
> \setupenumeration[test][way=bysection]
>
> \starttext
>\startsection[title=one]
>\starttest alpha \stoptest
>\starttest beta \stoptest
>\stop
On 5 avr. 2013, at 14:48, Wolfgang Schuster wrote:
>
> Am 05.04.2013 um 11:31 schrieb Otared Kavian :
>
>>
>> On 4 avr. 2013, at 23:13, Hans Hagen wrote:
>>> […]
>>> \defineenumeration[test]
>>>
>>> \setupenumeration[test][way=byse
Am 05.04.2013 um 11:31 schrieb Otared Kavian :
>
> On 4 avr. 2013, at 23:13, Hans Hagen wrote:
>> […]
>> \defineenumeration[test]
>>
>> \setupenumeration[test][way=bysection]
>^
> This should rather be
> \set
On 4 avr. 2013, at 23:13, Hans Hagen wrote:
> […]
> \defineenumeration[test]
>
> \setupenumeration[test][way=bysection]
^
This should rather be
\setupenumerations[test][way=bysection]
Best regards: OK
>
> \starttext
>\s
]
\setupenumeration[test][way=bysection]
I was testing with \definenumeration[test][way=bysection] but that did
not work. Is that a bug?
i noticed too ... I've just added a synchronize to the definer
On Thu, 4 Apr 2013, Hans Hagen wrote:
On 4/4/2013 10:45 PM, Matthias Weber wrote:
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
I
On 4/4/2013 10:45 PM, Matthias Weber wrote:
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one
On 4/4/2013 10:45 PM, Matthias Weber wrote:
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one
ation” key was replaced with the “alternative” key.
2. You need the “counter” key to share counters.
\setupenumeration[alternative=serried,width=broad,distance=0.5em]
\defineenumeration[theorem][text=Satz,title=yes]
\defineenumeration[corollary][counter=theorem,text=Korollar]
\starttext
\startthe
gument is just the name which is used as argument for
sectionconverionset in \setuphead for prefixconverionset in \setupcaption,
\setupenumeration etc. The name of the conversion can be prefixed with the name
of a sectionblock, e.g.
\definestructureconverionset[bodypart:myconversion][A,I,n,R][numbers]
n is set
The first argument is just the name which is used as argument for
sectionconverionset in \setuphead for prefixconverionset in \setupcaption,
\setupenumeration etc. The name of the conversion can be prefixed with the name
of a sectionblock, e.g.
\definestructureconverionset[bodypa
em][stopper=)]
>>
>> When I would follow the system from other setup commands in context
>> i expect as correct names \setupenumeration and \setupdescription.
>>
> If I understand context manual correctly (I not checked this)
> (cont-enp.pdf, pp. 181,183) I could u
setup commands in context
> i expect as correct names \setupenumeration and \setupdescription.
>
If I understand context manual correctly (I not checked this)
(cont-enp.pdf, pp. 181,183) I could use more than one name in
\setupenumerations (\setupdescriptions), e.g.
\setupenumerations[problem,rem
Sorry to hijack your post and since we're already there, why are
\setupenumerations
and \setupdescriptions written in the plural form.
> \setupenumerations[problem][stopper=)]
When I would follow the system from other setup commands in context
i expect as correct names \setupenumera
gt; for the moment use:
>
> \defineenumeration[test]
>
> \setupenumeration[test][%
>way=bysection,
>location=left,
>text=Test]
This gives
...
language : language en is active
! Undefined control sequence.
l.3 \setupenumeration
Olaf Mersmann wrote:
Hi list,
the following example works in MkII but not in MkIV as expected:
\defineenumeration[test][%
way=bysection,
location=left,
text=Test]
for the moment use:
\defineenumeration[test]
\setupenumeration[test][%
way=bysection,
location=left,
text=Test
> > "double" space before the formula. This is a test file that shows the
> >> > problem:
> >>
> >> This is basically because in enumerations indenting is set to never.
> >>
> >> You can see the same affect with
> >>
> >
;> > applied, If one now put a formula inside an enumeration one gets
>> > "double" space before the formula. This is a test file that shows the
>> > problem:
>>
>> This is basically because in enumerations indenting is set to never.
>>
>
ore the formula. This is a test file that shows the
> > problem:
>
> This is basically because in enumerations indenting is set to never.
>
> You can see the same affect with
>
> \setupindenting[no]
> \testtext
>
> One possible fix is to add
>
>
If one now put a formula inside an enumeration one gets
> "double" space before the formula. This is a test file that shows the
> problem:
This is basically because in enumerations indenting is set to never.
You can see the same affect with
\setupindenting[no]
\testtext
One pos
ldn't know which way you have choosen.
If you want unnumbered examples with enumeration you can disable the
number with \setupenumeration[number=no] .
Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
WN wrote:
> I am a bit confused, the example setups the enumaration *remark* and
> specifies the location=top
>
> But on page 224 the command \setupenumerations is shown where one can also
> specify the location among others.
>
> What is the difference, reason or usage for doing this ?
Much of
Hi,
I have a question (probably a dumb question) relating to some of the
define/setup commands. One in
particular, but it may relate to the other define/setup commands as
well.
Looking at the defineenumeration and setupenumerations command
in the Context manual page 223 and page 224 an exampl
xample, section 1 might end with
> exercise #15, then section 2 begins with exercise #16. How can I
> reset the numbers to start with #1 in section 2?
Add
way=bysection,sectionnumber=no
to \defineenumeration or to \setupenumeration.
(You can also reset the numbers manually with \re
looking for
\setupenumeration[question][way=bysection,sectionnumber=no]
in that other message.
Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
70 matches
Mail list logo