Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!! Solved

2012-04-09 Thread Paul A . Rubin
AJR  iprimus.com.au> writes:

> Do you
> knock off the leading forward slash off the file path when you use that
> feature? Just seems counter intuitive to me.

No, I don't; I include the initial slash.  In fact, I just tested this with a
new document (LyX 2.0.1 on Linux Mint 11), and it worked fine with
"/home/paul/Desktop/whatever" as the path for the link. ("Fine" means, as
before, that Evince would not open the link, but Acrobat Reader 9 did by
forwarding it to Firefox.)

The PDF you uploaded before worked for me, so I'm not convinced this is an
anomaly in LyX.  It's very strange, though. If it were just one PDF viewer
involved at your end, I'd ask if the PDF viewer was current, but IIRC you said
the link was broken in multiple viewers (?).

Paul






Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!! Solved

2012-04-08 Thread AJR
I solved it, the solution was really simple, but not at all obvious to
me given how careful one must usually be with file paths in any *nix
application.Most apps do not fill in anything for you. Knocking the
leading / off the file path solved the problem. Instead of
putting
/home/foo/bar.xls 
in the Href dialogue box I put
home/foo/bar.xls 
as the target file. All worked as it should. Do you
knock off the leading forward slash off the file path when you use that
feature? Just seems counter intuitive to me.  Thanks for
your help.

Alasdair  

On Sat, 7 Apr 2012 14:07:31 + (UTC)
Paul A. Rubin  wrote:

> I downloaded your files, created a home directory for "badger" with a
> Documents subdirectory, and parked your .xls file there.  Then I
> opened your PDF file in Acrobat Reader (without touching your LyX
> file) and clicked the link.  I already had Firefox open.  AR gave me
> the usual security warning, and then Firefox asked me if I wanted to
> open the file or download it.  I opened it in LibreOffice Calc with
> no problem.
> 
> So your PDF output file is fine.  Are you sure that the link does not
> work on your machine?  What happens when you click it in AR?
> 
> Paul
> 
> 
> 
> 



Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-04-07 Thread Paul A . Rubin
I downloaded your files, created a home directory for "badger" with a Documents
subdirectory, and parked your .xls file there.  Then I opened your PDF file in
Acrobat Reader (without touching your LyX file) and clicked the link.  I already
had Firefox open.  AR gave me the usual security warning, and then Firefox asked
me if I wanted to open the file or download it.  I opened it in LibreOffice Calc
with no problem.

So your PDF output file is fine.  Are you sure that the link does not work on
your machine?  What happens when you click it in AR?

Paul






Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-04-03 Thread Alasdair Reed
There does not appear to be a space when it is viewed as you suggest.
Have constructed a minimal example and attached both .lyx file .pdf
file and .xls file .

Alasdair

On Tue, 3 Apr 2012 14:50:05 + (UTC)
Paul A. Rubin  wrote:

> You seem to have an errant space at the start of the file path.  Is
> it visible if you do View > Source with the cursor proximate to that
> line?
> 
> If the space does not occur in the path as you entered it, I would
> suggest constructing a minimal example and posting it to the list.
> 
> Paul
> 





pdf_link_example.lyx
Description: application/lyx


pdf_link_example.pdf
Description: Adobe PDF document


lyx_pdf_link_text.xls
Description: MS-Excel spreadsheet


Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-04-03 Thread Paul A . Rubin
You seem to have an errant space at the start of the file path.  Is it visible
if you do View > Source with the cursor proximate to that line?

If the space does not occur in the path as you entered it, I would suggest
constructing a minimal example and posting it to the list.

Paul



Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-04-02 Thread Alasdair Reed
On Sat, 31 Mar 2012 15:57:44 + (UTC)
Paul A. Rubin  wrote:

> I think this is a problem with Evince.  I just tried this (linking to
> both a PDF and an ODS file).  LyX exported my document correctly
> (using pdflatex).  Opened in Acrobat Reader, both links work
> correctly.  Opened in Evince, both links produce the error message
> you got.
> 
> Paul
> 
> 

Hi,

Tried with Ocular and Acrobat Reader and both had errors. Both were
"file not found" errors. 
"Firefox can't find the file
at / /media/Nano/Documents/tcm_files/foo.xls" 
It seems that lyx maybe 
passing an incorrect file path . When the link is clicked on in
the pdf, Acrobat Reader asks for permission before opening a linked file
and gives a file path:
"file:%20/media/Nano/Documents/tcm_files/foo.xls"
Here is the file path placed in the address bar of firefox by Acrobat
"file:/// /media/Nano/Documents/tcm_files/foo.xls" 

Opening the .xls file (if it could find it) in firefox by Acrobat is no
problem firefox just opens it in Libreoffice. I tested this by opening
the .xls file from the "File" dialogue in firefox. 

Also for completeness, www links in the lyx created pdf work perfectly
as they should opening a web page in firefox.

Regards,

Alasdair  
 




 


Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-03-31 Thread Paul A . Rubin
I think this is a problem with Evince.  I just tried this (linking to both a PDF
and an ODS file).  LyX exported my document correctly (using pdflatex).  Opened
in Acrobat Reader, both links work correctly.  Opened in Evince, both links
produce the error message you got.

Paul




lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-03-31 Thread Alasdair Reed

Hi, I am trying to create a link in a document to an external file (an 
using the "hyperlink" feature. However after creating the link in the
document and exporting to pdf the link appears as it should in the pdf,
but I get the following error message (file name altered) 

Error stating file '/media/Nano/file:/media/Nano/bar.xls': No such
file or directory


The file exists and the source of the document reflects the correct
file path. 

\href{file:/media/Nano/bar.xls}

The file is on an external drive,(the drive is always mounted) but
generally this shouldn't make any difference. Should it? I have created
test documents on the main hard drive with the same result. Have I
missed something here?

Regards,

Alasdair

-- 
Alasdair Reed 
Chinese Herbal Medicine Practitioner
22 South St 
Bellingen NSW 2454

M: 0403-869-932

T: 02 8456 0988



 The information transmitted is for the use of the intended recipient
 only and may contain confidential and/or legally privileged material.
 Any review, re-transmission, disclosure, dissemination or other use
 of, or taking of any action in reliance upon, this information by
 persons or entities other than the intended recipient is prohibited
 and may result in severe penalties. If you have received this email in
 error please notify the sender and delete all copies of this
 transmission together with any attachments.