From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95379 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \defineparagraphs Date: Sat, 09 Jul 2016 17:10:30 +0200 Message-ID: <578113E6.30001@gmail.com> References: <51175.1467978804@inradius.net> <577FA895.5070003@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1852035335355685646==" X-Trace: ger.gmane.org 1468077076 11008 80.91.229.3 (9 Jul 2016 15:11:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 15:11:16 +0000 (UTC) Cc: mailing list for ConTeXt users To: John Kitzmiller Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 09 17:11:04 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLtuJ-0003b2-7y for gctc-ntg-context-518@m.gmane.org; Sat, 09 Jul 2016 17:11:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C88A10B40; Sat, 9 Jul 2016 17:10:46 +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 ArTxtjLCj70X; Sat, 9 Jul 2016 17:10:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 77EF610BE8; Sat, 9 Jul 2016 17:10:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D2EE210B1A for ; Sat, 9 Jul 2016 17:10:44 +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 H4otQ1I8UFZe for ; Sat, 9 Jul 2016 17:10:44 +0200 (CEST) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (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 1067910AF4 for ; Sat, 9 Jul 2016 17:10:33 +0200 (CEST) Original-Received: by mail-wm0-f49.google.com with SMTP id n127so43492676wme.1 for ; Sat, 09 Jul 2016 08:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to; bh=ETY1xxoBIZyd/q6OLDzpwM8miy6KA1FEwPnSmx7r+UM=; b=SwZntVBQWcwZIfv20nxi3E+FlFT6NvwdkvQxAUMDfe6nHRig5o6kXbiqOqOy41U600 BvKXU7bZTxlRiW2oCMf/WeKpufKaOZ/OWiFHRfnWK/9kqoRcJ1RLNqy9c1ciM/Nlad+m yU2x4bUB2IfZnzc6dT4fJuSGERH3sAWiY8DVDM5vngbUP9cuTbOeXxisCWY5yzZ7AkOR t5zqV6YPBy9pgfYUeRKWFYlduD6Ceon2Rk3DkDPVz3J9MuLZwClJ7Rw9U3ZdeRy//yVS WJF+7l6JsdwXWT15K9PVf9pBOTOM+CeiNyRoSnknsBPZFgQ3U/5A8Z5Z0qEmNKOkwXx9 iALA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to; bh=ETY1xxoBIZyd/q6OLDzpwM8miy6KA1FEwPnSmx7r+UM=; b=LOGI+b0rlyRNrotcmKJBr0Hrj7K948NvGLiQl5IjAenAmb/LZKEUOLNpkydBG5IsYe SGBa2YV+dE9gsfjx46yEoPYA/mUd+4hOAWyw9TyfvaV+t5K9GqsXCICOZC9B/UONkZHc bSsiRLoC+DK1rH7OTz+Fk+v1EgZi2Ggp7BpiTBaJtSivwzxmIxGxqSWu3CpkpR0Z1mY8 iZ45IglIiwSsgPpEIY0IwyLhkIRd9eWxeWDwkTwD3mhSSTbMbqBgV5+463mdCNui18lz IyUX6ueVlybZ0/s4QFMuEALmCQarwDV9ocVlULv5vlDGtiaZXXBwgU4uwvxuzn3heJJZ yq2g== X-Gm-Message-State: ALyK8tJbX4c1/LvZshKjQ1muGImy60gJmN4ufkBUqXi/KQ7sTq0ErNTd/saQux/Q34Np6A== X-Received: by 10.28.132.15 with SMTP id g15mr8657700wmd.67.1468077033494; Sat, 09 Jul 2016 08:10:33 -0700 (PDT) Original-Received: from keima.localdomain (x2f2bc54.dyn.telefonica.de. [2.242.188.84]) by smtp.gmail.com with ESMTPSA id j2sm5719350wjz.15.2016.07.09.08.10.32 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jul 2016 08:10:33 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:95379 Archived-At: This is a multi-part message in MIME format. --===============1852035335355685646== Content-Type: multipart/alternative; boundary="------------050709070203010308060801" This is a multi-part message in MIME format. --------------050709070203010308060801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > John Kitzmiller > 9. Juli 2016 um 14:48 > > > Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for > it to work here (and scale down the cow to make it fit in the barn.) > > I am looking into combinations to center the graphic in the second x > box, and make a \setupcombination[mycombination] similar to > \defineparagraph[Mypar] to reduce typing. \definecombination[john][nx=2,ny=1,width=.5\textwidth] \startcombination[john] {...}{} {...}{} \stopcombination > \tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}? The command changes the vertical position of the content (by putting it into an \hbox and changing the height/depth values). \setupblackrules[width=2cm,height=2cm] \setuplayout[grid=yes]\showgrid \starttext XXX {\blackrule} XXX \tbox{\blackrule} XXX \bbox{\blackrule} XXX \stoptext Wolfgang --------------050709070203010308060801 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
9. Juli 2016 um 14:48


Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for it to work here (and scale down the cow to make it fit in the barn.)

I am looking into combinations to center the graphic in the second x box, and make a \setupcombination[mycombination] similar to \defineparagraph[Mypar] to reduce typing.
\definecombination[john][nx=2,ny=1,width=.5\textwidth]

\startcombination[john]
    {...}{}
    {...}{}
\stopcombination
\tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}?
The command changes the vertical position of the content (by putting it into an \hbox and changing the height/depth values).

\setupblackrules[width=2cm,height=2cm]

\setuplayout[grid=yes]\showgrid

\starttext
XXX      {\blackrule}
XXX \tbox{\blackrule}
XXX \bbox{\blackrule}
XXX
\stoptext

Wolfgang
--------------050709070203010308060801-- --===============1852035335355685646== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1852035335355685646==--