From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33710 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Some questions about context Date: Tue, 6 Mar 2007 11:14:59 -0500 (EST) Message-ID: References: <45EC1087.7040109@telefonica.net> <20070305144429.a3878c60.schuster.wolfgang@googlemail.com> <45EC79BA.2000509@telefonica.net> <45EC7BBF.4070709@telefonica.net> <45ED33D9.9050206@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1173197962 6050 80.91.229.12 (6 Mar 2007 16:19:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2007 16:19:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 06 17:19:05 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HOcNU-0002HK-UY for gctc-ntg-context-518@m.gmane.org; Tue, 06 Mar 2007 17:19:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CB921B6; Tue, 6 Mar 2007 17:14:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06215-07-2; Tue, 6 Mar 2007 17:14:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30A651AB; Tue, 6 Mar 2007 17:14:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D41381AB for ; Tue, 6 Mar 2007 17:14:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06215-07 for ; Tue, 6 Mar 2007 17:14:33 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id 25454173 for ; Tue, 6 Mar 2007 17:10:44 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 45ED9383.E9C6E.24413 ; 6 Mar 2007 11:15:00 -0500 In-Reply-To: <45ED33D9.9050206@telefonica.net> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33710 Archived-At: 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=3Ditalic,text=3DTheorem,location=3Dhan= ging] >> >> \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, >> feel free to ask. > > Thank you very much for give me this opportunity. > Enumerations work but I need more customization: > > 1) How can you change the style of the text (Theorem in our example)? \defineenumeration[theorem][headstyle=3Dnormal|bold|italic|(any font = commnad)] > 2) How can you change the position of the counter: "1 Theorem" rather > than "Theorem 1" No simple way right now. It is possible to do that using left and = right keys. So, something like \defineenumeration[theorem][text=3D,right=3D{ Theorem}] If you do not want the dot after the number, say stopper=3D, above. > 3) Is it possible to change the counter? In LaTeX, with much effort and > help, I could write some code for displaying something like: > > Theorem [number of theorem].[numberofpageitappears]. .... > > If you want to see the code, I could give you In ConTeXt this is much easier. \defineenumeration[theorem][conversion=3Dmyconversion] so, you can do something like \def\withpagenumbercommand#1{\numbers{#1}.blah\currentpage} \defineconversion [withpagenumber] [\withpagenumbercommand] \defineenumeration[test][conversion=3Dwithpagenumber] (I tested this, and this is not working. In fact conversion is not = working with enumerations). This will be fixed soon. If you need it = immediately, there is just a one line change as a workaround. > 4) What about the indentation of the "body" of the theorem?. If you put: > > \starttheorem > This is an important theorem skjdskad sda sdas dsad asdas das dsafs f > dsfsdfsdf dfsdf sdf dsfsd fsdfsd fds fdsf ds fsd fds fsdfsdfs fdsfsd f > \stoptheorem > > the text is indented a little bit after the begginning of the line. We > could have a normal indentation (like AMS theorem do)? Did I say, that is the way I like it ;) It you do not, do not say = location=3Dhanging. > 5) Is there an equivalent to \newenvironment in latex? I think about the > demostration: > > \newenvironment{demo}{\medskip Demostraci=F3.}{\hfill $\Box$} > Wolfgang answered the equivalent way to do it in ConteXt. > And another question (in other topic): how we can do lines at header and > footer like fancyheaders in latex? \setupbackgrounds[header][text][topframe=3Don,rulethickness=3D1pt] etc. Aditya