From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68902 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Custom function Date: Sat, 4 Jun 2011 09:41:45 +0200 Message-ID: References: <4DE8F49D.3070000@stdin.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307173332 18007 80.91.229.12 (4 Jun 2011 07:42:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2011 07:42:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 04 09:42:08 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 1QSlUl-0006Oe-3K for gctc-ntg-context-518@m.gmane.org; Sat, 04 Jun 2011 09:42:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72DB3CAD79; Sat, 4 Jun 2011 09:42:06 +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 B4cydaftE8ww; Sat, 4 Jun 2011 09:42:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE346CAD4B; Sat, 4 Jun 2011 09:42:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C063FCAD4B for ; Sat, 4 Jun 2011 09:42:00 +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 jqzHO6b5uPyX for ; Sat, 4 Jun 2011 09:41:50 +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 E5DE1CAD46 for ; Sat, 4 Jun 2011 09:41:49 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p547fnrX005105 for ; Sat, 4 Jun 2011 09:41:49 +0200 Original-Received: by fxm18 with SMTP id 18so2379342fxm.14 for ; Sat, 04 Jun 2011 00:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=rvXvcMntZDeAiA1AABQeS0N1/zYH+k56ZNJtGMxZhiw=; b=H87ax0ylOP5E20x722Jhy96JJBWe9x6xtjRFeZeZmyU8JL1SL9XP3oVzttBca2i9kx p5IKlKixwCsK1ZrUMCbR7d23/8nts6TtvJuc+T9dP/auR8K/MEu9sU3BzgWwjvcgcYd6 rgcCusAzRrSwLVBW9YRfV7E6BR1mJHCQxIrAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=RV8J2U8VsJfzUGQGWjCx+uYV4VCZ9VOp9Lu4jkmWpcQTWDuGhIck0fTKWuUwqtdMul 5idRv+OWIJkm+0mdFD0TdQPu9Rtdl6je8ayVhOxWAUwX4cvpKXT76q7g60hOt94KlS1L 5ROoc/hCamNb/mk3WuU3mPnax8DhHq021/qGs= Original-Received: by 10.223.7.8 with SMTP id b8mr1127047fab.19.1307173309005; Sat, 04 Jun 2011 00:41:49 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EE93A.dip.t-dialin.net [91.14.233.58]) by mx.google.com with ESMTPS id h1sm702980fag.11.2011.06.04.00.41.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Jun 2011 00:41:47 -0700 (PDT) In-Reply-To: <4DE8F49D.3070000@stdin.fr> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEPHFNSb - e4c7b386baf5 - 20110604 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68902 Archived-At: Am 03.06.2011 um 16:50 schrieb St=E9phanie Vilayphiou: > Hello, > I'm rather new to ConTeXt and would like to simplify my document, in orde= r 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 Ton= ka > }}} > \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? \definedescription [infos] [location=3Dmargin, command=3D\groupedcommand{\switchtobodyfont[6pt]}{\endgraf}] \starttext \startinfos{Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonk= a} \input tufte \stopinfos \stoptext Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________