From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: how to change the resizebox for a generated tikz diagram? Date: Tue, 23 Feb 2016 11:37:46 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYALm-0005YN-Ke for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:37:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYALj-0006Hy-EH for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:37:50 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:37539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYALj-0006Ge-7T for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:37:47 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, When exporting this source block to beamer #+header: :file (by-backend (beamer "foldleft.tikz") (t "foldleft.png")) #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometr= y 800 #+header: :results file raw #+header: :headers '("\\usepackage{tikz}") #+begin_src latex \usetikzlibrary{matrix,arrows} \begin{tikzpicture}[scale=3D2, every node/.style=3D{transform shape}] \matrix (m) [matrix of nodes, row sep=3D2em, column sep=3D3em] { & $[x_1;$ & $x_2;$ & $\ldots;$ & $x_n]$ & \\ $acc$ & \node (f1) [circle, draw] {$f$}; & \node (f2) [circle,draw] {$f$}= ; & & \node (fn) [circle,draw] {$f$}; & \texttt{fold\_left } $f$ \; $acc$ \= ; $[x_1; x_2; \ldots; x_n]$\\ }; \draw (m-2-1) edge[->,thick] (f1); \draw (f1) edge[->,thick] (f2); \draw (f2) edge[->,thick,dotted] (fn); \draw (fn) edge[->,thick] (m-2-6); \draw (m-1-2) edge[->,thick] (f1); \draw (m-1-3) edge[->,thick] (f2); \draw (m-1-5) edge[->,thick] (fn); \end{tikzpicture} #+end_src I get the following \resizebox{.9\linewidth}{!}{\input{foldleft.tikz}} How can I change the parameter of the resizebox command? I tried adding a line #+attr_latex :width \linewidth as I usually do for images, but it is not taken into account. Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82 (2016-01, Mauna Loa Obs.): 402.52 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWzDZ6AAoJEAQNCjtO0uXH5R0IAKOSTRwHZyBH2LOqd+Xw0N23 MG8NwYObxwyhHBVXn8/NEVjVLtTqSIWLyw90hT2T6MCu59xyZEqauYXkxS0scWCC Zp8U9wVsvdrZ7ght+HiVAm5TVKjyUSJI7LAO3kovvtRaOL4QBH2NvNsAVs0U1seY R+UYyF3LCxhOH2UfSoZvEg3X10JBgeL3KZA9IW71+W0r9GZekLWUeYtoITtc5Sd9 ByrOuVwbTPtyG+HQCVPmOxAgKcY0pOBzuCiUe0KEY3UN/6kSBUJCVbeC1FL4QBAH KK4jSoqHi37LQpCyNPZv4XwSrskG+vOjLae9bzo8HUBxBMGKpsoU1xwhMRhjSOk= =buid -----END PGP SIGNATURE----- --=-=-=--