From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95255 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Equivalent in ConTeXt mkiv for LaTeX's picture environment? Date: Mon, 27 Jun 2016 01:16:35 +0200 Message-ID: <57706253.6040800@gmail.com> References: <576ECDFF.9030001@fehige.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7154329694933814400==" X-Trace: ger.gmane.org 1467008665 18178 80.91.229.3 (27 Jun 2016 06:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 06:24:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 27 01:17:19 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 1bHJIl-00079q-Js for gctc-ntg-context-518@m.gmane.org; Mon, 27 Jun 2016 01:17:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFCB11010D; Mon, 27 Jun 2016 01:16:52 +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 hclC15OKaHna; Mon, 27 Jun 2016 01:16:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 932CC10110; Mon, 27 Jun 2016 01:16:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 926211010D for ; Mon, 27 Jun 2016 01:16:49 +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 DFMmVonjGpx4 for ; Mon, 27 Jun 2016 01:16:49 +0200 (CEST) Original-Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (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 05FCF1010A for ; Mon, 27 Jun 2016 01:16:38 +0200 (CEST) Original-Received: by mail-wm0-f66.google.com with SMTP id c82so20248144wme.3 for ; Sun, 26 Jun 2016 16:16:38 -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:subject:references :in-reply-to; bh=0qdYuq18jb/tc2/+RNjRygIIUzq/W52oHXoqjyimPkI=; b=k++j69GMKecMEs9a3Myymn40SeJqUFpf6SCyX2UeIOCzV+mrd2N3E4RgWa3BehPqO3 szzQ3fPGes0eDiRBBqci334V0VQ/oYVKeAkABQ9GbqxTO34dQBq/EYe2j3xOZ3EFkeJ9 YDgY3wJ2Oh4svfiGvzWyTAzxC0GaN6aReG/FxFTSKKWaeMwdJT48fhKNv647816KbE+R 2GGz2mxZxDPif6nCEppdq2vYUxg6wRVYbD9y7xqQ7hVnIJoY4AqGJHuC1NvYjFp/FJvQ QB82cjRNDU/zmAwq0LnjXKNyfLug+ywiHs6XuzejBM74tMbvBOvGhd3YgzjY780QoI+o 919Q== 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 :subject:references:in-reply-to; bh=0qdYuq18jb/tc2/+RNjRygIIUzq/W52oHXoqjyimPkI=; b=h3UycszBTbI6cCr002bdu9iB6Bffd1GG3ulD06oOhiFwf10oOOJejTB+peyVkrGVKJ 30wimFJhKk4Wd2dtBLufXDgkNk/q1ldpnCU/V+bxnIVZ0uO57Jzqx2SSr1VQdfrj21EI /S7Lm8igYCe03etc8FwFs0FFyE3Q7kmtmQnw3GiltEhvaE6ZfnoV6RfTp217HgY2XBh3 1INEY9BYlbhLvdCqgYFL1TLlE2lBnMOtvbwELN3D7nym8SF/496pVLFLwioLNHn63j+4 sWfLbST0+SIcwd/iqf56RqMK74/guj82YXYv0Vo6mhbIFjX5lo4DvDkEf+BxXOtaIPq6 A9kQ== X-Gm-Message-State: ALyK8tLkk2dral6lfL9hk03CKQfy4/HVsJ/dxBpgetNos+oXpEQ80AYc8C/XHGF7XR1pHQ== X-Received: by 10.28.73.86 with SMTP id w83mr7342630wma.83.1466982998041; Sun, 26 Jun 2016 16:16:38 -0700 (PDT) Original-Received: from keima.localdomain (x2f21eb8.dyn.telefonica.de. [2.242.30.184]) by smtp.gmail.com with ESMTPSA id w81sm8522304wmg.20.2016.06.26.16.16.37 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 16:16:37 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <576ECDFF.9030001@fehige.de> 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:95255 This is a multi-part message in MIME format. --===============7154329694933814400== Content-Type: multipart/alternative; boundary="------------010306030800040100090203" This is a multi-part message in MIME format. --------------010306030800040100090203 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Thomas Fehige > 25. Juni 2016 um 20:31 > The headline says it: As a convert from LaTeX I'm looking for the > functionality of LaTeX's picture environment, i.e. the placing of > boxes et al. according to absolute coordinates, possibly with > calculating measurements and coordinates on the go, like the stuff > provided by the picture package on LaTeX. (It's labels for cider > bottles this time.) A third method apart from layers and metapost is the positioning environment. \setupexternalfigure[location=default] \starttext \startpositioning \position(0,0){\externalfigure[cow][width=\textwidth]} \position(1.5,2){\color[green]{HEAD}} \position(10,6.5){\color[red]{UDDER}} \stoppositioning \stoptext Wolfgang --------------010306030800040100090203 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
25. Juni 2016 um 20:31
The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements and coordinates on the go, like the stuff provided by the picture package on LaTeX. (It's labels for cider bottles this time.)
A third method apart from layers and metapost is the positioning environment.

\setupexternalfigure[location=default]

\starttext

\startpositioning
\position(0,0){\externalfigure[cow][width=\textwidth]}
\position(1.5,2){\color[green]{HEAD}}
\position(10,6.5){\color[red]{UDDER}}
\stoppositioning

\stoptext

Wolfgang
--------------010306030800040100090203-- --===============7154329694933814400== 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= --===============7154329694933814400==--