From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23614 invoked from network); 29 May 2023 14:25:51 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 29 May 2023 14:25:51 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D21AE1C3900; Mon, 29 May 2023 16:25:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 5NaQ7Oy9Rxjz; Mon, 29 May 2023 16:25:29 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 823811C12BC; Mon, 29 May 2023 16:25:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 784112A for ; Mon, 29 May 2023 16:25:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 1Nyx6kg0ypaE for ; Mon, 29 May 2023 16:25:25 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.45; helo=mail-ed1-f45.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CB4281C12BC for ; Mon, 29 May 2023 16:25:25 +0200 (CEST) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-51493ec65d8so3503875a12.2 for ; Mon, 29 May 2023 07:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685370325; x=1687962325; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=rrP3iowkwSYWjxMgX8xudLWNZWmR1uRrL3ixwinULK0=; b=kkDZ8aKqCqs1Th9PHKcmzaofpDbZ1Ja8Gxk4TykXFSKOu60xVDQMF+yx4D3242ZWn8 wvnoOoroM9scwZStFYGxsSc3uM7V+SJmbq6Y+Cb2wVV4Udy/gN9vkl5KzERENg3920lm gUL9Jy3/Afb256qSq5SWb9wdUYmr/8wmmxqj8Kp/hbhVmHdPY1/vrBWKfBieeBTuGdWL GmBmRGS2SYk/8SLJPupzhwQeWNAaacJhfyl6xUsUfhhf64SdDEAnFc08n6psQjze78gX tgssQktVoETIXWzKP/sxR0QBH5bUkhTZLpIZ+hdsRZ7yXok5GExH1O9yxMnEkmuhR889 b5fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685370325; x=1687962325; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rrP3iowkwSYWjxMgX8xudLWNZWmR1uRrL3ixwinULK0=; b=jdtPVfdreOsMWd2oPtmBVGkxv5harR5St6Rx81VjuWaG7G+Et26SEEFjvM371KP2fx skX7aRcLUnj1PNK3ITVUlWyYFpQUe4Gj3b+M2tZE+GBJ4R6DG/Rw28i3oxEulyoLAEdo UVTtwSNdNsBlC/ot/+HeXkc4zo764eawyrdbF+FJEEQV40Cng53ggQnlhoehg7Fem5Au wDCVL7wrW0/1DhQoJQOCmYl0SMiymY8dKSsodve0iNDYAdBMbqaNpv8pWG95AdDCX+KY +QQLcPYVkndL/p2myyJLHdEPtBzyjQpU11qRTGCD1rtWvhvkCUeVtp0ACa3BXT6lMsV7 yDTg== X-Gm-Message-State: AC+VfDySpuIUuOleu6BwxpTyYG3RO9moDc9iT1g+VEsSBLE/CJZrcZM/ sR9mOe+lZRHnP4WoHthq0+eD0tx7Scc= X-Google-Smtp-Source: ACHHUZ7dEwnKKXh4i5lK0f1CYmFpIckul5YjSxAIwZnEX2Vyi8UilNyx+n9DfgFLn/nL50dw3eCcUA== X-Received: by 2002:aa7:dccd:0:b0:50d:f9b1:6918 with SMTP id w13-20020aa7dccd000000b0050df9b16918mr8851685edu.9.1685370325305; Mon, 29 May 2023 07:25:25 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:fe08::7081? ([2a02:810d:a8bf:fe08::7081]) by smtp.gmail.com with ESMTPSA id r23-20020aa7c157000000b005149e64260esm1149063edp.16.2023.05.29.07.25.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2023 07:25:25 -0700 (PDT) To: Gerben Wierda via ntg-context References: <2CCC87FD-BFFD-4415-9C2D-67D4E82CB78C@rna.nl> Message-ID: <9c136310-431c-676f-1bab-5e193135924c@gmail.com> Date: Mon, 29 May 2023 16:25:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <2CCC87FD-BFFD-4415-9C2D-67D4E82CB78C@rna.nl> Content-Language: en-US Subject: Re: [NTG-context] \getbuffer without extra whitespace? X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wolfgang Schuster via ntg-context Reply-To: mailing list for ConTeXt users Cc: Wolfgang Schuster Content-Type: multipart/mixed; boundary="===============6480354209350666906==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" This is a multi-part message in MIME format. --===============6480354209350666906== Content-Type: multipart/alternative; boundary="------------882C85C13277F0FC18C9C9E3" Content-Language: en-US This is a multi-part message in MIME format. --------------882C85C13277F0FC18C9C9E3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19: > If I do something like: > > \startbuffer[version]20230529a\stopbuffer > Version: \getbuffer[version]-en > > I get whitespace between the content of the buffer and “-en” > > What is the proper LMTX way to do this? You need the \inlinebuffer command \starttext \startbuffer[version] 20230529a \stopbuffer Version: \inlinebuffer[version]-en \stoptext but buffers aren't the right tool to store strings like version information. One alternative solution is to set the string with the \setupdocument command. \setupdocument   [version=20230529a] \starttext Version: \documentvariable{version}-en \stoptext Wolfgang --------------882C85C13277F0FC18C9C9E3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19:
If I do something like:

\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en

I get whitespace between the content of the buffer and “-en”

What is the proper LMTX way to do this?

You need the \inlinebuffer command

\starttext

\startbuffer[version]
20230529a
\stopbuffer

Version: \inlinebuffer[version]-en

\stoptext

but buffers aren't the right tool to store strings like version information.

One alternative solution is to set the string with the \setupdocument command.

\setupdocument
  [version=20230529a]

\starttext

Version: \documentvariable{version}-en

\stoptext

Wolfgang

--------------882C85C13277F0FC18C9C9E3-- --===============6480354209350666906== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============6480354209350666906==--