From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dov Grobgeld Subject: Re: Table with images export to LaTeX Date: Tue, 23 Jun 2015 17:30:31 +0300 Message-ID: References: <87lhfaekft.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134cc508653b00519303bd7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7PDd-0007EJ-Mr for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:30:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7PDc-00009S-CF for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:30:33 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:37117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7PDc-000080-0h for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 10:30:32 -0400 Received: by wicgi11 with SMTP id gi11so18696825wic.0 for ; Tue, 23 Jun 2015 07:30:31 -0700 (PDT) In-Reply-To: <87lhfaekft.fsf@ucl.ac.uk> 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: Dov Grobgeld , emacs-orgmode --001a1134cc508653b00519303bd7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Some further probing showed that it worked by me as well! But with one LaTex related restriction that I missed. The included filename must *not* include more than one period! In my original file I had part of the experiment conditions encoded in the name, e..g. lc-p0.5.jpg . This works fine in HTML but fails in LaTeX. Running pdflatex on the tex file yields: ! LaTeX Error: Unknown graphics extension: .5.jpg . The problem has nothing to do with the org exporting, and is a LaTeX limitation that I can live with. Case closed. :-) =E2=80=8BRegards, Dov=E2=80=8B On Tue, Jun 23, 2015 at 2:24 PM, Eric S Fraga wrote: > On Tuesday, 23 Jun 2015 at 10:24, Dov Grobgeld wrote: > > I tried to export a table with four images to LaTeX, but got a big mess > as > > a result. In contrast, the result in HTML export is fine. Has anyone ha= d > > better experience and can recommend some remedy? > > Works for me with recent org. What version of org are you using? What > is a /big mess/ more precisely? It could be useful to post the bit of > LaTeX generated for the table. > > How big are the images? Maybe set org-latex-image-default-width, for > instance? I often have something like this in documents where I am > going to change the default image size for LaTeX export frequently: > > #+begin_src org > # -*- org-export-allow-bind-keywords: t; -*- > ,#+bind: org-latex-image-default-width "2cm" > #+end_src > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org > release_8.3beta-1231-ga0a883 > --001a1134cc508653b00519303bd7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Some further probing showed that it worked by me as wel= l! But with one LaTex related restriction that I missed. The included filen= ame must not include more than one period! In my original file I had= part of the experiment conditions encoded in the name, e..g. lc-p0.5.jpg .= This works fine in HTML but fails in LaTeX.

Running pdfla= tex on the tex file yields:

! LaTeX Error: Unknown graphics extension: .5.jpg .

=
The problem has nothing to do with the org exporting, and is a LaT= eX limitation that I can live with. Case closed. :-)

=E2= =80=8BRegards,
Dov=E2=80=8B


On Tue, Jun 23, 2015 at 2:24 PM, Eric= S Fraga <e.fraga@ucl.ac.uk> wrote:
On Tuesday, 23 Jun 2015 at 10:24, Dov Grobgeld = wrote:
> I tried to export a table with four images to LaTeX, but got a big mes= s as
> a result. In contrast, the result in HTML export is fine. Has anyone h= ad
> better experience and can recommend some remedy?

Works for me with recent org.=C2=A0 What version of org are you usin= g?=C2=A0 What
is a /big mess/ more precisely?=C2=A0 It could be useful to post the bit of=
LaTeX generated for the table.

How big are the images? Maybe set org-latex-image-default-width, for
instance?=C2=A0 I often have something like this in documents where I am going to change the default image size for LaTeX export frequently:

#+begin_src org
=C2=A0 # -*- org-export-allow-bind-keywords: t; -*-
=C2=A0 ,#+bind: org-latex-image-default-width "2cm"
#+end_src

--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1231-ga0a= 883

--001a1134cc508653b00519303bd7--