Re: [NTG-context] Some questions about context

2007-03-06 Thread Xan
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

Re: [NTG-context] Some questions about context

2007-03-06 Thread Wolfgang Schuster
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

Re: [NTG-context] Some questions about context

2007-03-06 Thread Aditya Mahajan
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

Re: [NTG-context] problems with complexenumeration

2007-03-04 Thread r . ermers
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

[NTG-context] problems with complexenumeration

2007-03-03 Thread r . ermers
]% {\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

Re: [NTG-context] problems with complexenumeration

2007-03-03 Thread Aditya Mahajan
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

Re: [NTG-context] how to put header like Example 1.1 in frame?

2007-02-27 Thread Aditya Mahajan
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

Re: [NTG-context] ctags and ConTeXt

2007-02-26 Thread Aditya Mahajan
. 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

Re: [NTG-context] Theorems, etc with ConTeXt

2007-02-05 Thread Aditya Mahajan
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

[NTG-context] Theorems, etc with ConTeXt

2007-01-18 Thread Aditya Mahajan
...? 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

Re: [NTG-context] Elevated text blocks

2006-12-29 Thread Wolfgang Schuster
://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

Re: [NTG-context] Elevated text blocks

2006-12-28 Thread Wolfgang Schuster
\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

Re: [NTG-context] Elevated text blocks

2006-12-28 Thread Gerhard Kugler
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

Re: [NTG-context] counter in ConTeXt

2006-12-15 Thread Aditya Mahajan
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

[NTG-context] counter in ConTeXt

2006-12-14 Thread Michael
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

[NTG-context] Bug: missing stopper?

2006-11-27 Thread Oliver Buerschaper
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

[NTG-context] enumeration, framedtext and funny...

2006-11-22 Thread Marcel Takac
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

Re: [NTG-context] typesetting proofs

2006-11-14 Thread Taco Hoekwater
. 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

Re: [NTG-context] typesetting proofs

2006-11-14 Thread Hans Hagen
? 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

Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-11-13 Thread Oliver Buerschaper
-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

Re: [NTG-context] Columns and backgrounds problem

2006-11-10 Thread Matthias Weber
=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

[NTG-context] Columns and backgrounds problem

2006-11-07 Thread Matthias Weber
, %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

Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-11-06 Thread David Antos
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

Re: [NTG-context] beta

2006-09-15 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] common counter

2006-09-03 Thread wwl
-) \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

[NTG-context] Why doesn't this inherit?

2006-07-18 Thread David Arnold
=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

[NTG-context] Hiding subanswer blocks

