Re: [NTG-context] Formatting enumerations in MKIV

2013-05-01 Thread Lance Larsen
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

[NTG-context] Formatting enumerations in MKIV

2013-04-30 Thread Lance Larsen
. 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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian
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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Wolfgang Schuster
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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian
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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
! 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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
\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

Re: [NTG-context] Resetting enumeration numbers

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

Re: [NTG-context] Resetting enumeration numbers

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

Re: [NTG-context] Resetting enumeration numbers

2013-04-04 Thread Aditya Mahajan
? \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

Re: [NTG-context] Resetting enumeration numbers

2013-04-04 Thread Aditya Mahajan
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

Re: [NTG-context] Resetting enumeration numbers

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

Re: [NTG-context] \setupenumerations, alternative=serried is ignored when setting up multiple enumerations

2013-03-26 Thread Sietse Brouwer
) \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

Re: [NTG-context] Bug in \column

2013-03-22 Thread Xan
={\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

[NTG-context] Bug in \column

2013-03-18 Thread Xan
][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

[NTG-context] \startplacefigure breaking paragraph flow

2013-02-10 Thread Marcin Borkowski
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Wolfgang Schuster
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Jaroslav Hajtmar
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
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

[NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations

2012-10-23 Thread Shane Peelar
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

Re: [NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations

2012-10-23 Thread Wolfgang Schuster
: \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

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
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

Re: [NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations

2012-10-23 Thread Wolfgang Schuster
][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

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 65

2012-10-23 Thread Shane Peelar
][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

Re: [NTG-context] Misplaced figure

2012-10-09 Thread Wolfgang Schuster
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

[NTG-context] about \hangaround, defineenumeration

2012-05-19 Thread dalyoung
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

[NTG-context] Wiki: examples

2012-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
\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

Re: [NTG-context] Enumerations: location=serried ignored (Wolfgang Schuster)

2012-04-03 Thread Jeong Dalyoung
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

[NTG-context] Enumerations: location=serried ignored

2012-03-28 Thread Diane Uschner
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

Re: [NTG-context] Enumerations: location=serried ignored

2012-03-28 Thread Wolfgang Schuster
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

Re: [NTG-context] Enumeration counter way bychapter

2012-03-12 Thread Stefan Müller
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

Re: [NTG-context] Enumeration counter way bychapter

2012-03-08 Thread Stefan Müller
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

Re: [NTG-context] Command in enumeration title

2012-03-05 Thread Stefan Müller
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

Re: [NTG-context] Itemize Prefixes

2012-03-05 Thread Kip Warner
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

Re: [NTG-context] Itemize Prefixes

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

[NTG-context] Itemize Prefixes

2012-03-04 Thread Kip Warner
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

Re: [NTG-context] Itemize Prefixes

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

[NTG-context] Command in enumeration title

2012-02-26 Thread Stefan Müller
. \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

[NTG-context] Enumeration counter way bychapter

2012-02-26 Thread Stefan Müller
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

Re: [NTG-context] Command in enumeration title

2012-02-26 Thread Rogers, Michael K
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

[NTG-context] Is alternative=serried broken in enumerations?

2012-02-22 Thread Janne Junnila
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

Re: [NTG-context] Is alternative=serried broken in enumerations?

2012-02-22 Thread Wolfgang Schuster
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

[NTG-context] label in enumerations broken?

2012-02-19 Thread Andreas Mang
) % % MINIMAL EXAMPLE % \setupenumerations% [% alternative=hanging,% width=broad,% headstyle=bold,% titlestyle=bold,% ]% \defineenumeration[mydefinition]% [text=Definition,% style=italic,% title=yes,% listtext={Definition }% ]% \starttext

Re: [NTG-context] label in enumerations broken?

2012-02-19 Thread Wolfgang Schuster
% 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

[NTG-context] closesymbol in enumeration broken?

2012-02-19 Thread Andreas Mang
) \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

Re: [NTG-context] closesymbol in enumeration broken?

2012-02-19 Thread Wolfgang Schuster
### (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

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
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

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
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

[NTG-context] \startitemize[columns] broken with backgrounds?

2012-01-22 Thread Otared Kavian
=darkred] \define\ExoCommand{\incrementnumber[MyExoNumber] \textrule[top]{Exercise \getnumber[MyExoNumber]} \startbackground[frame=off,leftframe=on, framecolor=darkred]} \defineenumeration[exo] [location=hanging, width=fit, text

[NTG-context] howto get good references in mkiv?

2012-01-05 Thread Rene van Hassel
[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

[NTG-context] problem with coupling (mkiv)

2012-01-02 Thread Rene van Hassel
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

[NTG-context] problem with cross references

2012-01-02 Thread Rene van Hassel
[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

[NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
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

Re: [NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
=reverse] \defineenumeration[Lecture] [location=hanging, text={Lecture n° {\convertednumber[ReverseNumberOrder]}.}, between=, before={\incrementnumber[ReverseNumberOrder]}, number=no, after={\hrule\blank}] \starttext \startLecture Tuesday December 6th

Re: [NTG-context] Reverse numbering

2011-12-12 Thread Aditya Mahajan
\definenumber[ReverseNumberOrder][numberorder=reverse] \defineenumeration[Lecture] [location=hanging, text={Lecture n° {\convertednumber[ReverseNumberOrder]}.}, between=, before={\incrementnumber[ReverseNumberOrder]}, number=no, after={\hrule\blank

Re: [NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
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

Re: [NTG-context] Reverse numbering

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

[NTG-context] Reverse numbering for enumerations?

2011-12-09 Thread Otared Kavian
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

[NTG-context] Enumeration in mkiv

2011-12-07 Thread Otared Kavian
\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

Re: [NTG-context] Resetting references or local references?

2011-11-28 Thread Otared Kavian
« 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

Re: [NTG-context] Resetting references or local references?

2011-11-28 Thread Wolfgang Schuster
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

Re: [NTG-context] interaction colors and page break

2011-10-07 Thread luigi scarso
. \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

[NTG-context] interaction colors and page break

2011-10-06 Thread Stefan Müller
] \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

Re: [NTG-context] interaction colors and page break

2011-10-06 Thread luigi scarso
. \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

Re: [NTG-context] interaction colors and page break

2011-10-06 Thread Stefan Müller
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

Re: [NTG-context] interaction colors and page break

2011-10-06 Thread Stefan Müller
] \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

Re: [NTG-context] interaction colors and page break

2011-10-06 Thread Christian
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

Re: [NTG-context] theorem environment: Is *enumeration* or the `annotation` module recommended?

2011-07-24 Thread Paul Menzel
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

Re: [NTG-context] theorem environment

2011-07-13 Thread Wolfgang Schuster
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

[NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller
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

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Aditya Mahajan
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

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller
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

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller
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

Re: [NTG-context] alternating items in an itemization

2011-05-24 Thread Wolfgang Schuster
-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

Re: [NTG-context] alternating items in an itemization

2011-05-24 Thread Jesse Alama
,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

[NTG-context] alternating items in an itemization

2011-05-23 Thread Jesse Alama
={\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

Re: [NTG-context] Annotation and background color

2011-05-08 Thread Otared Kavian
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

Re: [NTG-context] Annotation and background color

2011-05-07 Thread Otared Kavian
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

Re: [NTG-context] Annotation and background color

2011-05-07 Thread Wolfgang Schuster
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

Re: [NTG-context] about \framed and \inframed

2011-03-05 Thread Wolfgang Schuster
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

[NTG-context] about \framed and \inframed

2011-03-04 Thread 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=broad, number=yes, before={\blank[big]}, after

[NTG-context] One-off theorem titles

2011-03-03 Thread S Barmeier
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

Re: [NTG-context] One-off theorem titles

2011-03-03 Thread Otared Kavian
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

Re: [NTG-context] One-off theorem titles numberstyle

2011-03-03 Thread S Barmeier
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

Re: [NTG-context] One-off theorem titles numberstyle

2011-03-03 Thread Otared Kavian
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

Re: [NTG-context] One-off theorem titles

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

Re: [NTG-context] One-off theorem titles

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

Re: [NTG-context] references

2011-02-28 Thread Stefan Müller
: \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

Re: [NTG-context] references

2011-02-28 Thread Stefan Müller
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

[NTG-context] Bug against minimals

2010-12-16 Thread Xan
] \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

[NTG-context] enumeration counters, way=bysection

2010-11-25 Thread Yury G. Kudryashov
\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

Re: [NTG-context] enumeration counters, way=bysection

2010-11-25 Thread Wolfgang Schuster
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

Re: [NTG-context] enumeration counters, way=bysection

2010-11-25 Thread Yury G. Kudryashov
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

Re: [NTG-context] \todo

2010-11-23 Thread Glen Callaghan
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

Re: [NTG-context] \todo

2010-11-23 Thread Procházka Lukáš
... 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

Re: [NTG-context] Defining a command for enumeration+block

2010-11-20 Thread Glen Callaghan
--- \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

Re: [NTG-context] \definenamespace

2010-11-19 Thread Wolfgang Schuster
\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

Re: [NTG-context] \definenamespace

2010-11-19 Thread Hans Hagen
]} {\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

Re: [NTG-context] \definenamespace

2010-11-19 Thread Aditya Mahajan
} {\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

[NTG-context] Defining a command for enumeration+block

2010-11-18 Thread Glen Callaghan
. 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

<    1   2   3   4   5   6   7   8   9   >