From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QNC7EKVzHGP49AAAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 13:23:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WE7WD6VzHGMTdAEAG6o9tA (envelope-from ) for ; Sat, 10 Sep 2022 13:23:17 +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 E081239729 for ; Sat, 10 Sep 2022 13:23:16 +0200 (CEST) Received: from localhost ([::1]:39934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWyZw-0000Lu-4J for larch@yhetil.org; Sat, 10 Sep 2022 07:23:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWyZV-0000Lk-5k for emacs-orgmode@gnu.org; Sat, 10 Sep 2022 07:22:49 -0400 Received: from ciao.gmane.io ([116.202.254.214]:43370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWyZT-0004AM-LX for emacs-orgmode@gnu.org; Sat, 10 Sep 2022 07:22:48 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oWyZR-0008SA-Bn for emacs-orgmode@gnu.org; Sat, 10 Sep 2022 13:22:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Rescaling #+INCLUDES / Not centering #+INCLUDE? Date: Sat, 10 Sep 2022 18:22:37 +0700 Message-ID: References: <620d1fd6-69a2-eb2d-c5f6-49157a43a8ed@univ-st-etienne.fr> <878rz7ldeh.fsf@ucl.ac.uk> <10c90de2-e295-c5fd-ba1f-ba6527b0a801@univ-st-etienne.fr> <87bkrny5hn.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US In-Reply-To: <87bkrny5hn.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.214, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1662808996; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6NhBNFiR2B3ufHfSvMS8QfSHg8Jx8wAUi+V02UqUFSc=; b=KUje5J19LRs/G51+o136LklPoRB3ryz9DJZaEeQ4V1sltz0qnpKJJI83Ov87oBIyLwTHC4 jlpZMAqkRcuTWzEtJ2OzWacZ7uxbgClYgzq2w9oIpRLEla0oJfZl2I+V3xACXB3m4ZVaRM U7sf7nHePCacB9IQNW3lxjncP7NXthqPRDGcB8LB4ZqsdCq1/CCjGLSJmfpPTZSArEb5or hPY4Wyj/CKz4eh9PouWWwli3VlfMVA3Y3rFOsibthPbmqUPl1nXK9gaIVHscoln5+yP8Ef HS7YfmUP8jjrmet1wmw6jJNiUkP8sk43mEBPSDp4Gz4UTLz9FZ6ZU41vX+3gQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662808996; a=rsa-sha256; cv=none; b=Pc1+4RoVNZytDFw6eD/OzpYmzUvSOCA1M6Ww0lBJrk2VXloEDtmhhhWR37VO0hYcDUlKSv feTMULBTJ/fvLbHoYtTHOC3ERWHQkZbIWaBELmHsYkoUSP+VQLoVy4F6qXqAE4kn/48GFm EajHmtgpm5DJ2Vbu1YV/F5Zc2B9MhYfUyhoHoOxvpDFDMMlq8jYdnJSeB+jr2ggN456in/ OmjIBBYy568qkORV1WXhmPAj+1zr5xt0CO5ISoM/Prg9hJeav6t+usf+q9ClT6b909XqMl bp87J83qzBtySHlM14peSRBiuRdUahuL+Np9UqdOuan56yep+PrK2qEde+Fy8Q== 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: 5.41 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: E081239729 X-Spam-Score: 5.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: rRrccPFIsjck On 10/09/2022 15:54, Ihor Radchenko wrote: > Guillaume MULLER writes: > >> My (unsuccessful) approaches so far to find a solution: >> 1. remove the automatic \begin{center} inserted by #+INCLUDE >> => using :center nil in #+INCLUDE or in additional #+ATTR_LATEX added above #+INCLUDE does not work >> 2. remove the use of \scalebox by using a more "org-mode"'s way of doing things >> => using :width in #+INCLUDE or in additional #+ATTR_LATEX or even passing options to dot have no effect (see previously attached file) > > It is kind of late, but I think that the problem is not with Org. Rather > with LaTeX. Org uses \begin{center}..\end{center} around the image, > which cannot be used inside \scalebox. See > https://tex.stackexchange.com/questions/67843/problem-resizing-an-itemize-environment-with-a-scalebox-somethings-wrong I have not tried to reproduce the issue, but provided latex snippet is quite strange. Accordingly to ORG-NEWS, \scalebox was added in 9.3 for tikz and pdf, while \includegraphics appeared in the example. In this case scale should be applied through \includegraphics option. Anyway I expect \begin{center} around \scalebox, not inside it. Finally it should be possible to pass :center nil through ob-dot to the generated image.