* help with beamer and org: pictures alignment and size
@ 2017-08-30 10:35 Luca Ferrari
2017-08-30 10:52 ` Eric S Fraga
0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2017-08-30 10:35 UTC (permalink / raw)
To: emacs-org list
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
- [[./images/debian.png]]
- [[./images/redhat.png]]
The problem is that the images are displayed at the biggest size
available, going over the slide borders.
What am I missing to adapt the images?
Thanks,
Luca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with beamer and org: pictures alignment and size
2017-08-30 10:35 help with beamer and org: pictures alignment and size Luca Ferrari
@ 2017-08-30 10:52 ` Eric S Fraga
2017-08-31 7:44 ` Luca Ferrari
0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2017-08-30 10:52 UTC (permalink / raw)
To: Luca Ferrari; +Cc: emacs-org list
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with beamer and org: pictures alignment and size
2017-08-30 10:52 ` Eric S Fraga
@ 2017-08-31 7:44 ` Luca Ferrari
2017-08-31 8:35 ` Eric S Fraga
0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2017-08-31 7:44 UTC (permalink / raw)
To: Luca Ferrari, emacs-org list
On Wed, Aug 30, 2017 at 12:52 PM, Eric S Fraga <esflists@gmail.com> wrote:
> 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]]
Thanks, it provided me a good hint, so that now my slide is as follows
(I nuked the list):
** My slide
#+ATTR_LATEX: :width 0.2\textwidth
[[./images/debian.png]]
[[./images/redhat.png]]
[[./images/cisco.png]]
[[./images/skype.png]]
The above applies to all the images at once (I can confirm in the case
of a list you have to apply it to every item).
Anyway, I suspect I'm running a quite old org-mode: 9.0.2.
Try to update it now.
Thanks,
Luca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with beamer and org: pictures alignment and size
2017-08-31 7:44 ` Luca Ferrari
@ 2017-08-31 8:35 ` Eric S Fraga
0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2017-08-31 8:35 UTC (permalink / raw)
To: Luca Ferrari; +Cc: emacs-org list
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
On Thursday, 31 Aug 2017 at 09:44, Luca Ferrari wrote:
[...]
> Thanks, it provided me a good hint, so that now my slide is as follows
> (I nuked the list):
>
> ** My slide
> #+ATTR_LATEX: :width 0.2\textwidth
> [[./images/debian.png]]
> [[./images/redhat.png]]
> [[./images/cisco.png]]
> [[./images/skype.png]]
>
> The above applies to all the images at once (I can confirm in the case
> of a list you have to apply it to every item).
So, does this do what you wanted or not? The other thing you can do is
globally set org-latex-image-default-width, for instance.
> Anyway, I suspect I'm running a quite old org-mode: 9.0.2.
> Try to update it now.
No need as such; 9.0 is new enough for this type of situation. I was
concerned you were using 8.x or even older.
--
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-716-g7a247b
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-31 8:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30 10:35 help with beamer and org: pictures alignment and size Luca Ferrari
2017-08-30 10:52 ` Eric S Fraga
2017-08-31 7:44 ` Luca Ferrari
2017-08-31 8:35 ` Eric S Fraga
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).