From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OJYLAxYgBGOSJwAAbAwnHQ (envelope-from ) for ; Tue, 23 Aug 2022 02:32:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4EfbARYgBGM/NwEAG6o9tA (envelope-from ) for ; Tue, 23 Aug 2022 02:32:22 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 96DD33B4B1 for ; Tue, 23 Aug 2022 02:32:21 +0200 (CEST) Received: from localhost ([::1]:58572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQHq7-0001g6-G0 for larch@yhetil.org; Mon, 22 Aug 2022 20:32:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQHo9-0001fx-Ds for emacs-orgmode@gnu.org; Mon, 22 Aug 2022 20:30:17 -0400 Received: from [39.171.214.252] (port=14605 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQHo7-0008HJ-JM for emacs-orgmode@gnu.org; Mon, 22 Aug 2022 20:30:17 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 186A45FF4C18; Tue, 23 Aug 2022 08:30:05 +0800 (CST) References: <87r1b859by.fsf@gmail.com> <87bkscqk46.fsf@tec.tecosaur.net> User-agent: mu4e 1.8.6; emacs 28.1 From: "Christopher M. Miles" To: Timothy Cc: numbchild@gmail.com, emacs-orgmode@gnu.org Subject: Re: [QUESTION] How to specific image size attributes under headline scope? Date: Tue, 23 Aug 2022 08:24:54 +0800 In-reply-to: <87bkscqk46.fsf@tec.tecosaur.net> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.214.252 (deferred) Received-SPF: softfail client-ip=39.171.214.252; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661214741; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=SF2LexQUXa/qzkCeL6mW8w1RHwVL/M04MqRIhn9ky2E=; b=NZyi3fqg2p2FEWXwdNLTOqP5lRH03tnJURVc3AzoVZvlPS8u6e7lDMo4qp5G2mBuwM9ir6 146eOrJdSC9s64vC428LiIU93a8iWmLMA2B4H33y3q76z2RzpQf4Z/axYfa5zp9P2idbaZ abFvIxGI2c9kZQwcNmkojLqFsyya+XUMZmntW5DMm5ofcPT3Dx+d5rPU8e7i29BV20nXpL as9y903yIEKq3NYf9Y4I2xtIyuLCWqQQzsb1QiEkVIrj95ARxEaox3ywnh6rssEda5zSwd GjLHdcRWq/UddwsjugpSXaNvMoiFXIB/FS2eu1i2IGBnU9CFjv0zKW/zrDDdGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661214741; a=rsa-sha256; cv=none; b=LypgQULUWTiNaiGfnOypFCeA45rWFkJCuhGbNI0BNXzAY/7CXpu2mcSI/hJR4vNhO7ozpA HjUuXYDyptFpVkr4DSjpJFRunrslZqgUlZCphHWURmpPvq4lblo2ai/Su7OcD6fBF74uKw ZpYomq0Ta1wqzOzbwcbnYgMU24C/MxJdEX9a9E22mK1r1ett4jb7w8PBF4/rHWs+ohvjHl UEKR+rfXb2VGP11VHSNgWYxKQ/+FBMvbWAsOUwyowTs528p4vR4h/uJCCHqx3AFJG6Zo3A 426IAN8rKqtIM9nF2m8V2ObLgqGx1shkkeaoLZ7sAQZP46V6sK5N802/vhqKnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.79 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 96DD33B4B1 X-Spam-Score: 3.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: rffs9CdvcLRQ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Timothy writes: > Hi Christopher, > >>>> I want to specify image size under headline properties. Is it possible= to do >>>> this? >>> >>> As I understand org.el, this is solely governed by >>> `org-display-inline-image=E2=80=93width=E2=80=99, which only looks at `= #+attr_*=E2=80=99 keywords when >>> setting an image width. >>> >>> All the best, >>> Timothy >> >> Yes, what about letting org-mode support headline level image size speci= fication? >> Is this a good idea and easy to implement? > > Hmm, so would this basically be setting all images within a certain secti= on to > inherit a different `org-image-actual-width' / `org-latex-image-default-w= idth' > parameter? > > All the best, > Timothy Yes, like this: #+begin_src org ,* headline 1 This image will be displayed in 200 width. ,#+ATTR_ORG: :width 200 ,#+ATTR_LATEX: :width 2.0in ,#+ATTR_HTML: :width 200px [[file:kk.png]] This image will be displayed in 600 width, it has no manually specified image size, it will use ~org-image-actual-width~. [[file:kk.png]] ,** headline 2 :PROPERTIES: :IMAGE-WIDTH: 500 :END: This image will be displayed in 200 width. ,#+ATTR_ORG: :width 200 ,#+ATTR_LATEX: :width 2.0in ,#+ATTR_HTML: :width 200px [[file:kk.png]] This image will be displayed in 500 width, it has no manually specified image size, it will use "headline 2" scope property ":IMAGE-WIDTH: 500". This is what I want. (I assume there is a new property which maybe named like :IMAGE-WIDTH:.) [[file:kk.png]] #+end_src =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmMEH4oACgkQG13xyVro msMZ/Af9E4oyQcMcC8JBk72YiQKzjtBZeztMgxxu9CkvPtD4V8x/2rMs0hFHjU85 4sqv30DcZSuUCwKgG56PSHYpyaQ0CiCXau4HPdPAfqaKZpNYXY9ymozeg4ztTJyp mACQFDAEhilZeQUerNwtW+dhppNVTb4OownE8onL4Sl4BxGCAdNNwpq5EDeby2oQ ISR8z+jNK8FuS8crgJjcwRHJk1ore6tUzC48gXdOT0ZG0ItZ0L9vFqQ2KYLyIf28 QAzztV42z3uEzD8DOUg+up4Rarh46yJL9tLLeBtC24+fpSgcSdZOgCyRUWqLXST6 9XqG3xaMFpjpaV9b7UqUPcf18iOa4g== =gEoo -----END PGP SIGNATURE----- --=-=-=--