From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103926 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Text in the margin Date: Wed, 10 Apr 2019 23:04:25 +0200 Message-ID: <494222e1-0695-30a1-c4bb-7df8e406fd23@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0675566056925391146==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198618"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.13 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 10 23:06:19 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hEKQE-000pVt-Ue for gctc-ntg-context-518@m.gmane.org; Wed, 10 Apr 2019 23:06:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B2270119D40; Wed, 10 Apr 2019 23:04:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J2kjFyXwK9sN; Wed, 10 Apr 2019 23:04:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E00F3119D2F; Wed, 10 Apr 2019 23:04:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9F8DB119D40 for ; Wed, 10 Apr 2019 23:04:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DbZkHY54CthB for ; Wed, 10 Apr 2019 23:04:28 +0200 (CEST) Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 12B95119D1B for ; Wed, 10 Apr 2019 23:04:28 +0200 (CEST) Original-Received: by mail-wm1-f46.google.com with SMTP id z6so463734wmi.0 for ; Wed, 10 Apr 2019 14:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=zAXChdPPuXCl+ZgWCBt743EA3h1qTT0VHYvUDnmTOAc=; b=lgj/omrc8e4Frr+O45Gmu5LdLpSdPwIcAZ/S+6L1yzXCYlyPWwlDtXnCtS4G2Lj7eJ Cpq1f2jf/husj5xl45fMNS81LfzZymQ96nM3Cn7ubUQVmiScrkAeEC+2PvyditNgpTQk EbcrkYt/SpFCcFOWqTeRm6WSswhBOaEE35ahjhI+hyiG/nN9Ib0zEo4IGgEZ+V7JyzwA 5cT128OytomMbMBgUXzmVmaN3iQSESLLmT+3ldjh7TWyUDv9wkzRC6WUnjsrYBU+m8gC 5LS/t+PGDzQtjlpQzT1LarNJPjY+QX86gy06efOwxay3S8/q0OtkVYPI0mJw/VtWOSLy JLkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=zAXChdPPuXCl+ZgWCBt743EA3h1qTT0VHYvUDnmTOAc=; b=LXppwoog5ObPq5kM1qumTML6oeYmaa7CpXQ3Sc92pG5gJc6/5rGQcpw8tjehzHUOhy rdii3XCDRbnLJs1IJ6bSNSBqjc4yg54G66SXYGSabiumPp20HODagav81m3PvrLRElbn 2EA5pgOWs3+edD6aiRdgiwiMb3SyC/VKcipEGGBJdz1x442ZM+aUvwVP/BjlA9vbTLy8 1eRWQEFX9dMpcRpj+mUjgswuGrdT4r30NaHI3YxwsuUTZqSqdVWbvFMpBxeIan6iAmPz MlkQCXvOMD0OkwZ27I8aWvsN/6bbr5FSQICqAVNFxC+t/cQE/hoJNpfcgmVbMIH47mgA 0cYg== X-Gm-Message-State: APjAAAWiY6BNlMJ2nJWE06WynAsp/Pj+lIeKvX85eLkosjSmgA4oMyIF NCdsFRLeyoeNwCGjzXr9I3zJ9gA0 X-Google-Smtp-Source: APXvYqxpyDFnHhhxGPff5NINcoYXsU6iNPiiogGEXcRDggjNW3Lc8FUxARJkSNDqOzV2AwqYJreKfw== X-Received: by 2002:a1c:9991:: with SMTP id b139mr3959829wme.53.1554930267710; Wed, 10 Apr 2019 14:04:27 -0700 (PDT) Original-Received: from [192.168.1.16] (x4d077190.dyn.telefonica.de. [77.7.113.144]) by smtp.gmail.com with ESMTPSA id v16sm67750060wro.48.2019.04.10.14.04.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 14:04:26 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:103926 Archived-At: This is a multi-part message in MIME format. --===============0675566056925391146== Content-Type: multipart/alternative; boundary="------------27790312628F159DAF3EE5EA" Content-Language: en-US This is a multi-part message in MIME format. --------------27790312628F159DAF3EE5EA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Fabrice Couvreur schrieb am 10.04.2019 um 11:58: > Hi, > Wolfgang suggested this to put text in the margin but since some > updates it does not work anymore : > > \setuplayout > [width=12cm, >    rightmargin=5cm] > > \defineuserdata [margintext] [alternative=margintext] > > \defineuserdataalternative [margintext] > [renderingsetup=userdata:margintext] > > \startsetups [userdata:margintext] >   \margindata >     [inright] > [%style=\smallbodyfont, >      style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, >      align={flushleft,broad}] >     {{\bf Exemple — }\getinlineuserdata} > \stopsetups > > \starttext > \startuserdata[margintext] >  \input ward > \stopuserdata > \stoptext Put text (\dontleavehmode works also because it starts a paragraph) after \stopuserdata to flush the content of the margin block. Wolfgang --------------27790312628F159DAF3EE5EA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Fabrice Couvreur schrieb am 10.04.2019 um 11:58:
Hi,
Wolfgang suggested this to put text in the margin but since some updates it does not work anymore :

\setuplayout
  [width=12cm,
   rightmargin=5cm]

\defineuserdata [margintext] [alternative=margintext]

\defineuserdataalternative [margintext] [renderingsetup=userdata:margintext]

\startsetups [userdata:margintext]
  \margindata
    [inright]
    [%style=\smallbodyfont,
     style={\switchtobodyfont[9pt]},
     width=\rightmarginwidth,
     align={flushleft,broad}]
    {{\bf Exemple — }\getinlineuserdata}
\stopsetups

\starttext
\startuserdata[margintext]
 \input ward
\stopuserdata
\stoptext

Put text (\dontleavehmode works also because it starts a paragraph)
after \stopuserdata to flush the content of the margin block.

Wolfgang

--------------27790312628F159DAF3EE5EA-- --===============0675566056925391146== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0675566056925391146==--