From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 45C7F238F5 for ; Sat, 27 Jan 2024 17:48:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5F116484161 for ; Sat, 27 Jan 2024 17:46:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29wyc8TF4UWS for ; Sat, 27 Jan 2024 17:46:31 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5E100483CCA for ; Sat, 27 Jan 2024 17:45:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A69F4483609 for ; Sat, 27 Jan 2024 17:44:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTS4UjWI6jvy for ; Sat, 27 Jan 2024 17:44:38 +0100 (CET) Received: from seout14.web-dns1.com (seout14.web-dns1.com [68.168.119.166]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 2E42A4835AC for ; Sat, 27 Jan 2024 17:44:38 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se3.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rTlnH-006oAJ-Pt for ntg-context@ntg.nl; Sat, 27 Jan 2024 11:44:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender :Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ct6tIjdhPlwiBfFVZdpGi4fkCTQVZyK5TxrrZwk7tbM=; b=CQhdWfbEv1CoTF4MQOaf7GB13J bzierV/kNwLXSf+4gDEc2vr59mCcg5vSvQqXDUOSsYhqUZGWV/4940mJnh7gWwjr38VRiEwL2g24k kXuHprQNEV9tF70Vt8TN72hsfp2W0MLdz8y6WC/W0g5qcZsZ8hy9Vtj6/tkB4RgMAB0kjIaD4w6hM YpB2rLf1ftS5EIFJYCgVsb+Eo8dVJl+0NW8OTcKJK1H2VNIPMSrS6b8v9ufz+0vosi20OElLZFndT Am5Rni/CN2c33HbYgtFtfSWX397g8KP1ImOFgxWXSRMBj06lPwpYwRdWwNCeFF/7JbfjUg9wUuWFk Ox9EdGzg==; Received: from [47.55.144.2] (port=33398 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rTlnB-004S6V-0k for ntg-context@ntg.nl; Sat, 27 Jan 2024 11:44:35 -0500 Received: by x360 (Postfix, from userid 1000) id C72931E044E; Sat, 27 Jan 2024 12:44:28 -0400 (AST) Date: Sat, 27 Jan 2024 12:44:28 -0400 From: Jim To: ntg-context@ntg.nl Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.39) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/T1QwsZwyuPLM0EPAh374+PUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x+OkQ6e4TPVgvpcS1fNw4ZIpdOJ9Sgfu6rKL8kf6cp2Rtm +fw5M9SWkeEP82yOn5nilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RL5/aw8V9WQVPeWuic/fqv5g8CBO1Snvm6qXHQp7O9kdVyTPc8vWxb47UCRBAjvbq8BGzKf EMfQP5IsMlZ0RJfO3ceUEtcBrRN3cOZEdcQPT+ZG1fUd+zsVv0CjT0c5StJuxHTyr20QCMWbZvJ/ 43O0YO/Ae1h1hLGGi4ebv387haIyTxfBkXia0fODtmvCePe9o1PoItNcDLylAM0FmDr5gO1wm8NE k1wbhGTfLxHk2mErPLbt0n54j3vHX4q9ucblgTl6fJxyntEfhZCKje4ZIikIfn4yKSMV12lQWi2L RJlKOaZVvWPNYKOkeGHVaNmpda9O3Jm3n4TasdFPGI49Ap/fepC1NisM+LESvgPZp60jiD6XqsJZ tjQxlyCdsewIT+OdvvcVHuc3/dNTf86WkKvh6KEat6haqat8Ve5HLvcN5Z6Fx4etTrR//i63HpIZ U/9HqfWQZiE3AkP7WzFvTMm+RdW/uBJnu3u5UnmMUAjc02b5jkFQobPtfIMRZKkf45ZSyy4dc2Mg P6Eqbf2YMR3EqJ9Y5oosudd3N5Sg6rL2VLa11UKypJzpVkNNq4LB+SsvM36R/QZEVKzuqJATXPWl FdaGOH191uXjgjQN/WFpsZaZSrHKzi9a18qWWyBuSt2KGbzCxGga80a3XdQOkqPmIeW3IkXkaI0b vQblVXM6mCHEVkRugaawCPSl0iZvgRtea07paRiSLL2ShuV4mfeo0mGANbykyMXhXrMXF2RCocjQ L9Td+ZGFmhHYC7ptQrmVr+hFcAVxMUxHqhIhgeQKvt8SGOaF6j7hHdgTCw== X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: GDYYF4URKNRL3TEZALMIOB4QX3H5VSE5 X-Message-ID-Hash: GDYYF4URKNRL3TEZALMIOB4QX3H5VSE5 X-MailFrom: zlists+context@jdvb.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on] List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The wiki page for \setupexternalfigure says "Show frame around image. Most(?) options of \setupframed are usable!" I tried to put a frame around a picture (using \externalfigure with frame=on) but I didn't get the frame to play nicely (see example below). I can get the frame where I want it if instead I do \framed[frame=on,...]{\externalfigure...} but this leaves me wondering whether (1) I am misinterpreting the wiki pages, (2) The wiki pages are misleading/wrong, or (3) There is a bug in some code. If anyone would care to enlighten me, I would appreciate it. In particular, the offset=... option of \externalfigure does not seem to be consistent with the offset=... option of \framed. Here is the example... one and all should be able to directly run it, but the text above and below each picture may make the issues clear without having to run the code. (The result I was looking for is the second figure in this example.) Thanks. Jim %%%%%%%%%%%%%%%%%%%%%%%%%%% cut here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuppapersize[legal] \starttext fr[ef] with frameoffset=1cm: This preceding text ends up inside the frame. \framed[frame=on,frameoffset=1cm]{\externalfigure[cow][width=3cm,frame=on]} This following text ends up inside the frame. \vskip0.25 in\hrule\vskip0.25 in fr[ef] with offset=1cm: This preceding text is above the frame as desired. \framed[frame=on,offset=1cm]{\externalfigure[cow][width=3cm,frame=on]} This following text is below the frame, as desired. \vskip0.25 in\hrule\vskip0.25 in ef[fr] with frameoffset=1cm: This preceding text ends up inside the frame. \externalfigure[cow][width=3cm,frame=on,frameoffset=1cm] This following text ends up inside the frame. \vskip0.25 in\hrule\vskip0.25 in ef[fr] with offset=1cm: The frame is tight to the image, not 1cm away. \externalfigure[cow][width=3cm,frame=on,offset=1cm] This following text ends up just below the image. \vskip0.25 in\hrule\vskip0.25 in ef[fr] with frameoffset=1cm,offset=1cm: This preceding text ends up inside the frame. \externalfigure[cow][width=3cm,frame=on,frameoffset=1cm,offset=1cm] This following text ends up inside the frame. \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________