From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68899 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?St=E9phanie_Vilayphiou?= Newsgroups: gmane.comp.tex.context Subject: Custom function Date: Fri, 03 Jun 2011 16:50:05 +0200 Message-ID: <4DE8F49D.3070000@stdin.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307168449 30007 80.91.229.12 (4 Jun 2011 06:20:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2011 06:20:49 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 04 08:20:45 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QSkE0-0007Cd-7u for gctc-ntg-context-518@m.gmane.org; Sat, 04 Jun 2011 08:20:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63FA7CAD79; Sat, 4 Jun 2011 08:20:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9c6n0w1IiL-l; Sat, 4 Jun 2011 08:20:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43DE8CAD47; Sat, 4 Jun 2011 08:20:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 907A3CAD74 for ; Fri, 3 Jun 2011 16:50:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0PkQLg8ZNfNo for ; Fri, 3 Jun 2011 16:50:37 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 0D755CAD4C for ; Fri, 3 Jun 2011 16:50:37 +0200 (CEST) Original-Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p53EoaDi022644 for ; Fri, 3 Jun 2011 16:50:36 +0200 X-Originating-IP: 217.70.178.134 Original-Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id C934FA8075 for ; Fri, 3 Jun 2011 16:49:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at #File managed by puppet, do not edit locally Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id yGIfma-1baeI for ; Fri, 3 Jun 2011 16:49:54 +0200 (CEST) X-Originating-IP: 213.49.236.80 Original-Received: from [192.168.1.4] (ip-213-49-236-80.dsl.scarlet.be [213.49.236.80]) (Authenticated sender: stephanie@stdin.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6240BA807F for ; Fri, 3 Jun 2011 16:49:54 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110503 Lightning/1.0b3pre Thunderbird/3.1.10 X-Bayes-Prob: 0.4403 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.70.183.195; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEPqOA02 - c919122b2ce1 - 20110603 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Mailman-Approved-At: Sat, 04 Jun 2011 08:20:27 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:68899 Archived-At: Hello, I'm rather new to ConTeXt and would like to simplify my document, in = order to simplify processing of documents. I have this: \defineparagraphs[infos][n=3D1] \setupparagraphs[infos][1][ style=3D{\switchtobodyfont[6pt]}, %command=3D????, ] \starttext \startinfos \smash{\lower22pt\hbox{ \margintext[left]{ Edition de Trilogie de l'enfer en novembre 2011 chez Sens = Tonka }}} \stopinfos \input tufte \stoptext I would like to avoid putting "\inmargin" and = "\smash{\lower22pt\hbox{..." by hand and add it directly to the = setupparagraphs. Can I do such a thing? Thanks for help! St=E9phanie -- = St=E9phanie Vilayphiou http://stdin.fr/ +32 (0)4 89 00 88 59 ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________