From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95223 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Text inline fractions Date: Wed, 22 Jun 2016 15:45:30 +0200 Message-ID: <576A967A.9060108@gmail.com> References: <576A85D6.2040307@fehige.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2731804780299163774==" X-Trace: ger.gmane.org 1466603210 30585 80.91.229.3 (22 Jun 2016 13:46:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 13:46:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 22 15:46:37 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 1bFiTi-0002Jy-O8 for gctc-ntg-context-518@m.gmane.org; Wed, 22 Jun 2016 15:46:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0FCB2F675; Wed, 22 Jun 2016 15:45:47 +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 peXI0P2c52Nk; Wed, 22 Jun 2016 15:45:46 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 59C36F6C9; Wed, 22 Jun 2016 15:45:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C7AFF67E for ; Wed, 22 Jun 2016 15:45: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 5e2yxdPIQDwm for ; Wed, 22 Jun 2016 15:45:43 +0200 (CEST) Original-Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (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 E90C6F675 for ; Wed, 22 Jun 2016 15:45:33 +0200 (CEST) Original-Received: by mail-wm0-f67.google.com with SMTP id a66so1304491wme.2 for ; Wed, 22 Jun 2016 06:45: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:subject:references :in-reply-to; bh=/W28yug7O9L7EK8fwakcXkUIWgYTsKRg8EvFc7CnA2o=; b=iuX7CGzOh5VE+/a4SMHK9xmjQChmw7BE70Iebb0DjAjkT2JOP+yjsDidfpIMjtyj6m kJSlgUbLh0mR01yKiX1BsfPjgX3CBEKqzhgw1pyNbpdx1qKciatgUF+8nbFw/j08MIaI qYY1Z9KHdkKBmaNbCEma5RYl5CsrO0ee5T/MAkd5cXA03cTWB/5lzJhnzpkUGf837LD2 g77aCtRw2KGBQ1h/puDZjbFIC9k6RcatKkaAyPpmfO8N/KxikSLxKTt7L5sVId3sdt12 d9F53H8kLn4nZP7+2J30mKjdqJDXACzuvs1wNYjcZ2gan5+525UVdDzlbrDbLCRhSQTI 6zdA== 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=/W28yug7O9L7EK8fwakcXkUIWgYTsKRg8EvFc7CnA2o=; b=jzQla6uv/m9RBlYD/uOvlD1n5Nwq8WSAypVMiLRrYv/GUqHQY9QA5PQPnpXu7F4HBN gU7VJqBE68g+HLM8ydBPJAAnIuTNmbt7xhmul3oIMNKM5jZYKt1ojOuGePN0yViKEpjW As0XvHTBGvcZtQNAmvJT27bjEMSZtDUmXblOTOWzjUL89kM5ZMp1AyAL2LnizNkCZOFj h55a//t+Om4Hr+cHgHveFuJPwcL8HEZ4MJj75AXPCAjXOUYfvoqYHgCI838bXAZiihkt LU9XcnbBg7qPxKH6r4dVbV5VXlm4AnK7V8YROj1z0QStoWN5Ed6/QwLzLVWOPW9+HUQi f0Hg== X-Gm-Message-State: ALyK8tKx+KOv0SAAUEQVCAaZyrAr4T03Gc+pBOqjzFnJ9yc3tj3Z1GzEDnwg+C2/UsizEA== X-Received: by 10.194.8.38 with SMTP id o6mr22622586wja.13.1466603133486; Wed, 22 Jun 2016 06:45:33 -0700 (PDT) Original-Received: from keima.localdomain (x2f2f0aa.dyn.telefonica.de. [2.242.240.170]) by smtp.gmail.com with ESMTPSA id li10sm29493598wjb.5.2016.06.22.06.45.32 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2016 06:45:32 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <576A85D6.2040307@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:95223 Archived-At: This is a multi-part message in MIME format. --===============2731804780299163774== Content-Type: multipart/alternative; boundary="------------040201060709070709000703" This is a multi-part message in MIME format. --------------040201060709070709000703 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Thomas Fehige > 22. Juni 2016 um 14:34 > Is there a clean and easy way in mkiv to create text inline fractions > with a slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext \m{1\vfrac{1}{2}} 1\textfraction{1/2} \stoptext Wolfgang --------------040201060709070709000703 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
22. Juni 2016 um 14:34
Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half?
\definefontfeature[fraction][frac=yes]
\definehighlight[textfraction][style={\feature[+][fraction]}]

\starttext

\m{1\vfrac{1}{2}}

1\textfraction{1/2}

\stoptext

Wolfgang
--------------040201060709070709000703-- --===============2731804780299163774== 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= --===============2731804780299163774==--