From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Controlling the size of org babel image outputs in latex Date: Thu, 18 Oct 2018 08:27:43 +0100 Message-ID: <87y3av1zps.fsf@skimble.plus.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1539847588 701 195.159.176.226 (18 Oct 2018 07:26:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2018 07:26:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Ellis Adigvom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 09:26:24 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gD2hL-0008WI-8B for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 09:26:23 +0200 Original-Received: from localhost ([::1]:40660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD2jR-0003A3-DS for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 03:28:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD2j2-00039b-S1 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 03:28:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gD2it-0000si-G8 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 03:28:04 -0400 Original-Received: from avasout04.plus.net ([212.159.14.19]:57776) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gD2ir-0000bD-KS for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 03:27:57 -0400 Original-Received: from london.london ([51.7.106.168]) by smtp with ESMTPA id D2ikgOWprq6aVD2ilgwyRW; Thu, 18 Oct 2018 08:27:51 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=ONEJIxSB c=1 sm=1 tr=0 a=dgB71pSSGrF/lpTl2NEaIA==:117 a=dgB71pSSGrF/lpTl2NEaIA==:17 a=pGLkceISAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=Pot8Fe1bIR7PjSwa2mQA:9 a=rH1afo2Lu4ErcC07:21 a=oEVZsCbLlqFH-PfC:21 a=QEXdDO2ut3YA:10 a=No_nBPx6Yyt2K_5ZHXsA:9 a=ONNS8QRKHyMA:10 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Ellis Adigvom's message of "Wed, 17 Oct 2018 15:17:53 +0000") X-CMAE-Envelope: MS4wfMuUEZC4vtnvCo3g4SULNfW65sYuMMgjIC9EAlUas1qyz5wzuB6g6CB1wUAUWjvTR2pxyJPvNTcMniyH7QtPx43eTY7ff/F5YW0eAYEDmMgm+HL7/YlL Jake5evb4zIvSKKB7bZ9mlxS1ymgpkVcbv7wRkaP8Yc1fPr8AQUWtvZcnRbdA1FneRTnuMap2UDg8Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 212.159.14.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118318 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ellis Adigvom writes: > Hi, > > I have an org mode document with some embedded PlantUML code blocks. I ex= port this file to PDF > through latex (C-c C-e l p). I have some diagrams which are rather small,= but they are expanded to > fill the page, and this looks awkward in the result. > > How can I control the size of the image in the exported file? I've tried = using: > > =C2=A0=C2=A0=C2=A0 #+ATTR_LATEX: :width: 4cm > =C2=A0=C2=A0=C2=A0 #+BEGIN_SRC plantuml :file diagram.png > > =C2=A0=C2=A0=C2=A0 ... > > =C2=A0=C2=A0=C2=A0 #+END_SRC > > But this doesn't have any impact on the output. Can anyone help me with t= his? > Hi Ellis. This is what I'm using for any images in things that I'm writing in org-mod= e - =2D-8<---------------cut here---------------start------------->8--- #+CAPTION: Bunions #+ATTR_LATEX: :float wrap :width 0.38\textwidth :placement {R}{0.4\textwidt= h} #+LABEL: fig:bunions [[./images/bunions.jpg] #+CAPTION: Main bunion sites on females and male bodies #+ATTR_LATEX: :width 0.6\textwidth :float t :placement [H] #+LABEL: fig:bunions [[./images/bunion-sites.png] =2D-8<---------------cut here---------------end--------------->8--- The first places the image on the right of the page and allows text to wrap around it, and the second places the image centred in its space. Note that the images are all held in a sub-directory of the main directory called 'images'. You can play with the 'width' dimensions to achieve the look that you want, I frequently do :) I don't have any '#+BEGIN_SRC' its just that straight latex code block inserted where I need it, and org-mode is adult enough to behave I've found. Hope this helps? Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.14 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlvINfAACgkQNoGAGQr4 g1vz2w/7BccSVYgYRlVmEQ5KhtHMSwf76nkwwVTfYX1RCpulkj9FbeZc1FGw3atb JOQa5n5JvLHISG7oZrfOIUL0YdKobdrRHKyBX/sb3ScoQW3VOya3t53sWzmkCMS7 c8zsDcvCBeZJu31EToxJzU7pu6jxhvw3KDB790U+WLgATVOcAkyWEnyruiID3Jus kPJWMXNSem4VfzYwVOc2Sl7lAwdFuNBK01QRpeGlbISdP13OAl+YUUbIye9R4zEy CFWlbLndgmY++kLGcosXRIjSUlSrUpdCVrzybMnUOVpgfV56TJj7CPaKZDV+bt+O qIF1vgBW+d4MvH4a87ZU+Yn+yayJLmoQNYgGvwvP9izlxxs/IERRSuIxNb0iaYmc GB5XFHSFbtcA6CpsbmEH1QHPZzl/LvDbXDaM4e18CPR6M4REttlL+z8PZMRTo/92 UqDz3UMKaNc7dOHLlpwGgTNFfPiKTNUrHOfTSAYEaM9SJUwTz/r1YykS+KibG+xg wRY6w8d0bTA/uA7MRLVNExJJR1BmfvrAwmI7orBqyFuyvcYbCHyTR1sfwcAFZfah GGcsI3sVnrVR2jN+XdAaTIAoN1B92WCGQ15b5RWyrjeMDsnDHPN/dRlGgn4WL5yK QO9lMMll1/Xy/v+RLoeY+V08tR7+wQRdL7IIx6asq/Ts1ixV2cw= =WjM5 -----END PGP SIGNATURE----- --=-=-=--