From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96569 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definebodyfont not working for \typesetbuffer Date: Sun, 16 Oct 2016 19:59:15 +0200 Message-ID: <5803BFF3.9000901@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2158532578062037970==" X-Trace: blaine.gmane.org 1476640790 14130 195.159.176.226 (16 Oct 2016 17:59:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2016 17:59:50 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 16 19:59:45 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvpii-00028m-GF for gctc-ntg-context-518@m.gmane.org; Sun, 16 Oct 2016 19:59:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D7D821AFCF; Sun, 16 Oct 2016 19:59:31 +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 MHPElcNcpjsj; Sun, 16 Oct 2016 19:59:31 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 35A881AFD1; Sun, 16 Oct 2016 19:59:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F03AB1AFC7 for ; Sun, 16 Oct 2016 19:59:29 +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 3t8o3joEfS_F for ; Sun, 16 Oct 2016 19:59:28 +0200 (CEST) Original-Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) (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 D481D1AFC4 for ; Sun, 16 Oct 2016 19:59:18 +0200 (CEST) Original-Received: by mail-lf0-f50.google.com with SMTP id b81so241958265lfe.1 for ; Sun, 16 Oct 2016 10:59:18 -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=kMkdBu0xsjJ/0HEDhSzVRqOUDLkmkFRgzoQLWNFufuM=; b=G6/XFqm94euSmAN1mDsfXPfLKI5iKz4BfRf9XK3Jqvjxt+3FWs6FbgjwsZgnZA1xng 6KxusEidmgZq37StoPeOlmdfektrmrkeeuOxv+CF5n8w+jbxEYex3O5TCQ3Y2DnUZYa0 5wzoRZEW1A/dhgrO8R/a14kLEPlnYFhs+r5+BcXTL2Pj67Z4/T4PODj+K4Z1rGwLLIdS QlV9tWIdzKw8K6CdGR7V664dS2Z/LDuGBf3sUsBXcyvwgDFRFImRonvbTp6q6F+xfO/y KcZ/2W5zLwr5K7w4al6irUoPNcB9Jo4EwFCBZXCkbFNyGAywJ6n1cEXL1QE+Qq2Oszpj SOfA== 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=kMkdBu0xsjJ/0HEDhSzVRqOUDLkmkFRgzoQLWNFufuM=; b=lL93c+3W6CNqxVLOGBAYTPI/W8mC4ndGrZkU9M1M7+gNMT5G6IdQzr0J2n9dhDDVH2 AOx9B7hxsl9MveOsPGb9tLxhE0HkuP8TqcmYVq3l1DJ9Rb92AdU0s2PWmoIBBsEWvZgI hk8hnOysHTLLR7/A0QsZXySP1NSFeeZslvwCtp+f06SntlS+lbzIcuv5HRKYOa/4GUP7 mM5BjlQWFzcvWOoN5OiPPraZZhL7knMHL26KEw+vfppI4e29lTTmLhUxLsBllbW6do3S WGFVT/4dgRo8PLLD0bdEUiJmW6nYKHDqY7SgtY/ltBQHcidv1cxEjqLoLsAZS5Bo9iUR hhLQ== X-Gm-Message-State: AA6/9RnMUjqNgx9dZloU5h7kGjwlovczbr+SHMLUkwnQH+3G/VrQIJUqKVya70hnMn790g== X-Received: by 10.194.55.9 with SMTP id n9mr8834266wjp.208.1476640757979; Sun, 16 Oct 2016 10:59:17 -0700 (PDT) Original-Received: from keima.localdomain (x2f29e59.dyn.telefonica.de. [2.242.158.89]) by smtp.gmail.com with ESMTPSA id h3sm44743344wjp.45.2016.10.16.10.59.17 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Oct 2016 10:59:17 -0700 (PDT) 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:96569 Archived-At: This is a multi-part message in MIME format. --===============2158532578062037970== Content-Type: multipart/alternative; boundary="------------000200090906040406050106" This is a multi-part message in MIME format. --------------000200090906040406050106 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Pablo Rodriguez > 16. Oktober 2016 um 19:56 > Dear list, > > I have the following sample: > > \definebodyfont[17pt] > \startbuffer[buffer:inside] > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface, 17pt] > \starttext > \input zapf > \stoptext > \stopbuffer > \starttext > \typesetbuffer[buffer:inside] > \stoptext > > As suggested by Wolfgang, \definebodyfont should work. It worked then > (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it > doesn’t work with latest beta from 2016.10.14 17:19. > > Could you confirm whether it is a bug or I am missing something? You have to put the command in the buffer because \typesetbuffer saves the content in a external file and which is then processed as separate document which doesn’t use settings from the main document. Wolfgang --------------000200090906040406050106 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
16. Oktober 2016 um 19:56
Dear list,

I have the following sample:

\definebodyfont[17pt]
\startbuffer[buffer:inside]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface, 17pt]
\starttext
\input zapf
\stoptext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext

As suggested by Wolfgang, \definebodyfont should work. It worked then
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
doesn’t work with latest beta from 2016.10.14 17:19.

Could you confirm whether it is a bug or I am missing something?
You have to put the command in the buffer because \typesetbuffer saves
the content in a external file and which is then processed as separate
document which doesn’t use settings from the main document.

Wolfgang
--------------000200090906040406050106-- --===============2158532578062037970== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwOi8vZm91bmRyeS5zdXBl bGVjLmZyL3Byb2plY3RzL2NvbnRleHRyZXYvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRnYXJk ZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2158532578062037970==--