From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94889 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Alignment/line break in a TABLE cell Date: Thu, 19 May 2016 13:08:40 +0200 Message-ID: <573D9EB8.7090402@gmail.com> References: <573D8FC8.6020203@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3741079199224372352==" X-Trace: ger.gmane.org 1463656168 17430 80.91.229.3 (19 May 2016 11:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 May 2016 11:09:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 19 13:09:18 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 1b3LpO-0001jg-6l for gctc-ntg-context-518@m.gmane.org; Thu, 19 May 2016 13:09:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A4898D745; Thu, 19 May 2016 13:08:58 +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 tU0M2kY0n2Fg; Thu, 19 May 2016 13:08:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A6670D747; Thu, 19 May 2016 13:08:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4BD5CD745 for ; Thu, 19 May 2016 13:08:55 +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 KrZM-LG8cKF3 for ; Thu, 19 May 2016 13:08:54 +0200 (CEST) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (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 F0EF3D743 for ; Thu, 19 May 2016 13:08:43 +0200 (CEST) Original-Received: by mail-wm0-f43.google.com with SMTP id a17so120539539wme.0 for ; Thu, 19 May 2016 04:08:43 -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=QtOHteWtBTKDIJJqN5rmH1yEH/nJ+6mdLq9DYhGBzO8=; b=RWC0V9/bnD5mlC1Zp5ah1M/3mjwospoXlr1O+p+1cwKa8b0gNZRfm8wCzBkzlVNfnd uBgpkODv4S4HOXdX0K1jwbu7K6ioGSwnv3m/vqGKWSf7enGHbf2n3i50MHYmSB5N40Sv WOGU7CQzXXREp0Yk3hFIqg4dO34WtKSfiWjsLvSu3KvcgQMpOI1hEcg3IwJms8olDHb/ WZN/Y0EhS7M/DtzvdRAef58NXb+0vzyzdx+It6p8RG15Nv9GjzDFVBtRV6oN9qf5rayg HwHLJwtwoi1ln8S7iCpX2NxzA6H2MknhPuK6LKraBl1jS/hdV6HMZ8QRH4Nu/nmAo7cz D0mA== 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=QtOHteWtBTKDIJJqN5rmH1yEH/nJ+6mdLq9DYhGBzO8=; b=YXJK3ntieHcKJjxgLAYtXth/SKe+7/swngE8RwrGm5mYULlMFDL624i5mE9El2SXLf DAPzdmNi8CB++Q3NUKNLb5cal9c5cDLFmRQVxxcbk00avYwYasEnNdw6ECbN3eETb09f yHwShY3oOOcN9HLNHoMMPu9LKC3ayxGNfikEhQYGLNFStKlnTa0ciMvNKmPj2c1Bz6Jc rv/+P3Qt26GtmtOzf/DRG+BWc9ZiRQ9HhvyzxgCHDClDJWiSdw+LvD5B/Znh8DEbcvep 7z9zDb0DIlQ7BI0oC46jrH00TB70K1Wf3ZM5768oekuaOwdSWRfoYiNtnbgpV2sZBMwe GYhA== X-Gm-Message-State: AOPr4FX5xdxx0cngVfg7EuWmhJAx8koBRfggdY4OAOeYnBLVGS3d0DQMnUl1r9UXeqIz4Q== X-Received: by 10.28.72.132 with SMTP id v126mr13349319wma.49.1463656123522; Thu, 19 May 2016 04:08:43 -0700 (PDT) Original-Received: from keima.localdomain (x2f2df9a.dyn.telefonica.de. [2.242.223.154]) by smtp.gmail.com with ESMTPSA id o73sm34780756wme.16.2016.05.19.04.08.42 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 04:08:42 -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:94889 Archived-At: This is a multi-part message in MIME format. --===============3741079199224372352== Content-Type: multipart/alternative; boundary="------------030203050300060001050208" This is a multi-part message in MIME format. --------------030203050300060001050208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Mari Voipio > 19. Mai 2016 um 12:45 > On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster > > This kind of works. The box and the number are now on the same line, > but one of them - the number, I think - is offset and that looks > funny. Is there a trick that'd fix that? 1. Lower your graphic because it has margins around the lines which positions it too high. \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext 2. Use a box symbol which sits lower on the baseline. \starttext \dontleavehmode\symbol[square] 1 \stoptext 3. Use metapost to create your own box. \startuseMPgraphic{box3mm} draw unitsquare scaled 3mm ; \stopuseMPgraphic \definesymbol[box3mm][{\useMPgraphic{box3mm}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext Wolfgang --------------030203050300060001050208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
19= .=20 Mai 2016 um 12:45
On Thu, May 19, 2016 at= =20 1:04 PM, Wolfgang Schuster

This kind of works. The=20 box and the number are now on the same line,
but one of them - the=20 number, I think - is offset and that looks
funny. Is there a trick=20 that'd fix that?
1. Lower your graphic because it has margins around the lines which=20 positions it too high.

\definesymbol[box3mm][{\offset[y=3D.25ex]{\externalfigure[box3mm]}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext



2. Use a box symbol which sits lower on the baseline.

\starttext

\dontleavehmode\symbol[square] 1

\stoptext


3. Use metapost to create your own box.

\startuseMPgraphic{box3mm}
=C2=A0=C2=A0=C2=A0 draw unitsquare scaled 3mm ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Wolfgang
--------------030203050300060001050208-- --===============3741079199224372352== 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= --===============3741079199224372352==--