From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80239 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Controlling Appearance of \inoutermargin Date: Sun, 13 Jan 2013 22:44:59 +0100 Message-ID: References: <5F92063A-F7A5-4673-9000-2CA6461D94A9@stien.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358113546 15763 80.91.229.3 (13 Jan 2013 21:45:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2013 21:45:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 13 22:46:04 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TuVNR-0000X4-Ht for gctc-ntg-context-518@m.gmane.org; Sun, 13 Jan 2013 22:46:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0F96101F2; Sun, 13 Jan 2013 22:45:44 +0100 (CET) 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 sn+aQ+SuVrYe; Sun, 13 Jan 2013 22:45:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F2037101E6; Sun, 13 Jan 2013 22:45:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A59B9101E6 for ; Sun, 13 Jan 2013 22:45:34 +0100 (CET) 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 3KxIli6Coc4l for ; Sun, 13 Jan 2013 22:45:32 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 72F31101E2 for ; Sun, 13 Jan 2013 22:45:32 +0100 (CET) Original-Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0DLjUI1007472 for ; Sun, 13 Jan 2013 22:45:30 +0100 Original-Received: by mail-ea0-f175.google.com with SMTP id d1so284176eab.6 for ; Sun, 13 Jan 2013 13:45:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Cr6TO8fEPQsjL5pQlJGVSPBLIFQTrihLo5qMBbkM92c=; b=jE+biKWukWgYtF8NanXo9Q4ZK4YQx9aEWq9zxdYloXUaQofn0SAj8Z4yFIjw+ta7UA vbXm2ePVud7+ad2kPF87s2x8Tu6lvKKnMCKV0Vu7Q8l5+z4914APAW/wUoFGFMJ91v0n LBb8IKDjH2xFd5r/Xte57hFHAn2zfiVgHW9kJ777QXPFhw3BH5XjMh4m4NSf9fAFO7rF qCZoZS4YKvhxrp5HXE6snt8OG0C+wlD0jhbEsmSNhegqDFnbr6HH24JCOdSgF09hSiIO WQhX8r/TkiPtPaSS+2G+0ORqAkOWeBXxUNCHULSb7ZS0zw9rKeT3mpcnzeLXVaP8MXRN fLJA== Original-Received: by 10.14.207.6 with SMTP id m6mr223298369eeo.10.1358113530470; Sun, 13 Jan 2013 13:45:30 -0800 (PST) Original-Received: by 10.14.101.129 with HTTP; Sun, 13 Jan 2013 13:44:59 -0800 (PST) In-Reply-To: <5F92063A-F7A5-4673-9000-2CA6461D94A9@stien.de> X-Bayes-Prob: 0.9423 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.175; 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: 0NILxJuSi - e956633b9c23 - 20130113 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80239 Archived-At: Hi Malte, This mail contains (1) an answer to your question; (2) a minimal working example; (3) an explanation of how I found this out (I had never heard of inoutermargin before). (1) An answer to your question. I grepped the ConTeXt source code for `inoutermargin`, and found out it is an instance of the `margindata` class. This is its setup command: \setupmargindata[inoutermargin][style=bold,color=red] (2) A minimal working example. It is nice to include an MWE when you ask a question -- it makes things easier for people who want to try to answer the question, because they don't have to think up their own example. Anyway, I'm including this one for the benefit of people who stumble across this e-mail from the future, and want to play with \inoutermargin. :-) \setuppapersize[A8,landscape] % w x h is about 7.5x5 \setuplayout[ backspace=1cm, width=3cm, % leftmargin=0.5cm, leftmargindistance=2mm, % rightmargin=2cm, rightmargindistance=2mm] \setuppagenumbering[alternative=doublesided] \showframe \startbuffer asdf asdf asdf \inoutermargin{bsdf} \page[yes] \stopbuffer \setupmargindata [inoutermargin] [style=bold,color=red] \starttext \getbuffer \getbuffer \getbuffer \stoptext (3) How I found the answer Whenever I want to learn about a command I don't know yet, I grep for it in the source code. (I ignore bits like 'setup' or 'start'.) I've even got a shell command for it, to make searching the source as easy as possible: function grepcon { cd /opt/context/tex/texmf-context/tex/context/base/ grep -R $* * } `grepcon inoutermargin` gave me two hits in mkii files, and one in typo-mar.mkiv: \definemargindata[inoutermargin][\v!outer][...various style setups...]. That set me on the right track. If you frequently need to work out how commands work, I cannot recommend enough that you make your own source-searching function and use it enough. For me, at least, it's enormously helpful. Cheers, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________