From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KIOEEWdKzV6SEQAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 16:57:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aEqBDWdKzV4jKwAA1q6Kng (envelope-from ) for ; Tue, 26 May 2020 16:57:11 +0000 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 7AD65940B28 for ; Tue, 26 May 2020 16:57:10 +0000 (UTC) Received: from localhost ([::1]:39972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdct2-0002RW-65 for larch@yhetil.org; Tue, 26 May 2020 12:57:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdcq4-0005t2-Pb for emacs-orgmode@gnu.org; Tue, 26 May 2020 12:54:04 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:33815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdcq3-0001w6-TV for emacs-orgmode@gnu.org; Tue, 26 May 2020 12:54:04 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id r3so9792044qve.1 for ; Tue, 26 May 2020 09:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=i4HmChy64qEO48kTdAEToinNnncHZNV7VGQUsYkal1E=; b=KX8QwjC5nwhAzTvd4JgDN/I92vvO173u+/Wknqhsk8GvR0QMBkggbe/vfctUoGfdSV WBtTTxsAvrgA8/XxhRCg7nKdZtYbBzFjORJdxboTjSvj3WVyEP4vC4BLgOQpMm3GUpC/ q8nDoJhgjd1ytLvJm1pc8UGQ8KuBdEzqRiGkcRqt3MSOJ8Nt9c/6PH2HthwwPksr//PM JiKrTn1DZs881DWRIiJ+StQ68578OPUVM/UeSF/jh/TctYkiUOALZ8iiTXmzvrWmKH54 39KDSGSzT+WGaV14/yNg/PEZ8zCuxVY+A9VgxdN9c4XeHn6CXW0BYNB0YCoVswDyYrmp DLtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=i4HmChy64qEO48kTdAEToinNnncHZNV7VGQUsYkal1E=; b=tQ940nLl8lQdYC579lve/O+ohtl4y+WmEE/A4RHjWyM0opN67U9S3SnvXwcFix4Waf bhdv6oisVXZdINbOgZnExnXteU0ok0XSNXqGMAaVRDYJBrBlJKETJk803wJiCeZDuGwG RJSOvt+UBlsRLXP/v+XzllfozN2M5c7vTL73W2719/yRpYMxfzJbqUMtTdPt8aszzi6V mI1wD+VRQxoc/6bCmIfReYGTHNE1d+HD+I72Y5a1OBkhzOWEmZjkPV5y0nWo+4HKuFFF ylJtSelSs408vzAS9DUUoi6dORS7aY/qbG0uqbve+nYygwtM+SgmzVn7NiV7HTjyf7Nc zZIA== X-Gm-Message-State: AOAM531PZqtZmVjsQC6qFhP5f6pBc6MeO5PfC48s0XmvUY5a2IEd+w1N nze2/Yo/vnKoxCiRc9vXUeqGXR+ybPk= X-Google-Smtp-Source: ABdhPJwuVi5tNvkSoPBExvvmalpQPYTuk2oYglJmwzTGdy8tv2vh+BBTGuN3icmAn2WAzoXKQuIXAw== X-Received: by 2002:ad4:5505:: with SMTP id az5mr3531208qvb.214.1590512042071; Tue, 26 May 2020 09:54:02 -0700 (PDT) Received: from Johns-MacBook-Air.local ([2601:547:901:1830:74ea:8f85:c5eb:4d44]) by smtp.gmail.com with ESMTPSA id c197sm116689qkg.133.2020.05.26.09.54.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 May 2020 09:54:01 -0700 (PDT) References: User-agent: mu4e 1.3.6; emacs 26.3 From: John Kitchin To: emacs-orgmode@gnu.org Cc: Subject: Re: [bug] Should #+attr_latex affect image display within the org buffer itself? In-reply-to: Message-ID: Date: Tue, 26 May 2020 12:54:00 -0400 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=johnrkitchin@gmail.com; helo=mail-qv1-xf2d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=KX8QwjC5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: bSpCMrX1GnMp I think another way to do it is to have an #+attr_org: :width as the first attribute. Vladimir Nikishkin writes: > At the moment, I'm working around this by setting the width in "TeX points": > > #+attr_latex: :width 224pt > > The exported image becomes 224 points wide (roughly 8 cm), and the > embedded image is 224 pixels wide, which is okay. > > > 2020-05-26 12:01 GMT+08:00, Vladimir Nikishkin : >> Hello, everyone >> >> My problem is the following: >> >> Compare the following three pieces of org code: >> >> #+attr_latex: :width 80px >> [[file:figure-1-1-dot.png]] >> >> #+attr_latex: :width 8cm >> [[file:figure-1-1-dot.png]] >> >> #+attr_latex: :width 80mm >> [[file:figure-1-1-dot.png]] >> >> They get exported into LaTeX as expected. >> But if you org-redisplay-inline-images, you will see that the first >> one is rendered 80 pixels wide, >> the second one ise rendered 8 pixels wide, and the third one is >> rendered 80 (again) pixels wide. >> >> So it seems that org is using #+attr_latex as a guide in setting the >> width of the images in the org-buffer. >> >> This seems wrong. >> >> -- >> Yours sincerely, Vladimir Nikishkin >> -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu