From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: file link completion and html export... Date: Thu, 9 Jul 2015 16:38:18 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134d45e45c10b051a773c2b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDIaL-0001Jt-6Q for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 16:38:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDIaK-0004KQ-0Q for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 16:38:21 -0400 Received: from mail-vn0-x230.google.com ([2607:f8b0:400c:c0f::230]:44413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDIaJ-0004Jr-Ri for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 16:38:19 -0400 Received: by vnbg129 with SMTP id g129so29633045vnb.11 for ; Thu, 09 Jul 2015 13:38:18 -0700 (PDT) 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: Org Mode --001a1134d45e45c10b051a773c2b Content-Type: text/plain; charset=UTF-8 OK, hi again, I realize I've been asking lots of question and generating a certain amount of noise. Many thanks for help you've all given in last little bit. I've finally moved over entirely reveal.js and org-reveal (it's so great!) and want to be sure that my presentations all work (a) locally, on my laptop, and (b) accessible online, for my students to examine afterwards. Most of my images are just stolen from the web, but occasionally I modify or generatethem myself. In this case they live in a local directory. I can easily sync these with org-publish-attachment, but only if I enter the links properly with C-c C-l. The worg tutorial suggests: Same is true for images. To add an image, put it in =~/org/img/test.jpg= and refer to it by : [[file:img/test.jpg]] When entered this way, file links are ocnverted to html relative links. I've tried this, but it seems as though emacs's file completion doesn't recognize this link style, and I don't get completion. Since I almost never know the name of the file I'm attaching, I get frustrated and enter a file:///home/matt/... link, which doesn't get altered on export. Is there a better solution? Thanks as always! --001a1134d45e45c10b051a773c2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
OK, hi again,

I realize I'= ve been asking lots of question and generating a certain amount of noise. M= any thanks for help you've all given in last little bit.=C2=A0 I've= finally moved over entirely reveal.js and org-reveal (it's so great!) = and want to be sure that my presentations all work (a) locally, on my lapto= p, and (b) accessible online, for my students to examine afterwards.
Most of my images are just stolen from the web, but occasionally I = modify or generatethem myself. In this case they live in a local directory.= =C2=A0 I can easily sync these with org-publish-attachment, but only if I e= nter the links properly with C-c C-l.=C2=A0

The worg tutorial= suggests:

Same is true for images. To add an image, put it in =
=3D~/org/img/test.jpg=3D and
  refer to it by
  : [[file:img/test.jpg]]
When entered this way, file links are ocnverted to html relative links.
=
I've tried this, but it seems as tho=
ugh emacs's file completion doesn't 
recognize this link style, = and I don't get completion. Since I almost never know
<= pre>the name of the file I'm attaching, I get frustrat= ed and enter a
file:///home/matt/...=


link, which doesn't get alte=
red on export.  Is there a better solution? 

Thanks as always! 

--001a1134d45e45c10b051a773c2b--