From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Html-Exporter Hanling images / links Date: Tue, 26 Mar 2013 11:44:29 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKWzA-00053H-Mh for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 12:44:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKWz9-0006f4-0w for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 12:44:32 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:34223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKWz8-0006er-Ny for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 12:44:30 -0400 Received: by mail-la0-f52.google.com with SMTP id fs12so13861322lab.39 for ; Tue, 26 Mar 2013 09:44:29 -0700 (PDT) In-Reply-To: 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: Robert Eckl Cc: emacs-orgmode@gnu.org On Tue, Mar 26, 2013 at 11:36 AM, Robert Eckl wrote: > John Hendy writes: > >> On Tue, Mar 26, 2013 at 10:36 AM, Robert Eckl wrote: >>> Hi, >>> >>> with Org-mode version 8.0-pre (release_8.0-pre-193-gaa7b1e i got some >>> issues handling images and links: >>> >>> A Link [[http://www.mypage.de][description]] results in >>> desription without any link. >> >> I can't reproduce this. Here was my test file (copied and pasted from >> your email and then adjusted): >> > Sorry for the noise, there was a typo in my file http.//... instead of > http://... >> >>> >>> In the past i uses something like this: >>> >>> #+ATTR_HTML: alt="alt" title="title" align="right" width="100" >>> [[http://www.mypage.de][http://www.mypage/path/image.jpg]] >>> Some Text >>> more text more text >>> >>> Now the ATTR_HTML line seems to be ignored, so the image is not at the >>> right of the text but centered in an extra row. >> >> Now, for the image, did you check out the upgrade guide? A lot of the >> syntax has changed: >> - http://orgmode.org/worg/org-8.0.html#sec-8 >> > I'm using the new exporter nearly since it was merged in master branch > and seems i missed what exactly means "Atrribute lines now take plists". > Since last week my code worked as expected. > >> While it doesn't say it explicitly, this also applies to #+attr_html. >> Try this: >> >> #+begin_src org >> >> #+ATTR_HTML: :width 100px :alt alt :options title="Title" align="right" >> [[http://www.mypage.de][http://upload.wikimedia.org/wikipedia/commons/5/56/Tux.jpg]] >> Some Text >> more text more text >> >> #+end_src >> > This does the trick, > > Thank you very much for the quick and capable help. No problem. Just know there are some dedicated options (like :alt) and others that need (:options var="value"). I just tried them one by one, as I'm still not up to speed on which ones are which. I also found out that if you have multiple ones required for the :options bucket, you just use one :options bit and add them subsequently like above. Initially I did: :options title="Title" :options align="right" and that didn't work. Trial and error :) John > > Best regards, > > Robert