From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68967 Path: news.gmane.org!not-for-mail From: Alexandre Leray Newsgroups: gmane.comp.tex.context Subject: Custom function Date: Wed, 08 Jun 2011 02:38:07 +0200 Message-ID: <4DEEC46F.2080409@stdin.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307493547 29644 80.91.229.12 (8 Jun 2011 00:39:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 00:39:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 08 02:39:01 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 1QU6nT-0007bG-Ab for gctc-ntg-context-518@m.gmane.org; Wed, 08 Jun 2011 02:38:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B092DCAD67; Wed, 8 Jun 2011 02:38:58 +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 kqutN5NEDJbH; Wed, 8 Jun 2011 02:38:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A46BCAD27; Wed, 8 Jun 2011 02:38:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5986ACAD27 for ; Wed, 8 Jun 2011 02:38:50 +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 D2SsjS8ABJVg for ; Wed, 8 Jun 2011 02:38:38 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 4583BCAD23 for ; Wed, 8 Jun 2011 02:38:38 +0200 (CEST) Original-Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p580cbHE000350 for ; Wed, 8 Jun 2011 02:38:37 +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 DDAC7A8072 for ; Wed, 8 Jun 2011 02:37:56 +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 Ea7vUDYecDG3 for ; Wed, 8 Jun 2011 02:37:55 +0200 (CEST) X-Originating-IP: 83.101.33.8 Original-Received: from [192.168.178.35] (unknown [83.101.33.8]) (Authenticated sender: alexandre@stdin.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 544A7A8068 for ; Wed, 8 Jun 2011 02:37:53 +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.0001 (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: 07ERcCBta - b98b60051cb8 - 20110608 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:68967 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=1] \setupparagraphs[infos][1][ style={\switchtobodyfont[6pt]}, %command=????, ] \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! Alex ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________