2006-07-15 Thread David Arnold
\selectblocks[longanswer,longsubanswer][criterium=section] \stoplonganswers } } \defineenumeration [question] [text=, headcolor=heavygreen] \setupenumerations [question] [location=left, width=fit, distance

[NTG-context] Common counter for enumerations, way=bysection

2006-07-12 Thread David Arnold
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

Re: [NTG-context] Common counter for enumerations, way=bysection

2006-07-12 Thread Taco Hoekwater
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

Re: [NTG-context] Common counter for enumerations, way=bysection

2006-07-12 Thread David Arnold
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

Re: [NTG-context] Common counter

2006-07-11 Thread Hans Hagen
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

Re: [NTG-context] Left justify numbers on left margin edge

2006-07-11 Thread Hans Hagen
. 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

Re: [NTG-context] Nailed references with our strategy

2006-07-11 Thread Taco Hoekwater
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

Re: [NTG-context] sample={99}

2006-07-11 Thread Peter Münster
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

Re: [NTG-context] Numbering

2006-07-10 Thread Hans Hagen
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

Re: [NTG-context] Numbering

2006-07-10 Thread David Arnold
(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

Re: [NTG-context] Common counter

2006-07-10 Thread Hans Hagen
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

Re: [NTG-context] Numbering

2006-07-10 Thread Hans Hagen
... 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

Re: [NTG-context] Common counter

2006-07-10 Thread David Arnold
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

[NTG-context] Nailed references with our strategy

2006-07-09 Thread David Arnold
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

[NTG-context] sample={99}

2006-07-08 Thread David Arnold
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

[NTG-context] Losing our hang

2006-07-08 Thread David Arnold
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

Re: [NTG-context] enumerations and fomrula with same counter

2006-07-08 Thread Mojca Miklavec
\nctr{\doglobal\increment\NonFigCtr \color[red]{[\NonFigCtr]}} \defineenumeration [remark] [location=serried, width=broad, text=Remark, headstyle=bold, inbetween=\blank, before=\blank

Re: [NTG-context] Left justify numbers on left margin edge

2006-07-08 Thread Mojca Miklavec
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

Re: [NTG-context] Left justify numbers on left margin edge

2006-07-08 Thread Aditya Mahajan
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

Re: [NTG-context] Left justify numbers on left margin edge

2006-07-08 Thread Mojca Miklavec
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

Re: [NTG-context] Left justify numbers on left margin edge

2006-07-08 Thread Aditya Mahajan
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

[NTG-context] Skipping two

2006-07-07 Thread David Arnold
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

[NTG-context] Common counter

2006-07-07 Thread David Arnold
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

Re: [NTG-context] Skipping two

2006-07-07 Thread Peter Rolf
\NonFigCounter} \define\NonFigCtr{\NonFigCtrUpdate{\tfa\NonFigCounter}} \setuplabeltext[remark=Remark \NonFigCtr:] \defineenumeration [remark] [location=serried, width=broad, text=\labeltext{remark}, headstyle=bold

[NTG-context] enumerations and fomrula with same counter

2006-07-07 Thread David Arnold
\color[red]{[\NonFigCtr]}} \defineenumeration [remark] [location=serried, width=broad, text=Remark, headstyle=bold, inbetween=\blank, before=\blank, after=\blank

[NTG-context] Left justify numbers on left margin edge

2006-07-07 Thread David Arnold
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

[NTG-context] Stopcolumns New Page?

2006-07-07 Thread David Arnold
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

[NTG-context] Stopper not working

2006-07-06 Thread David Arnold
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

Re: [NTG-context] Stopper not working

2006-07-06 Thread Aditya Mahajan
=] \defineenumeration [question] [location=inleft, text=\labeltext{question}, headcolor=green] \setupenumerations [question] [location=inleft, headcolor=green, stopper=., way=bysection, sectionnumber=no] \starttext \startquestion

[NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
} \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

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread Hans Hagen
\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

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
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

[NTG-context] Hiding subanswers

2006-06-26 Thread David Arnold
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

[NTG-context] Referencing examples with identical labels in different sections

2006-06-05 Thread David Arnold
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

[NTG-context] Framed in nested enumeration

2006-05-19 Thread Aditya Mahajan
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

Re: [NTG-context] defineenumeration and setupenumeration

2006-05-04 Thread Taco Hoekwater
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

[NTG-context] defineenumeration and setupenumeration

2006-04-30 Thread WN
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

[NTG-context] continued examples

2006-04-26 Thread Christopher Creutzig
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

[NTG-context] More on margin figs

2006-03-24 Thread David Arnold
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

[NTG-context] Unexplained blank page when using textblocks

2006-03-21 Thread David Arnold
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

Re: [NTG-context] Question and answers

2006-03-20 Thread Mojca Miklavec
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

[NTG-context] Question and Answer blocks -- by section

2006-03-20 Thread David Arnold
] \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

[NTG-context] End of chapter solutions

2006-03-19 Thread David Arnold
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

[NTG-context] \resetquestion

2006-03-19 Thread David Arnold
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

[NTG-context] And finally, resetting blocks?

2006-03-19 Thread David Arnold
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

Re: [NTG-context] How to do this in ConTeXt

2006-01-05 Thread R S Ananda Murthy
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

Re: [NTG-context] How to do this in ConTeXt

2006-01-04 Thread Fabrice Larribe
{\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

Re: [NTG-context] How to do this in ConTeXt

2006-01-04 Thread Hans Hagen
... \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

Re: [NTG-context] How to do this in ConTeXt

2006-01-04 Thread FabriceL.
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

Re: [NTG-context] How to do this in ConTeXt

2006-01-04 Thread Hans Hagen
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

Re: [NTG-context] \useblocks in section

2005-12-21 Thread Hans Hagen
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

Re: [NTG-context] \useblocks in section

2005-12-21 Thread David Arnold
\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

Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread Sytse Knypstra
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

Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread David Arnold
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

Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread Willi Egger
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

[NTG-context] [Fwd: Re: Need a little help on sample file]

2005-12-20 Thread Hans Hagen
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

[NTG-context] \reset deprecated?

2005-12-20 Thread David Arnold
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

[NTG-context] \useblocks in section

2005-12-20 Thread David Arnold
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

[NTG-context] Re: Exercise sets

2005-12-19 Thread Patrick Gundlach
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

Re: [NTG-context] Exercise sets

2005-12-19 Thread Willi Egger
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

[NTG-context] typesetting proofs

2005-11-21 Thread debongnie
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

Re: [NTG-context] typesetting proofs

2005-11-21 Thread Taco Hoekwater
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

Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-29 Thread Hans Hagen Outside
#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

Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-25 Thread Taco Hoekwater
]}% \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

Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-21 Thread David Antos
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

Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-21 Thread Taco Hoekwater
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

[NTG-context] Enumeration numbering broken

2005-07-13 Thread David Antos
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

[NTG-context] Problem with defineenumeration [number=no]

2005-06-13 Thread Matthias Weber
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

Re: [NTG-context] Problem with defineenumeration [number=no]

2005-06-13 Thread Taco Hoekwater
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

Re: [NTG-context] Problem with defineenumeration [number=no]

2005-06-13 Thread Matthias Weber
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

Re: [NTG-context] Problem with defineenumeration [number=no]

2005-06-13 Thread h h extern
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

[NTG-context] Differnce between context and latex math

2005-05-28 Thread Aditya Mahajan
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

[NTG-context] Blocks in a macro?

2005-02-14 Thread Michal Kvasnicka
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

Re: [NTG-context] Blocks in a macro?

2005-02-14 Thread Michal Kvasnicka
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

<    3   4   5   6   7   8   9   >