emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Luca Ferrari <fluca1978@infinito.it>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: help with beamer and org: pictures alignment and size
Date: Wed, 30 Aug 2017 11:52:41 +0100	[thread overview]
Message-ID: <87fuc9ba4m.fsf@t3610> (raw)
In-Reply-To: <CAKoxK+6tsJpUjRc_cxeU4J=QMRW-jKrsShp_jcgzdu49GcHEFQ@mail.gmail.com> (Luca Ferrari's message of "Wed, 30 Aug 2017 12:35:48 +0200")

[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]

On Wednesday, 30 Aug 2017 at 12:35, Luca Ferrari wrote:
> Hi all,
> I'm producing my first beamer presentation via org-mode, and so far so
> good. However I would like to have a slide to display a few pictures,
> one per row or even in a grid, so I tried the following:
>
> ** My slide
> #+ATTR_LATEX: width=0.1\textwidth

First of all, it depends on what version of org you are using.  Assuming
you are using a recent version, your syntax here is wrong; it should be:

  #+ATTR_LATEX: :width 0.1\textwidth
  
>    - [[./images/debian.png]]
>    - [[./images/redhat.png]]

Secondly, the attribute will only apply to the first image (I believe)
so you will need to repeat the attribute setting.  Actually, it may
apply only to the item and not the image.  You many need to do something
like this:

#+begin_src org
  -
    ,#+ATTR_LATEX: :width 0.1\textwidth :center nil
    [[./images/debian.png]]
  - 
    ,#+ATTR_LATEX: :width 0.1\textwidth :center nil
    [[./images/redhat.png]]

#+end_src

If you are using an older version of org, I highly recommend upgrading
especially if you intend to use beamer.

HTH,
eric


-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-715-g8b5b2c

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2017-08-30 10:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 10:35 help with beamer and org: pictures alignment and size Luca Ferrari
2017-08-30 10:52 ` Eric S Fraga [this message]
2017-08-31  7:44   ` Luca Ferrari
2017-08-31  8:35     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fuc9ba4m.fsf@t3610 \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fluca1978@infinito.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).