to control the
distance between the title and the enumeration text, but parameters
such as 'inbetween' seem to have no effect. Is there a parameter I can
use to set the spacing. Also, how do I find out what parameters are
available. I tried to figure out where defineenumeration is defined
. Also, how do I find out what parameters are available. I tried
to figure out where defineenumeration is defined in the lua or mkiv files
without luck.
\starttext
\defineenumeration[ref][alternative=left,inbetween=\blank]
\ref Testing \par
\ref Testing \par
\stoptext
-Lance Larsen
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
!
Willi
On Apr 4, 2013, at 11:13 PM, 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
\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
?
\defineenumeration defines a number with the same name, so you can use
\setupnumber to modify the behavior of the number.
\defineenumeration[whatever]
\setupnumber[whatever][way=bysection]
Aditya
___
If your question is of interest
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 11:18 PM, Aditya Mahajan wrote:
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
)
\defineenumeration[a] [text=a]
\defineenumeration [b] [text=b]
% This only sets up a
\setupenumerations [a,b][alternative=serried, color=red]
% This sets up both a and b
% \setupenumerations [a][alternative=serried, color=red]
% \setupenumerations [b][alternative=serried, color=red]
\starttext
\starta
={\medskip}]
\setuphead[subject][after={\hrule\medskip}]
% AMSTHM
\defineenumeration
[exercici]
[text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em
][align={center},style={\sca}, after={\medskip}]
\setuphead[subject][after={\hrule\medskip}]
% AMSTHM
\defineenumeration
[exercici]
[text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes
Hi all,
when I issue a \startplacefigure, it breaks the flow of the paragraph.
Normally, it is not a problem (I can use 2*hang anyway), but I have a
one-paragraph enumeration (made by \defineenumeration), and if I give
the figure at its beginning, the label is on a line by its own; the
problem
for the environment as other
commands, e.g. for exams:
\defineblock[question]
\defineblock[answer]
\hideblocks[answer]
\defineenumeration[question]
\defineenumeration[answer]
\starttext
\chapter{Questions} % Show only the question blocks
\beginquestion
\startquestion
First question
Hello Wolfgang,
Last example is not working! I have installed last version of standalone
version...
Jaroslav Hajtmar
Here is this example ...
\defineblock[question]
\defineblock[answer]
\hideblocks[answer]
\defineenumeration[question]
\defineenumeration[answer]
\starttext
\chapter
On 2013–01–07 Jaroslav Hajtmar wrote:
Last example is not working! I have installed last version of
\defineblock[question]
\defineblock[answer]
\hideblocks[answer]
\defineenumeration[question]
\defineenumeration[answer]
\starttext
\chapter{Questions} % Show only the question
ConTeXt manual and the
wiki, I have determined
that these features should still work. I'm looking at the list
functionality of enumerations and descriptions.
In MkII, you can do the following:
\defineenumeration[blah][
...
list=listname,
listtext={Text goes here}]
and every time the enumeration
:
\defineenumeration[blah][
...
list=listname,
listtext={Text goes here}]
and every time the enumeration is used, it'll be placed in the list you
specify.
The tutorial referenced above uses this to place a list of theorems with
proper naming and numbering,
as well as lemmas and other math things
the documentation in the latest ConTeXt manual and the
wiki, I have determined
that these features should still work. I'm looking at the list
functionality of enumerations and descriptions.
In MkII, you can do the following:
\defineenumeration[blah][
...
list=listname,
listtext={Text goes here
][style=bolditalic]
\defineconversionset[testconversion][][teststyle-number]
%\defineprocessor[one][style=italic,color=red]
%\defineprocessor[two][style=normal,color=blue]
%\defineconversionset[testconversion][one-number,two-number][teststyle-number]
\defineenumeration
[test]
[text=Test
][teststyle-number]
\defineenumeration
[test]
[text=Test,
headstyle=bold,
numberconversionset=testconversion,
numberseparatorset=testseparator]
\starttext
\placelist[test]
\starttest[title={Knuth}]
\input knuth
\stoptest
\startsubtest[title={Zapf}]
\input zapf
is to create a proof
environment which prints “Proof: ” as title for the environment.
\defineenumeration
[proof]
[text=Proof:,
headstyle=italic,
number=no,
alternative=serried,
width=fit,
distance=.5em]
\startuseMPgraphic{ProofPQR}
numeric u; u:=2.5cm;
draw ((0, 0)--(1,0)--(1, 0.7
Dear all,
I defined enumerations Theorem, Proof, and Example as in the sample code.
It works fine, but I'd like to arrange it in better shape.
1. Theorem 1 and it's proof look good.
2. The proof of Theorem 2
i) when I use \startitemize it starts from the next line not
immediately after
\setupbodyfont[8pt] % To make font size closer to that of wiki
\setuppagenumbering[location=] % Page numbers are unnecessary in most cases
(E.g. http://wiki.contextgarden.net/Command/defineenumeration.)
- What setups do YOU normally use?
- Do you think it would be useful to specify a recommendation for setup
Dear Wolfgang,
To use the option title=yes in enumeration, I have encountered a unwanted
result.
It display the first letter as a title when I didn't put title.
Would you please check the following code?
\setupenumerations[location=serried,width=broad,distance=0.5em]
\defineenumeration[theorem
example
\setupenumerations[location=serried,width=broad,distance=0.5em]
\defineenumeration[theorem][text=Satz,title=yes]
\defineenumeration[corollary][number=theorem,text=Korollar]
\starttext
\starttheorem[title={Pythagoras Theorem}]
The square on the hypotenuse is equal to the sum
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
the enumerations to be numbered as 1.1
and 2.1, respectively. What am I doing wrong? Using MkIV 201200221
14:02.
\defineenumeration[myenum][way=bychapter, prefix=chapter]
\starttext
\chapter{Chapter}
\startmyenum
enum
\stopmyenum
\chapter{Chapter}
\startmyenum
14:13:59 +0100, Stefan Müller wrote:
Hi list,
in the following example, I want the enumerations to be numbered as 1.1
and 2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02.
\defineenumeration[myenum][way=bychapter, prefix=chapter]
\starttext
\chapter{Chapter
example.
does style={\setcharactercasing[3]} work out ok?
Hi Hans,
thanks for your answer and sorry for the delay. I tried
\defineenumeration[myenum][title=yes, titlestyle={\setcharactercasing[3]}]
\starttext
\startmyenum{\Word{title}}
muh
\stopmyenum
\stoptext
with MkIV 201200221 14:02
with...
\defineenumeration[article]
[location=top,
text=Article,
between=\blank,
before=\blank,
after=\blank]
\setupenumerations[article][R]
...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists to the next
the behaviour with...
\defineenumeration[article]
[location=top,
text=Article,
between=\blank,
before=\blank,
after=\blank]
\setupenumerations[article][R]
...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists
Hey list,
I'd like an itemized list using the following format...
Article I ...
Article II ...
Article III ...
...and so on. I've tried defining the behaviour with...
\defineenumeration[article]
[location=top,
text=Article,
between=\blank,
before=\blank,
after=\blank
On Sun, 4 Mar 2012, Kip Warner wrote:
Hey list,
I'd like an itemized list using the following format...
Article I ...
Article II ...
Article III ...
...and so on. I've tried defining the behaviour with...
\defineenumeration[article]
[location=top,
text=Article,
between=\blank
.
\defineenumeration[myenum][title=yes]
\starttext
\startmyenum{\Word{foo}}
bar
\stopmyenum
\stoptext
Any help appreciated, thanks in advance!
Stefan
--
___
ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt
doch nicht auch
noch nach plan b!
Empfehlen Sie GMX DSL
Hi list,
in the following example, I want the enumerations to be numbered as 1.1 and
2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02.
\defineenumeration[myenum][way=bychapter, prefix=chapter]
\starttext
\chapter{Chapter}
\startmyenum
enum
\stopmyenum
\chapter
the
title, so I can't just write Foo in the title.
\defineenumeration[myenum][title=yes]
\starttext
\startmyenum{\Word{foo}}
bar
\stopmyenum
\stoptext
Any help appreciated, thanks in advance!
Stefan
--
Hi,
I'm new to ConTeXt, but I tried your example, adding
\def\Word#1{#1-#1
Hi!
I'm using the current beta, and I get the following error when trying to use
alternative=serried. (The minimal example is included in the error message.)
error
system tex error on line 6 in file test.tex: Undefined control
sequence ...
1 \defineenumeration[myenumeration
sequence ...
1 \defineenumeration[myenumeration][alternative=serried]
2
3 \starttext
4
5 \startmyenumeration
6 This is a test.
7 \stopmyenumeration
8
9 \stoptext
10
\12:144:serried ...onstructionlocationparameter
)
%
% MINIMAL EXAMPLE
%
\setupenumerations%
[%
alternative=hanging,%
width=broad,%
headstyle=bold,%
titlestyle=bold,%
]%
\defineenumeration[mydefinition]%
[text=Definition,%
style=italic,%
title=yes,%
listtext={Definition }%
]%
\starttext
% LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
%
% MINIMAL EXAMPLE
%
\setupenumerations%
[%
alternative=hanging,%
width=broad,%
headstyle=bold,%
titlestyle=bold,%
]%
\defineenumeration[mydefinition]%
[text=Definition,%
style
)
\defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}]
\starttext
\startmyproof
This is a proof
\stopmyproof
\stoptext
% ###
% ### ERROR MESSAGE
to be read again
\normalstartimath
\mathematics ...ifmmode #1\else
### (ConTeXt ver: 2012.02.18 10:50 MKIV fmt:
2012.2.19)
\defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}]
\starttext
\startmyproof
This is a proof
\stopmyproof
\stoptext
strc-con.mkvi:
\def\strc_constructions_close_symbol_place
{\ifconditional\csname
Hi Hans,
Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV):
the key « location= hanging » does not work anymore in enumerations.
Minimal example:
%%
\defineenumeration[Exo]
[location=hanging,
width=fit,
text={Exercise },
stopper
and descriptions use now the “alternative” key for the position
of the title.
Wolfgang
…Oh thanks Wolfgang… Somehow I missed the announcement of the change.
The following gives the desired result:
\defineenumeration[Exo]
[alternative=hanging,
width=fit,
text={Exercise
=darkred]
\define\ExoCommand{\incrementnumber[MyExoNumber]
\textrule[top]{Exercise \getnumber[MyExoNumber]}
\startbackground[frame=off,leftframe=on,
framecolor=darkred]}
\defineenumeration[exo]
[location=hanging,
width=fit,
text
[question]
\defineblock[answer]
\defineenumeration[question][location=top,coupling=answer]
\defineenumeration[answer][location=top,coupling=question]
\hideblocks[question]
\hideblocks[answer]
\defineblock[exercise]
\defineblock[solution]
\defineenumeration[exercise][location=top,text=Exercise
Hello members,
a happy new year to everybody.
And here the problem I have:
\setupinteraction[start=state,color=orange]
\setupcombinedlist[content][interaction=all]
\defineblock[question]
\defineblock[answer]
\defineenumeration[questions][location=top,coupling=answers]
\defineenumeration
[solution]
\defineenumeration[exercise][location=top,text=Exercise]
\defineenumeration[solution][location=top,text=Solution]
\hideblocks[exercise]
\hideblocks[solution]
\starttext
\chapter{First Attempt}
% Begin: First Attempt
% With texexec and context both go well.
\beginexercise
\startexercise
numbered in reverse order.
Thanks in advance for any insight: OK
PS: here is an example file:
enumeration-reverse.tex
\defineenumeration[Lecture]
[location=hanging,
text={Lecture n°},
between=,
before=,
stopper={.},
after= {\hrule\blank
=reverse]
\defineenumeration[Lecture]
[location=hanging,
text={Lecture n° {\convertednumber[ReverseNumberOrder]}.},
between=,
before={\incrementnumber[ReverseNumberOrder]},
number=no,
after={\hrule\blank}]
\starttext
\startLecture Tuesday December 6th
\definenumber[ReverseNumberOrder][numberorder=reverse]
\defineenumeration[Lecture]
[location=hanging,
text={Lecture n° {\convertednumber[ReverseNumberOrder]}.},
between=,
before={\incrementnumber[ReverseNumberOrder]},
number=no,
after={\hrule\blank
On 13 déc. 2011, at 07:39, Aditya Mahajan wrote:
[…]
Untested, but
\defineenumeration[Lecture][number=ReverseNumberOrder]
should also work.
Aditya
Hi Aditya,
Thanks for the hint, but unfortunately it does not work as expected: no numbers
show up.
Maybe there is a way by using
On Tue, 13 Dec 2011, Otared Kavian wrote:
On 13 déc. 2011, at 07:39, Aditya Mahajan wrote:
[…]
Untested, but
\defineenumeration[Lecture][number=ReverseNumberOrder]
should also work.
Aditya
Hi Aditya,
Thanks for the hint, but unfortunately it does not work as expected: no numbers
show
numbered in reverse order.
Thanks in advance for any insight: OK
PS: here is an example file:
enumeration-reverse.tex
\defineenumeration[Lecture]
[location=hanging,
text={Lecture n°},
between=,
before=,
stopper={.},
after= {\hrule\blank
\defineenumeration[exo]
[location=hanging,
text=Exercise,
between=,
before=,
stopper={.},
after= \blank]
\starttext
\startexo This is a test with mkiv.
\startitemize[n]
\item First question.
\item Second question.
\stopitemize
\stopexo
\stoptext
« exercises », for
instance by defining each exercise as a section or subsection?
Up to now I have two ways of defining an « exercise »:
• one is with \defineenumeration[Exo] (when using mkii),
• the other one is with \defineannotation[Exo] and your annotation
module when using mkiv
be that I have to change my approach of defining my « exercises », for
instance by defining each exercise as a section or subsection?
Up to now I have two ways of defining an « exercise »:
• one is with \defineenumeration[Exo] (when using mkii),
• the other one
.
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
\item Go to step \in[step].
\item[step] Step.
\stopitemize
\stopmyenum
Step
]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
\item Go to step \in[step].
\item[step] Step.
\stopitemize
\stopmyenum
Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be
red, should
.
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
\item Go to step \in[step].
\item[step] Step.
\stopitemize
\stopmyenum
Step
and the page break is between item 2 and 3.
Kind regards,
Stefan.
%
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
\item Go to step \in[step].
\item[step] Step.
\stopitemize
\stopmyenum
Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be
red, should
paragraph in:
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]
\starttext
\dorecurse{9}{\input ward \par}
\startmyenum[enum]
\startitemize
\item Go to step \in[step].
\item
of how to do this?
You can change the style, color and spacing with \setupenumerations
but for the rules etc. you need other commands.
\defineenumeration[theorem][text=Theorem,title=yes]
\defineenumeration[example][text=Example]
\defineenumeration[remark] [text=Remark]
\setupenumerations
still nowhere near the solution.
Could anyone please give examples of how to do this?
You can change the style, color and spacing with \setupenumerations
but for the rules etc. you need other commands.
\defineenumeration[theorem][text=Theorem,title=yes]
\defineenumeration[example][text=Example
Hi list,
in one of my documents (MkIV) I defined several different enumerations
with \defineenumerations. Currently their only differences are in the
values of text= and style=. With the following I got what I wanted
so far:
\defineenumeration[lemma][text=Lemma, location=serried, width
On Wed, 22 Jun 2011, Stefan Müller wrote:
Hi list,
in one of my documents (MkIV) I defined several different enumerations with
\defineenumerations. Currently their only differences are in the values of
text= and style=. With the following I got what I wanted so far:
\defineenumeration
On 22.06.2011 21:02, Aditya Mahajan wrote:
On Wed, 22 Jun 2011, Stefan Müller wrote:
[...]
\defineenumeration[lemma][title=yes]
\startlemma {Farkas Lemma} ...
...
\stoplemma
Thanks a lot, that does the job!
I'm pretty confident that ConTeXt can already handle this, but I don't
know how
On 22.06.2011 21:14, Stefan Müller wrote:
On 22.06.2011 21:02, Aditya Mahajan wrote:
On Wed, 22 Jun 2011, Stefan Müller wrote:
[...]
\defineenumeration[lemma][title=yes]
\startlemma {Farkas Lemma} ...
...
\stoplemma
Thanks a lot, that does the job!
I'm pretty confident that ConTeXt
-background][frame=off,location=paragraph,backgroundcolor=red]
\defineenumeration
[john]
[text=John: ,
width=3em,
number=no,
location=left,
before={\starttextbackground[john-background]},
after=\stoptextbackground]
\defineenumeration
[mary][john]
[ text=Mary
,backgroundcolor=green]
\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]
\defineenumeration
[john]
[text=John: ,
width=3em,
number=no,
location=left,
before={\starttextbackground[john-background]},
after=\stoptextbackground
={\stoptextbackground}]
Putting
this before the above \start/stopdialogue snippet (suitably enclosed in
\start/stoptext) gives me an error about a missing }; I suppose I'm
overlooking something.
An enumeration-based solution would be along these lines:
\defineenumeration
[chat]
\setupenumerations
[chat
On 7 mai 2011, at 17:29, Wolfgang Schuster wrote:
[…]
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~},
way=bysection,
prefix=yes
when numbering the proclaimed stuff…).
The example is below.
Best regards: OK
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright
Am 07.05.2011 um 16:37 schrieb Otared Kavian:
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width
Am 04.03.2011 um 12:28 schrieb Jeong Dalyoung:
Dear all,
I defined Example as following:
\defineenumeration[Example]
[location=serried,
headstyle=bold,
command={\framed[height=1.3em]},
text={\ss \white 예제},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
width
Dear all,
I defined Example as following:
\defineenumeration[Example]
[location=serried,
headstyle=bold,
command={\framed[height=1.3em]},
text={\ss \white 예제},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
width=broad,
number=yes,
before={\blank[big]},
after
Currently I am using something like
\defineenumeration[lemma]
[location=serried,
headstyle=bold,
text=Lemma,
width=broad,
style=italic]
to define theorems, lemmas, etc.
Sometimes a theorem or lemma will have its own name (e.g. Yoneda Lemma),
and I find it slightly cumbersome
Hi Severin,
Maybe this is what you want:
% begin
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried
need to know how to either place the
number after the title or how to place it before the text.
I'd be interested in knowing how to do both.
Also, I have problem with the numbering mechanism and the
numberstyle/textstyle/etc.
\defineenumeration[theorem]
[text=Theorem,
numberstyle=normal
in Plain-teX
%% but has disappeared from ConTeXt
%% the following is adapted for mkiv
\defineenumeration[theorem]
\setupenumerations[theorem]
[text=Theorem,
style=sc, % or slanted
title=yes,
titleleft=,
titleright={.},
location=serried,
width=fit
solution here is one which use the annotation
module (local replacement of the enumeration text doesn’t work because
\setupenumerations resets the counter):
\usemodule[annotation]
% solution 1
%\defineenumeration
% [thelemma]
% [ location=serried,
%text=Lemma,
% width=broad
On Thu, 3 Mar 2011, S Barmeier wrote:
Currently I am using something like
\defineenumeration[lemma]
[location=serried,
headstyle=bold,
text=Lemma,
width=broad,
style=italic]
to define theorems, lemmas, etc.
Sometimes a theorem or lemma will have its own name (e.g. Yoneda Lemma
:
\defineenumeration[example][label=example]
This way I could easily use several languages in parallel with one
setup. The first letter should probably be capitalized in the
enumeration label...
Stefan.
On 11.02.2011 18:27, Hans Hagen wrote:
Hi,
I uploaded a beta. New:
- Improved \textxt behaviour
think it could be useful to be able to reuse the label text setups
elsewhere, too.
I have for example
\definereferenceformat[inexp][label=example]
\setuplabeltext[en][example=example~]
in one of my documents. Why not specify this label when defining an
enumeration example:
\defineenumeration
]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]
% AMSTHM
\defineenumeration
[exercici]
[text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance
\defineenumeration[thm]
[text=Theorem,prefix=yes,prefixsegments=section,counter=theorems]
\defineenumeration[lem]
[text=Lemma,prefix=yes,prefixsegments=section,counter=theorems]
\starttext
\dorecurse{5}{
\section{Foo}
\startthm
Bar
\stopthm
\startlem
Baz
\stoplem
}
\stoptext
Today the counter doesn't
Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov:
The following used to work about a month or two ago.
\setupenumerations[way=bysection]
\newcounter\theorems
\defineenumeration[thm]
[text=Theorem,prefix=yes,prefixsegments=section,counter=theorems]
\defineenumeration[lem]
[text=Lemma
Wolfgang Schuster wrote:
Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov:
The following used to work about a month or two ago.
\setupenumerations[way=bysection]
\newcounter\theorems
\defineenumeration[thm]
[text=Theorem,prefix=yes,prefixsegments=section,counter=theorems
is there in Ctx something like \todo command, provided by LaTeX via todo
package (http://mirror.ctan.org/macros/latex/contrib/todo/todo.pdf)?
Enumeration can do most of what you're after.
\setupinteraction[state=start]
\defineenumeration[todo][list=todolist,title=yes, listtext={Todo
... OK, thanks both for the inspiration.
Lukas
On Tue, 23 Nov 2010 20:37:09 +0100, Glen Callaghan
glen.callag...@emsolutions.com.au wrote:
\setupinteraction[state=start]
\defineenumeration[todo][list=todolist,title=yes, listtext={Todo },
before=\startframedtext, after=\stopframedtext
---
\defineblock[Block]
\defineenumeration[Enum][location=left,text=Test]
\setupblock[Block][before=\startEnum,after=\stopEnum]
\keepblocks[Block]
\starttext
\section{Use}
\useblocks[Block]
\reset[Enum]
\section{Define}
\beginBlock
jhdsa hdsfhj lh dsfjh jkhasdf
sdakjhfsal sdkajhf kljsdh
\the#7}}
To have three arguments for the \define... commands like \defineenumeration
change the above command to:
\unprotected\unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7%
{\unexpanded\def#2{\dotripleempty#5}%
\newtoks#6%
\newtoks#7%
\def#5[##1][##2][##3]%
{\edef#4
]}
{\getparameters[#1#4][\s!parent=#1##2]}%
\fi
\the#7}}
To have three arguments for the \define... commands like \defineenumeration
change the above command to:
\unprotected\unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7%
{\unexpanded\def#2{\dotripleempty#5}%
\newtoks
}
{\getparameters[#1#4][\s!parent=#3,##2]}
{\getparameters[#1#4][\s!parent=#1##2]}%
\fi
\the#7}}
To have three arguments for the \define... commands like \defineenumeration
change the above command to:
\unprotected\unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7
.
thanks
Glen
-
\defineblock[Block]
\defineenumeration[Enum][location=left,text=Test]
\define[1]\Revs{
\beginBlock
\startEnum
#1
\stopEnum
\endBlock
}
\starttext
\section{Use}
\useblocks[Block]
\reset[Enum]
\section{Define
401 - 500 of 824 matches
Mail list logo