From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101632 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Text wrapped with an ornement Date: Fri, 17 Aug 2018 13:25:03 +0200 Message-ID: <9f85918a-2a0e-9e8e-72d5-e2afac618710@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="===============5222229456742976531==" X-Trace: blaine.gmane.org 1534505017 18839 195.159.176.226 (17 Aug 2018 11:23:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2018 11:23:37 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.1 Cc: mailing list for ConTeXt users To: Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 17 13:23:32 2018 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 1fqcqq-0004i2-IQ for gctc-ntg-context-518@m.gmane.org; Fri, 17 Aug 2018 13:23:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A1D2515DC; Fri, 17 Aug 2018 13:25:18 +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 gx0ENBFW7oI2; Fri, 17 Aug 2018 13:25:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A232F515E5; Fri, 17 Aug 2018 13:25:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 09044515DC for ; Fri, 17 Aug 2018 13:25:17 +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 IocsqBpxK2-u for ; Fri, 17 Aug 2018 13:25:16 +0200 (CEST) Original-Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.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 8EDAB515E6 for ; Fri, 17 Aug 2018 13:25:06 +0200 (CEST) Original-Received: by mail-ed1-f43.google.com with SMTP id k15-v6so4346924edr.3 for ; Fri, 17 Aug 2018 04:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=0xkDL7+msEiYSyQslho6TQADB43c+3lor/+IOuc8qkA=; b=iLaaEFLS9mfIe+JxOU/Vzk4MqgGEjfhNUi0+l11AvcZPvJ/6GlE2gzizxn8uOoJH4n MbsxywpLnJY4Edxv5Rrzv33KtmhfxfwbHCAleoIisLsEq4hta+OWO+AcuRPBaNd/7uo+ KNAC5x+tdvTxjVM8Eu6nk3UMH5EgWCvs2XksfUwGvbia7NLILpIPqv3DE6Z3SbvCS52O z75ccWUDXnZz2h3ApSjtM4TSjqnLlGLk106VCtAXT+RKYokF6o9zux4lqY4Ou15QsRVW r/9mluIiDnPK3w+A6//KCEE+hvigWH5UShhULbTDL4wmC/Cgipg/zMIdC1hZAfFe12ht Odzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=0xkDL7+msEiYSyQslho6TQADB43c+3lor/+IOuc8qkA=; b=CKv9+SKbYMDgffP9VmaOJv5sMaOsbricakvi5u7RcfKwvi0I2LiM7ERT4Qdu4jZILn wkGBGebYD47c4oybhB4AMKCJBiJYj3zGLkfDfJgLjCO5c8ePMdA/gH/vqYdoyjL05jV7 5+87x3SQO/5HwL4kK8kZA4RN9s5ILaxKfEpbkPdLoEA2qJZJH53f2VMhH382as4YMDsE ILS5f1+Y7Z79KW+kf5UJlfcqk29ib+54/obrEw0gcrSL3vp2mZjCE6RZslcUNmmSS+8z 3KCtN5t9a7keeNQw+QJ5lkEpINGcfgSN1jWbSd5/9sxwX8GFzkMotRfByfCpZtQOgbsL gctg== X-Gm-Message-State: AOUpUlF5CoZ1TXbNhZPZvz19dgBvj6pTICL4+tozc3WVOa9Xn79S5H/1 4w3in626X0onbD1x4w8p9eyAprX6 X-Google-Smtp-Source: AA+uWPxR0+7nuox9Fvzc7wyO8t1POXBtgMPkgyl4A45J4idKiNNAV+PnJuSm/bpvx2xdnVW3hbRmlA== X-Received: by 2002:a50:b1f3:: with SMTP id n48-v6mr41183869edd.197.1534505106024; Fri, 17 Aug 2018 04:25:06 -0700 (PDT) Original-Received: from [192.168.1.11] (x4dbd3029.dyn.telefonica.de. [77.189.48.41]) by smtp.gmail.com with ESMTPSA id f11-v6sm3340711ede.76.2018.08.17.04.25.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 04:25:05 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:101632 Archived-At: This is a multi-part message in MIME format. --===============5222229456742976531== Content-Type: multipart/alternative; boundary="------------FCE907039B2062AA0557F49D" Content-Language: en-US This is a multi-part message in MIME format. --------------FCE907039B2062AA0557F49D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Neither framedtext nor framed have a alternative key. You can check this very easy by looking into setup-en.pdf. Wolfgang Fabrice Couvreur schrieb am 17.08.18 um 11:24: > Hello, > Aditya offered me the following code to insert comments with an > ornament. I notice that the option alternative= serried does not seem > to work. > Thank you. > Fabrice > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, > background=color, > backgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, > alternative=serried, % text wrapped > frame=off, > corner=round, > ] > > \showframe > > \starttext > > \FrameTitle{Info}{\startFramedText[width=\textwidth] > \dorecurse{100}{blabla} > \stopFramedText} > > \stoptext --------------FCE907039B2062AA0557F49D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Neither framedtext nor framed have a alternative key. You can check this very easy by looking into setup-en.pdf.

Wolfgang


Fabrice Couvreur schrieb am 17.08.18 um 11:24:
Hello,
Aditya offered me the following code to insert comments with an ornament. I notice that the option alternative= serried does not seem to work.
Thank you.
Fabrice

\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
    \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]

    \defineornament
        [FrameTitle]
        [preset=lefttop]
        [
          frame=off,
          foregroundstyle=\bfx,
          foregroundcolor=white,
          background=color,
          backgroundcolor=MyColorB,
        ]


    \defineframedtext
      [FramedText]
      [
        offset=0.6em,
        toffset=\lineheight,
        background=color,
        backgroundcolor=MyColorA,
        foregroundstyle={\switchtobodyfont[10pt]},
        align=verytolerant,
        alternative=serried, % text wrapped
        frame=off,
        corner=round,
      ]

    \showframe

    \starttext
   
       \FrameTitle{Info}{\startFramedText[width=\textwidth]
          \dorecurse{100}{blabla}
        \stopFramedText}

    \stoptext

--------------FCE907039B2062AA0557F49D-- --===============5222229456742976531== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5222229456742976531==--