From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id hcLxOeuVzF7qWwAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 04:07:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6CMKNeuVzF5oFQAAbx9fmQ (envelope-from ) for ; Tue, 26 May 2020 04:07:07 +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 8B9009404CE for ; Tue, 26 May 2020 04:07:07 +0000 (UTC) Received: from localhost ([::1]:46572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdQrq-0002tc-Hn for larch@yhetil.org; Tue, 26 May 2020 00:07:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdQrM-0002t3-S0 for emacs-orgmode@gnu.org; Tue, 26 May 2020 00:06:36 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:45722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdQrL-0002nO-Ht for emacs-orgmode@gnu.org; Tue, 26 May 2020 00:06:36 -0400 Received: by mail-ed1-x52b.google.com with SMTP id s19so16454611edt.12 for ; Mon, 25 May 2020 21:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gzrQt3wkWY6msn8ebS6f9Fixdu6sSiaf7sJYViJZnfA=; b=kALRpRYLD6aNwsEqlN8XZalPELD7B3GWBzod/+H0VWQCEdqiS+9QpKeGW755ymWQSx XyuoH0BUE13/lzyyWvV4vFiE80igJ+R0EEZ3xwqMd0uSaB5cMSGouN5HwIi319O1Z72j jpESPckNOqgAwoDfrtCUGdH/iFDMkrBIs+75kR8q/cKCXHEQsuldJF7Ru/AM0ywoHoPe w0NKqexf3oHoPEvTnRCCz13Xx2FRIhPJjArlk14Ctf2tvAxTLR0+KfjFyLJIp1mIyXbN dvw7feMcb5JXwVE23K4hc6LSQABcC3bSDVIMQILEKsp3ozbzXAHmgEle9vpNSLeX0Jti slJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gzrQt3wkWY6msn8ebS6f9Fixdu6sSiaf7sJYViJZnfA=; b=YIpFXeseXlVf509trBR5nyDZkDLcy8FUaxRWn23L0pl9mG4HGeOD2UBalC05wHuY/a 3FjWQwAd4Z7mvm0wMuGoFwjOdgUuLu42O4uPAbiFmCVnvfxjxYEV1lRFTv8BVapbpkM0 ZLjOJbseEUmocANHbahaydy6vGwY0QASoZ9kBRuaEfeAnCAJsDJzAVDhjgQtvu+YYv+p HETm0g803p61y6TUg2/LgFTPD6bGM/X5MNGnol40PnlNm3ZlaEVz8S1cc+JBH1/RdOb3 EGY1eDMIjX/7i0zJH//oBjWpByTajC+nvUiEzMU0ldFdK97rD4eroooSAIBqq09QkYGD 9E7A== X-Gm-Message-State: AOAM531GlyWtisMGsQgoFHO5CpYoyvbxraUYwlDjo2PmIAdFwhxk32JR xwQmhdnsMy1BKPhwS8hlyBNLdAbc7ukcxqBpurZ6faJcRPc= X-Google-Smtp-Source: ABdhPJx4TH10IvqZm1b+AgxisJomjsxTuf0pWZtjDr+Lgi5f7LL6fxspMxUtcf01OAbsNVPMsR2Q4HDgCIZIq+xYNU4= X-Received: by 2002:a50:81e6:: with SMTP id 93mr18551551ede.45.1590465990281; Mon, 25 May 2020 21:06:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:7286:0:0:0:0 with HTTP; Mon, 25 May 2020 21:06:29 -0700 (PDT) In-Reply-To: References: From: Vladimir Nikishkin Date: Tue, 26 May 2020 12:06:29 +0800 Message-ID: Subject: Re: [bug] Should #+attr_latex affect image display within the org buffer itself? To: emacs-orgmode Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=lockywolf@gmail.com; helo=mail-ed1-x52b.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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=pass header.d=gmail.com header.s=20161025 header.b=kALRpRYL; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.71 X-TUID: whnaWytDAjUF 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 > -- Yours sincerely, Vladimir Nikishkin