=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
…
Hraban
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
option
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 sidenote command
[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={\blank
]
\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
ou 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=flushrigh
re 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]},
>> way=bysubject]
>>
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 you can simply do
>
ct]
\definehead[answers][subject]
then you can simply do
\setupenumeration[uppgift]
[alternative=left,
width=1cm,
text=,
after={\blank[2*big]},
way=bysubject]
and ConTeXt will automatically restart the number
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,
>wa
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 blue
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
[prefix=yes
numbers.
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.
number[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
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]
\setupenumeration [solut
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]
\setupenumeration [solut
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[p
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
titlestyle=,
> titlecolor=black,
> headstyle={\sc},
> headcolor=darkred,
> style=,
> number=yes,
> ]
>
>
>
> \def\startquestion{\dodoubleempty\dostartquestion}
>
> \long\def\dostartquestion[#1][#2]#3\stopquestion{%
> \iffirstargument
>\setupenumera
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
two sides.
>> \stoptheorem
>> \stoptext
>>
>> 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
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
e 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 figure? Ideally, the theorem would just use the space to the left
> it.
&
the 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
"Lesson" with components chapter 1, chapter 2,
> ...
> If I add \setupenumeration [] [way=bysubsection] to each component that
> does not work.
>
> \defineenumeration[exercise][text=Exercise ]
> \setupenumeration [exercise][way=bysection]
>
> \starttext
>
> \
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 <schuster.wolfg...@gmail.com>:
> Fabrice Couvr
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 cont...@rik.users.panix.com wrote:
\defineconversionset [appendix:floatconversionset] [] [n]
\setupcaption[numberconversionset=floatconversionset]
Thank you very much!
\defineconversionset [appendix:enumconversionset] [] [n]
\setupenumeration
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
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
. So in
\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
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian ota...@gmail.com 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[proof]
[number
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
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
On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
[…]
\defineenumeration[test]
\setupenumeration[test][way=bysection]
^
This should rather be
\setupenumerations[test][way=bysection]
Best regards: OK
\starttext
\startsection[title=one
Am 05.04.2013 um 11:31 schrieb Otared Kavian ota...@gmail.com:
On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
[…]
\defineenumeration[test]
\setupenumeration[test][way=bysection]
^
This should rather be
\setupenumerations[test][way
On 5 avr. 2013, at 14:48, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
Am 05.04.2013 um 11:31 schrieb Otared Kavian ota...@gmail.com:
On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
[…]
\defineenumeration[test]
\setupenumeration[test][way=bysection
]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\stoptext
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection
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
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
]
\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 definers too
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
\starttheorem[title={Pythagoras Theorem}]
The square
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]
With the second
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]
With the second argument you can set
=)]
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 use more than one name in
\setupenumerations (\setupdescriptions
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 \setupenumeration
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,remark][stopper
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
]
\setupenumeration[test][%
way=bysection,
location=left,
text=Test]
This gives
...
language: language en is active
! Undefined control sequence.
l.3 \setupenumeration
[test][%
using the current minimals. Replacing \setupenumeration by
\setupenumerations
indenting=(reset|next|first) %default is never
to the \setupenumeration command. For example
\defineenumeration[example]
[text=Example,
location=serried,
width=fit,
indenting=reset, %% Add This
distance=0.5em,
way=bysection
possible fix is to add
indenting=(reset|next|first) %default is never
to the \setupenumeration command. For example
\defineenumeration[example]
[text=Example,
location=serried,
width=fit,
indenting=reset, %% Add This
distance=0.5em
in enumerations indenting is set to never.
You can see the same affect with
\setupindenting[no]
\testtext
One possible fix is to add
indenting=(reset|next|first) %default is never
to the \setupenumeration command. For example
\defineenumeration[example
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 the
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
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
?
Add
way=bysection,sectionnumber=no
to \defineenumeration or to \setupenumeration.
(You can also reset the numbers manually with \resetquestion.)
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
67 matches
Mail list logo