From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YPKvL8wiRGL1IgEAgWs5BA (envelope-from ) for ; Wed, 30 Mar 2022 11:28:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EHBOLMwiRGLBEAEAauVa8A (envelope-from ) for ; Wed, 30 Mar 2022 11:28:44 +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 350FEE41F for ; Wed, 30 Mar 2022 11:28:44 +0200 (CEST) Received: from localhost ([::1]:59868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZUd9-0001GO-3y for larch@yhetil.org; Wed, 30 Mar 2022 05:28:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZUbH-0001Dt-GO for emacs-orgmode@gnu.org; Wed, 30 Mar 2022 05:26:48 -0400 Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]:35972) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZUbD-0001WQ-Gs for emacs-orgmode@gnu.org; Wed, 30 Mar 2022 05:26:46 -0400 Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id A7FEF61E41 for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 9ED2E8016D for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id AbZLfdD4awe5 for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 4950C80191 for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 4950C80191 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-st-etienne.fr; s=E44E4C1B-535F-44B3-88AE-37CEC3B0D85B; t=1648632399; bh=BSzd1fKqdkCoroOvLobiq7/CNk+eXsPSnVe+fFyMSq0=; h=Message-ID:Date:MIME-Version:From:To; b=usXTUvxzUaIEF7Y3RyalCDuirT6G8xQ/li3KAGXj8CqsOs+Vy4mE6kS2rh5Gb6d6N Y3zCQyOECL7JdOpS5SW6NLmSsGoGhIFtBdEys7oatvD8BCRDIXdGBHDjgHSe2/Ezrz sG/4opZzWGY4yewRQPgxl1zhMqevZLbm3bAsPmnOHnm7Dji6a7BnBcr+PlT7KfycAH tRCFeiMbkhcQT/fb2Q45a3zfOx8jps4RgE/FGNAYFDULNRynlGIVKV8LGeYqhNrHRe hHI9i2qsJfmsiLtsK8G/Gh3Lwpl7Yw77DaUxMZTHlZgHmZBXuxjTnE+EadQSIq/8No WmkFf7mJLuQKg== X-Virus-Scanned: amavisd-new at zmtaauth03.partage.renater.fr Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kGvbck0PGmI2 for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) Received: from [161.3.34.189] (unknown [194.254.241.249]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id 10A8B80185 for ; Wed, 30 Mar 2022 11:26:39 +0200 (CEST) Message-ID: <74e3985e-3236-e54e-66e1-7749cbd05929@univ-st-etienne.fr> Date: Wed, 30 Mar 2022 11:26:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: #+include vs. resizing & centrering [SOLUTION] Content-Language: en-US From: Guillaume MULLER To: emacs-orgmode@gnu.org References: <95330d48-9234-7259-db34-25eac3d99840@univ-st-etienne.fr> In-Reply-To: <95330d48-9234-7259-db34-25eac3d99840@univ-st-etienne.fr> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------rORLmBKP7H0FmVJ489fXSv31" X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 Received-SPF: pass client-ip=194.254.240.33; envelope-from=guillaume.muller@univ-st-etienne.fr; helo=smtpout01-ext2.partage.renater.fr 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, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1648632524; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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:dkim-signature; bh=BSzd1fKqdkCoroOvLobiq7/CNk+eXsPSnVe+fFyMSq0=; b=BMFMr42xQGpJYpIqDob3m62ruMrHCE2x9lINv5/OvEm7Xxl2RAHnzi0S3dzSFPW2TlBXJi vk8eH8+PeeLdimOw7mKTBpznfNMvHh+fwlhd9FFFhAnTWol7QxPSp4DXNEtwT4e7RlOS8W HniDNXxIB8AKhqTw88ygXG0Fvced6xJ+1jlBla0CNRNyH4ZHcyjFa3g9QaWn/qiP1bzH9w QSVypXXP4nUZUbMp+C/COUapT68gKXjn6TC3fNb0mqYl7EMFxXpmD/s0ef3ErsCpgsrxgX uRCjYcAFQhp/2icdMBYhlikZoxZRqLStIQDF3AxJYaRyw/WFJyeFZNCeXpfzgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648632524; a=rsa-sha256; cv=none; b=QPhtmqYWAM0eJf+wYSPziP0OcHZLogtWZDljpBh4ibD6GZfnotbLFrsh5WjeDkoTHqFwe4 f4BpuQVar3Gz5z0STusd6cohquGDpxPzvRzBPPpijwcM0dcEcum658c43QP++DNipptEIC Gpl3H0nC5RwZFeIveVD3Z7hLa4gleoCoppEnAJr+elAn1MwBMocAuUFnhD/M6cLZBVQk9p mN8CU0Eg77UQf02Lr+2pYAtqdboFtDAnWTbW7DJDXPvihzHenwruYlAfASqGB4bMSULcQy aMp3S8++EA8xdbMHd1yr2QyTuK3+o7vnwFWqtJYXo0iQhqX5WZQQxerm50xISA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=univ-st-etienne.fr header.s=E44E4C1B-535F-44B3-88AE-37CEC3B0D85B header.b=usXTUvxz; dmarc=pass (policy=none) header.from=univ-st-etienne.fr; 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: -6.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=univ-st-etienne.fr header.s=E44E4C1B-535F-44B3-88AE-37CEC3B0D85B header.b=usXTUvxz; dmarc=pass (policy=none) header.from=univ-st-etienne.fr; 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: 350FEE41F X-Spam-Score: -6.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: gdflHweaJEVu This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------rORLmBKP7H0FmVJ489fXSv31 Content-Type: multipart/mixed; boundary="------------MEkUbTjINUqJTR94iewoA7ox"; protected-headers="v1" From: Guillaume MULLER To: emacs-orgmode@gnu.org Message-ID: <74e3985e-3236-e54e-66e1-7749cbd05929@univ-st-etienne.fr> Subject: Re: #+include vs. resizing & centrering [SOLUTION] References: <95330d48-9234-7259-db34-25eac3d99840@univ-st-etienne.fr> In-Reply-To: <95330d48-9234-7259-db34-25eac3d99840@univ-st-etienne.fr> --------------MEkUbTjINUqJTR94iewoA7ox Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry, I finally found a solution by myself :) Using a minipage instead of a scalebox tolerates the \begin{center} that = is automatically inserted: #+LATEX: \center \begin{minipage}[c]{.85\textwidth} #+INCLUDE: ./test.dot src dot :file test.png #+LATEX: \end{minipage} However, if someone has a pure/clean org-mode solution, I would love to l= earn it :) On 3/30/22 11:07, Guillaume MULLER wrote: > Dear all, >=20 > Thanks for org-mode, it is so perfect :) >=20 > I'm currently fighting with a problem that I cannot find a solution to = (either on my own or with help on the web). If someone could help me, I w= ould be very thankful. >=20 > I have an org-mode file that "includes" ane xternally generated image, = like so: >=20 > #+INCLUDE: ./test.dot src dot :file test.png >=20 > The thing is the resulting image is too big. So I want to resize it. >=20 > I've tried several things that did not work: > - add #+ATTR_LATEX: :width xxx before the #+INCLUDE > - add :width xxx or :scale xxx on the #+INCLUDE line itself > - ... >=20 > Thus I resolved to use plain LaTeX code with something like: > #+LATEX: \center \scalebox{.85}{% > #+INCLUDE: ./test.dot src dot :file test.png > #+LATEX: } >=20 > Then the problem is that #+INCLUDE adds a \begin{center}\end{center} ar= ound the image inclusion, and \scalebox{} does not like that, making the = resulting .tex file not compile ("perhaps missing \item"). >=20 > Again, I've tried several unsuccessful things : > - add #+ATTR_LATEX: :center nil before the #+INCLUDE > - add :center nil on the #+INCLUDE line itself > - ... >=20 > If anyone has an idea how a can solve the problem of resizing a #+INCLU= DE'd image, either in plain org or with a LaTeX "warkaround", I would be = very grateful. >=20 > Thanks ! > =20 > Guillaume MULLER, PhD --=20 Guillaume MULLER, PhD --------------MEkUbTjINUqJTR94iewoA7ox-- --------------rORLmBKP7H0FmVJ489fXSv31 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTFTP6rU8sM/yEMoNry0B/GG36d2gUCYkQiTgUDAAAAAAAKCRDy0B/GG36d2qgJ APwNCGv73Vpfb0oK8sf8fnJDY7MwIFdZMe5lp1mzdWq6nAEA4rY637J6vE9JCVpLkCerANgCSqr9 5K/WDSTJuRvUXAM= =nEeZ -----END PGP SIGNATURE----- --------------rORLmBKP7H0FmVJ489fXSv31--