En/na Aditya Mahajan ha escrit:
On Mon, 5 Mar 2007, Xan wrote:
Another question: how get the equivalent of ams theorem package?
Sorry for no ask this before and another time, thanks
enumerations. This is what I ususally do
\defineenumeration[theorem][style=italic,text=Theorem,location
ususally do
\defineenumeration[theorem][style=italic,text=Theorem,location=hanging]
\starttheorem
This is an important theorem
\stoptheorem
They do almost everything on what is needed for theorems. I am working
on providing missing features, so if you find something is missing
On Tue, 6 Mar 2007, Xan wrote:
En/na Aditya Mahajan ha escrit:
On Mon, 5 Mar 2007, Xan wrote:
Another question: how get the equivalent of ams theorem package?
Sorry for no ask this before and another time, thanks
enumerations. This is what I ususally do
\defineenumeration[theorem][style
it right now.
However, I am working on enhancing enumerations to have all the
features needed for theorems. With what I have right now, you can do
\defineenumeration[Casus][title=yes,titledistance=1ex,titleleft={Title:
},titleright=]
after which you can say,
\startCasus[casus-166]{my title} to get
]%
{\begingroup\setvalue{#2title}{##2}\getvalue{\e!start#1i#2}[##1]}%
\setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}
\def\dodefinecomplexenumeration[#1][#2]%
{\defineenumeration[i#1]
[\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
\setvalue{do#1title}%
{\doifnotemptyvalue{#1title
not test it right now.
However, I am working on enhancing enumerations to have all the
features needed for theorems. With what I have right now, you can do
\defineenumeration[Casus][title=yes,titledistance=1ex,titleleft={Title:
},titleright=]
after which you can say,
\startCasus[casus-166]{my title
On Tue, 27 Feb 2007, Dalyoung Jeong wrote:
Deaer all,
To give a numbering to the examples in a chapter, I tired the following:
\defineenumeration[example]
[location=serried,
headstyle=bold,
text=Example,
way=bychapter,
width=broad,
number=yes,
after
. However,
%D \CONTEXT's syntax is almost impossible to parse from an external
%D program. Consider the following two cases
%D \starttyping
%D \defineenumeration[problem]
%D \startproblem[tag]
%D blah blah
%D \stopproblem
%D \stoptyping
%D and
%D \starttyping
%D \defineitemgroup[problem]
%D \startproblem
there from the beginning.
% This is the usual visual output
\defineenumeration
[lemma]
[title=yes,
text=Lemma,
titledistance=.5em,
textdistance=1em,
titlestyle=bold,
titleleft=(,
titleright=),
stopper=.,
location=hanging,
style
...?
Requirement 4 is not completely implemented. With
\defineenumeration[theorem][title=yes] I always have to give a
title. Normally, while writings theorems, there are only a few
theorems that have a title. The rest of them do not. Right now, I can
work around this restriction, by either
://www.ruhr-uni-bochum.de/www-rz/schwanbs/TeX/
There are to many ways how you defined your example, you can find one
way below. The important things are saved into the before and after
commands in the defintion.
example
\defineenumeration
Why enumeration? The exercises are not numbered
\defineenumeration
[Example]
[before=\null\vbox\bgroup,
after=\egroup]
\starttext
\input knuth
\startExample
\dorecurse{30}{This is a example\crlf}
\stopExample
\input knuth
\stoptext
/example
Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http
about vbox?
There are to many ways how you defined your example, you can find one
way below. The important things are saved into the before and after
commands in the defintion.
example
\defineenumeration
Why enumeration? The exercises are not numbered.
Gerhard
--
Gerhard Kugler
On Thu, 14 Dec 2006, Michael wrote:
How do I use counter in ConTeXt?
Specifically, I use this to define '\startproblem\stopproblem'.
\defineenumeration[problem][location=top,text=Problem,%
between=\blank,before=\blank,after=\page]
I want to say \totalnumberofproblems
How do I use counter in ConTeXt?
Specifically, I use this to define '\startproblem\stopproblem'.
\defineenumeration[problem][location=top,text=Problem,%
between=\blank,before=\blank,after=\page]
I want to say \totalnumberofproblems, in the beginning of the exam, like
Hello,
playing with \defineenumeration I noticed some weird behaviour:
whenever I set an enumeration to be unnumbered the stopper is
mysteriously suppressed ... I searched the mailing list for this
problem and I discovered that people have experienced problems
related to the stopper
red;
\stopuseMPgraphic
\defineenumeration
[Theorem]
[location=right,
headstyle=bold,
text=Theorem ,
command=\FrameTheoremCaption,
location=inleft,
before={\StartTeoFrame},
after={\StopTeoFrame}]
\starttext
\FrameTheoremTitle{Immerman}
\startTheorem[3t9.4.00]
Theorem theorem theorem
. Is it normal? or Is there
any method to reduce the spaces?
Thank you for reading.
Dalyoung
%Here is the definition following Mr. Taco's method
\defineenumeration[Theorem]
[location=serried,
headstyle=bold,
text=Theorem,
number=yes,
You probably want something like
? or Is there
any method to reduce the spaces?
Thank you for reading.
Dalyoung
%Here is the definition following Mr. Taco's method
\defineenumeration[Theorem]
[location=serried,
headstyle=bold,
text=Theorem,
number=yes,
after=]
\definestartstop[theorem]
[before
-des.tex via the ConTeXt
garden source browser but
Naturally, the example of lemma definition is commented out ;)
Copy
\defineenumeration[lemma][title=yes, titlestyle=\bs, list=lemma]
into your document and try to use
\startlemma{title of the lemma}
blah blah
\stoplemma
Check parameters
=on,
framecolor=darkblue,
location=paragraph,
color=darkblue]
\defineenumeration
[theorem]
[before={\starttextbackground[thmbackground]},
after={\stoptextbackground},
text=Theorem,
way=bysection,
location=hanging,
letter=rm]
\setuppapersize[letter][letter]
\starttext
\startcolumns[n=2
,
%corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkblue]
\defineenumeration
[theorem]
[before={\starttextbackground[thmbackground]},
after={\stoptextbackground},
text=Theorem
title=yes. Using that, you can provide a
title to the description. Have a look into core-des.tex.
I found a mysterious startlemma in core-des.tex via the ConTeXt
garden source browser but
Naturally, the example of lemma definition is commented out ;)
Copy
\defineenumeration[lemma][title=yes
a new beta:
- cloned figure numbers fixed
Before this beta, the following compiled ok
but didn't use davidsnumber as figurenumber.
With the last beta I got the appended error!
number.tex
\defineenumeration[whatever]
\definenumber[davidsnumber]
\setupnumber
-)
\defineenumeration[whatever]
\definenumber[davidsnumber]
\setupnumber[whatever][number=davidsnumber]
\setupnumber[formula] [number=davidsnumber]
% If one says additionally here:
\setupnumber[figure][number=davidsnumber]
\starttext
\placeformula[x]
\startformula x
=no,
location=middle]
\setuplabeltext[remark=Remark]
\setuplabeltext[theorem=Theorem]
\defineenumeration
[remark,theorem]
[location=serried,
width=broad,
headstyle=bold,
inbetween=\blank,
before=\blank,
after=\blank,
way=bysection
\selectblocks[longanswer,longsubanswer][criterium=section]
\stoplonganswers
}
}
\defineenumeration
[question]
[text=,
headcolor=heavygreen]
\setupenumerations
[question]
[location=left,
width=fit,
distance
All, 2 questions: (1) why don't my chapter numbers turn off, and (2),
why doesn't the counter start over in the new section?
\setupwhitespace[medium]
\setupindenting[medium,yes]
\def\N{{\Bbb N}}
\def\W{{\Bbb W}}
\def\Z{{\Bbb Z}}
\def\Q{{\Bbb Q}}
\def\R{{\Bbb R}}
\defineenumeration
how exactly).
(2), why doesn't the counter start over in the new section?
That one, I do know:
\definenumber[CommonCtr][way=bysection]
Btw, you can greatly reduce the number of code lines needed by doing
the definitions like so:
\defineenumeration [property][text=Property] % five
This seems to be what I want, but the two uses of sectionnumber=no
seem so redundant.
\setupwhitespace[medium]
\setupindenting[medium,yes]
\def\N{{\Bbb N}}
\def\W{{\Bbb W}}
\def\Z{{\Bbb Z}}
\def\Q{{\Bbb Q}}
\def\R{{\Bbb R}}
\defineenumeration[definition][text=Definition]
\defineenumeration
David Arnold wrote:
This is excellent. Now, how can I include this
\placeformula[eq:nine]
\startformula
f(x)=x^2
\stopformula
with the same common counter as remark and definition below?
hm, it's incredible what users come up with but this time you're lucky -)
\defineenumeration
.
textspaceleftnumberstopperright, so this works
I won't ask where this is documented.
I learnt it the hard way --- trial and error :)
\defineenumeration
[question]
[text=Question,
left=Q]
\starttext
\startquestion[abc]
Why are there so many spaces
something. Why are you switching to a totally
manual numbering system here?
Taco
\defineenumeration
[example]
[location=serried,
width=broad,
distance=1em,
headcolor=green,
headstyle=bold,
text=\labeltext
On Sat, 8 Jul 2006, David Arnold wrote:
Was I surprised to find that my numbering went to multiples of 2 when
I added the option sample={99}. Is this a bug?
Hello,
it's always a nice exercise to create a minimal example, that shows the
problem:
\defineenumeration[question][width=fit,sample
Way to go about this?
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark,
headstyle=bold,
inbetween=\blank,
before=\blank,
after=\blank,
way=bysection]
\defineenumeration
[definition]
[remark]
[text=Definition]
\starttext
\startremark
(1.6)
Figure 1
Example 1.7
Example 1.8
Definition 1.9
Figure 2
etc.
Hope this give the right idea.
Question: What would be the Context Way to go about this?
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark,
headstyle=bold,
inbetween
David Arnold wrote:
All,
How do you get two enumerations to use a common counter? This didn't
work.
just clone the definition one:
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark,
headstyle=bold,
inbetween=\blank,
before=\blank,
after
... I have exactly the opposite problem: I need the
definitions/examples/problems/... to be numbered independent of each
other, but I cannot get rid of coupling between these numbers.
\defineenumeration
[remark]
[text=Remark]
\defineenumeration
[definition]
[text=Definition
This is excellent. Now, how can I include this
\placeformula[eq:nine]
\startformula
f(x)=x^2
\stopformula
with the same common counter as remark and definition below?
just clone the definition one:
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark
All, thought we had a good strategy for defining our own counter, but
we don't have references now. Any ideas?
\newcounter\NonFigCounter
\define\UpdateNonFigCtr{\doglobal\increment\NonFigCounter}
\setuplabeltext[example=Example \NonFigCounter.]
\defineenumeration
[example
All,
Was I surprised to find that my numbering went to multiples of 2 when
I added the option sample={99}. Is this a bug?
\defineenumeration
[question]
[text=,]
\setupenumerations
[question]
[location=left,
width=fit,
distance=1em,
hang=2
All, why do we lose our hang in the second question?
\defineenumeration
[question]
[text=,]
\setupenumerations
[question]
[location=left,
width=fit,
distance=1em,
hang=100,
margin=0pt,
headcolor=green,
right=.,
way
\nctr{\doglobal\increment\NonFigCtr \color[red]{[\NonFigCtr]}}
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark,
headstyle=bold,
inbetween=\blank,
before=\blank
On 7/7/06, David Arnold wrote:
All,
Why is it I cannot get my numbers to abut up against the left margin
edge? They are always a few points indented.
\setuplabeltext[question=]
\defineenumeration
[question]
[text=\labeltext{question}]
\setupenumerations
[question
On Sun, 9 Jul 2006, Mojca Miklavec wrote:
On 7/7/06, David Arnold wrote:
All,
Why is it I cannot get my numbers to abut up against the left margin
edge? They are always a few points indented.
\setuplabeltext[question=]
\defineenumeration
[question]
[text=\labeltext{question
also solve the problem.
left=Q works. The label is
Sigh! A prisoner sitting in the cell thinking about how to escape
never realizes that the door is not locked at all. Thanks a lot.
textspaceleftnumberstopperright, so this works
I won't ask where this is documented.
\defineenumeration
this is documented.
I learnt it the hard way --- trial and error :)
\defineenumeration
[question]
[text=Question,
left=Q]
\starttext
\startquestion[abc]
Why are there so many spaces in \in[abc]?
\stopquestion
\stoptext
If we're talking about \in-s
All,
Why does this increment by two?
\setupoutput[pdf]
\newcounter\NonFigCounter
\define\NonFigCtrUpdate{\doglobal\increment\NonFigCounter}
\define\NonFigCtr{\NonFigCtrUpdate{\tfa\NonFigCounter}}
\setuplabeltext[remark=Remark \NonFigCtr:]
\defineenumeration
[remark
All,
How do you get two enumerations to use a common counter? This didn't
work.
\setupoutput[pdf]
\newcounter\NonFigCtr
\define\nctr{\doglobal\increment\NonFigCtr \color[red]{[\NonFigCtr]}}
\defineenumeration
[remark]
[location=serried,
width=broad
\NonFigCounter}
\define\NonFigCtr{\NonFigCtrUpdate{\tfa\NonFigCounter}}
\setuplabeltext[remark=Remark \NonFigCtr:]
\defineenumeration
[remark]
[location=serried,
width=broad,
text=\labeltext{remark},
headstyle=bold
\color[red]{[\NonFigCtr]}}
\defineenumeration
[remark]
[location=serried,
width=broad,
text=Remark,
headstyle=bold,
inbetween=\blank,
before=\blank,
after=\blank
All,
Why is it I cannot get my numbers to abut up against the left margin
edge? They are always a few points indented.
\setuplabeltext[question=]
\defineenumeration
[question]
[text=\labeltext{question}]
\setupenumerations
[question]
[location=left,
width=broad
All,
Why is it when I stop two column mode I get a page break with the
following?
\defineenumeration
[question]
[text=,]
\setupenumerations
[question]
[location=left,
width=fit,
distance=1em,
hang=1,
margin=0pt,
headcolor=green
Hans et all,
I don't get my period after item numbers with this file:
\setupoutput[pdf]
\setuplabeltext[question=]
\defineenumeration
[question]
[location=inleft,
text=\labeltext{question},
headcolor=green]
\setupenumerations
[question
=]
\defineenumeration
[question]
[location=inleft,
text=\labeltext{question},
headcolor=green]
\setupenumerations
[question]
[location=inleft,
headcolor=green,
stopper=.,
way=bysection,
sectionnumber=no]
\starttext
\startquestion
}
\noindent
\ignorespaces \i...
\dodogotopar ...description {example}[exam:relT]{}
\BeforePar \emptytoks
to be read again
C
l.100 C
onsider the relation $T$ defined by
?
Example is defined by:
\defineenumeration
\bold{!}\egroup\hskip 1em}
\defineenumeration
[summary]
[location=serried,
width=broad,
text=\summaryprefix Summary,
style=slanted,
number=no,
inbetween=\blank,
before={\startboxcode\startframedtext[width=\boxwidth,
background=color,backgroundcolor=tingedblue,frame=no]},
after
Hans et al,
OK. I repaired this with:
\setuplabeltext[question=]
\setuplabeltext[answer=]
\defineenumeration
[questions]
[location=serried,
text=\blank]
\setupenumerations
[questions]
[before={\page[yes]\unnumberedsubsection{Exercises}\startcolumns[n=2]},
after=\stopcolumns,
number
All,
We are currently using this as one of our environment files:
\definehead[unnumberedsubsection][subsection]
\setuphead[unnumberedsubsection][number=no,incrementnumber=no]
\defineenumeration[questions][location=serried,text=\blank]
\setupenumerations[questions][before={\page[yes
All,
I have in my environment file:
\defineenumeration
[example]
[location=serried,
width=broad,
text={\color[heavygreen]\bgroup\bold{Example}},
stopper={.\egroup},
style=slanted,
inbetween=\blank,
after=\blank]
Now, I have a chapter with four sections. What can I do so that
\startexample
Hi,
Inside a nested enumeration \frame[align=leftflush] does not work
correctly. For example
\defineenumeration
[problem]
[text=Problem,
location=hanging,
headstyle=\sc,
%headcolor=brown,
%before={\resetnumber[formula]\page[desirable]},
after=\blank
of the functionality of the \define and \setup commands is
using shared code (for efficiency and QA).
What is the proper Context way, should I define the location with
\defineenumeration or with \setupenumerations ?
Where ConTeXt provides both, the use of \setup version depends on
your input file. I've
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
Salvete,
after a long time I got back to some ConTeXt file I had been working on
and found that the following construct does not work (I assume it never
did):
\defineenumeration[example]
[sectionnumber=chapter,
text=Example,
location
should flow uninterrupted.
%output=pdf
\setupwhitespace[medium]
\setupindenting[medium,yes]
\definereferenceformat[infigure][text=Figure]
\defineenumeration[definition]
\useMPlibrary[dum]
\starttext
Readers will note that each object in the domain is paired with one
and only one object
title) for the following
source. Thought you'd like to be aware of this.
%output=pdf
\starttext
\setupindenting[medium,yes]
\setupwhitespace[medium]
\setupcolumns
[verytolerant,distance=4em]
\setupcolors[state=start]
\defineenumeration[question]
\setupenumerations
[question]
[location
On 3/20/06, David Arnold wrote:
All,
I have:
\defineenumeration[questions][location=serried,text=\blank]
\setupenumerations[questions][before={\unnumberedsubsection{Exercises}
\startcolumns[n=2]},after=\stopcolumns,number=no]
\defineenumeration[answers][location=serried,text=\blank
]
\setupcolors[state=start]
\defineenumeration[question]
\setupenumerations
[question]
[location=inleft,
text={\color[blue]\bgroup},
stopper={.\egroup},
way=bysection,
sectionnumber=no]
\defineenumeration[answer]
\setupenumerations
[answer]
[location=inleft,
text
All,
Again, I have:
\defineenumeration[questions][location=serried,text=\blank]
\setupenumerations[questions][before={\unnumberedsubsection{Exercises}
\startcolumns[n=2]},after=\stopcolumns,number=no]
\defineenumeration[answers][location=serried,text=\blank]
\setupenumerations[answers][before
All,
How come \resetquestion in this source does not work as advertised in
the manual?
I also tried \setquestion{0} to no avail.
%output=pdf
\starttext
\setupindenting[medium,yes]
\setupwhitespace[medium]
\setupcolors[state=start]
\defineenumeration[question]
\setupenumerations
All,
The reset mechanism doesn't seem to work as advertised in the manual.
%output=pdf
\starttext
\setupindenting[medium,yes]
\setupwhitespace[medium]
\setupcolors[state=start]
\defineenumeration[question]
\setupenumerations
[question]
[location=inleft,
text={\color[blue]\bgroup
FabriceL. wrote:
Hi,
Hans, it's so instructive to read yout post... I have learned from
this last post 2 new commands !
However, I think the original poster wish a line who run to the right
margin, so I added to your code
in the defineenumeration a inbetween=\vskip-4pt{\hrule height
{\framed{\red #1}} }
\line{
\framed[background=color,backgroundcolor=black]{
{ {\white Exemple 1.1\ }}}\hfill
}
\hrule
\blank
To have numbers, you should use ennumeration.. And a try.. but I don't
know how to adjust things... Others have to complete...
\defineenumeration[Exemple][location
...
\defineenumeration[Exemple][location=serried,headstyle=bold,width=broad,
text={\framed[background=color,backgroundcolor=black]{\red\sc
Exemple}\textrule},margin=0.5cm,before=\blank,after=\blank]
\startExemple
This is a nice exemple.
\stopExemple
This is the end.
\stoptext
F.
one of you has to wikify
Hi,
Hans, it's so instructive to read yout post... I have learned from
this last post 2 new commands !
However, I think the original poster wish a line who run to the right
margin, so I added to your code
in the defineenumeration a inbetween=\vskip-4pt{\hrule height
1.5pt}\blank
FabriceL. wrote:
Hi,
Hans, it's so instructive to read yout post... I have learned from
this last post 2 new commands !
However, I think the original poster wish a line who run to the right
margin, so I added to your code
in the defineenumeration a inbetween=\vskip-4pt{\hrule height
a criterium
%output=pdf
\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]
\starttext
\chapter{First Chapter}
\input tufte
\beginquestion
\startquestion
What is the square root
\selectblocks
{\dotripleempty\doselectblocks}
\protect
\starttext
\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]
\chapter{First Chapter}
\input tufte
\beginquestion
Maybe the following works?
\defineenumeration[example][text=Example,coupling=solution]
\defineenumeration[solution][text=Solution,after={\hfill{$\Box$}\blank},coupling=example]
Sytse Knypstra
David Arnold wrote:
All,
Anyone have an environment something along the lines of:
\startexample
What does the coupling do?
On Dec 20, 2005, at 12:17 AM, Sytse Knypstra wrote:
Maybe the following works?
\defineenumeration[example][text=Example,coupling=solution]
\defineenumeration[solution][text=Solution,after={\hfill{$\Box$}
\blank},coupling=example]
Sytse Knypstra
David Arnold
Hi David,
The coupling is used for screendocs, where interaction has to take
place. You can read this in the cont-enp.pdf ;-)
Willi
David Arnold wrote:
What does the coupling do?
On Dec 20, 2005, at 12:17 AM, Sytse Knypstra wrote:
Maybe the following works?
\defineenumeration[example
for this
future event.
something to play with
\starttext
\defineblock[question]
\defineblock[answer]
\hideblocks[answer]
\defineenumeration[question]
\defineenumeration[answer][coupling=question]
\chapter{One}
\input tufte
\beginquestion
\startquestion
Whatever needs to be exercised.
\stopquestion
All,
I can't get \reset to work as in the manual. Is it deprecated?
Replaced with something?
%output=pdf
\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]
\starttext
All,
This doesn't seem to work as expected. Replacing the \useblocks with
\selectblocks also produces an unexpected result. What am I doing
wrong? I am trying to have only the answers from the chapter show up.
%output=pdf
\defineenumeration[question][location=serried,text=Question
Hello David,
I think this solution is from one of the ConTeXt pdfs. Or from the
mailinglist. Or
--
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][location=top,text=Frage]
\defineenumeration[answer][location=top,text
Hi David,
the answer must be found in \defineenumeration[question][..] and
\defineenumeration[answer][...] further you can use the defineblock[...]
mechanism. Please refer to the cont-enp.pdf pages 262 ff.
Kind regards
Willi
David Arnold wrote:
All,
I'd like to design an exercise
Dear ConTeXt users,
i am trying to typeset correctly proofs in a document.
I tried to use the following definition :
\defineenumeration[preuve]
[location=serried,
headstyle=slanted,
text=Preuve,
number=no,
after={\hfil\QED}]
It's almost what i want, but there's a slight problem
I've done similar things like this:
\defineenumeration[Preuve]
[location=serried,
headstyle=slanted,
text=Preuve,
number=no,
after=]
\definestartstop[preuve]
[before=\startPreuve,
after=\hfil\QED\stopPreuve]
Greetings, Taco
[EMAIL PROTECTED] wrote:
Dear ConTeXt
#1i#2}[##1]}%
\setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}
\def\dodefinecomplexenumeration[#1][#2]%
{\defineenumeration[i#1]
[\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
\setvalue{do#1title}%
{\doifnotemptyvalue{#1title}{~(\getvalue{#1title
]}%
\setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}
\def\dodefinecomplexenumeration[#1][#2]%
{\defineenumeration[i#1]
[\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
\setvalue{do#1title}%
{\doifnotemptyvalue{#1title}{~(\getvalue{#1title})}}%
\dododefinecomplexenumeration{}{#1
of the current enumeration? The resulting
list should be something like
Definition 4.3 ... pagenumber
I've managed something like
\expanded{\writetolist[MyList]{\precedingsectionnumber\numberTheorem}{}}}
(hooked into inbetween of defineenumeration) work, but it works for the
first level of enumerations
of defineenumeration) work, but it works for the
first level of enumerations only (i.e., not for \subdefinition) (well, I
don't mind it so much, but there should be a better way indeed). What is
the politically-correct way of obtaining the 4.3 number?
Second: I want some of the definitions to have
separately and
chapter number prefix is missing.
Interestingly, if Lemma and Theorem blocks are swapped, they become really
Theorem 1 and Lemma 2. The chapter number is still missing.
Has the mechanism been changed or am I doing anything wrong?
***
\defineenumeration
[Theorem]
[text=Theorem
Hello,
if I'm not mistaken as usual,
the number=no option of \ defineenumeration is broken in ConTeXt ver:
2005.06.08 fmt: 2005.6.13:
\mainlanguage [en]
\defineenumeration
[test]
[text=Test,
number=no,
location=hanging]
\starttext
\starttest
What's that?
\stoptext
produces
Hi,
There is a missing \noexpand in core-des.tex. Attached is a
fixed version of the affected macro.
Taco
Matthias Weber wrote:
Hello,
if I'm not mistaken as usual,
the number=no option of \ defineenumeration is broken in ConTeXt ver:
2005.06.08 fmt: 2005.6.13:
\mainlanguage
of \ defineenumeration is broken in ConTeXt
ver: 2005.06.08 fmt: 2005.6.13:
\mainlanguage[en]
\defineenumeration
[test]
[text=Test,
number=no,
location=hanging]
\starttext
\starttest
What's that?
\stoptext
produces ommandTest instead of just Test.
Please advise.
Matthias
Taco Hoekwater wrote:
Hi,
There is a missing \noexpand in core-des.tex. Attached is a
fixed version of the affected macro.
ah, fixed, thanks!
Hans
-
Hans Hagen | PRAGMA ADE
Hi,
I am trying to move from latex to context, but it seems that the
defaults of both differ. Consider the following
\defineenumeration
[theorem]
[
headstyle=bold,
style=italic,
location=hanging,
text=Theorem,
between=\blank
]
\starttext
Good evening.
How can I include \beginblock ... \endblock into a macro?
I have defined:
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][location=serried, coupling=answer]
\defineenumeration[answer][location=serried, coupling=answer]
\hideblocks[answer]
I'd
that blocks cannot be reasonably linked to XML-marks too?
% output=pdf
\defineenumeration[question]
[way=bychapter, coupling=answer, location=serried, text=,
distance=0pt, width=broad]
\defineenumeration[answer]
[way=bychapter, coupling=question, location=serried, text=,
distance=0pt, width=broad
701 - 800 of 824 matches
Mail list logo