Re: Change PDF viewer (windows)
Hi, I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say Invalid URL. But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? Regards Toby
Re: Change PDF viewer (windows)
Tobias Krause wrote: Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Whitespace is allowed in the path prefix, though. I just installed PDF-XChangeViewer for test purposes. I did the default installation, put the path (including spaces) in the path prefix, and put the name of the .exe file (which contains no spaces) in the viewer slot of the file format. I assume you did this below, since you were able to load the viewer (and generate the URL message). Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say Invalid URL. But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? The problem in this case is that LyX uses Unix-style separators (/) in the file path. Windows understands these correctly, so most applications work, but for some reason PDF-XChangeViewer chokes on them. I verified this by starting PDF-XChangeViewer from the command line, giving it the path to the temp buffer PDF file (in quotes). With DOS separators (\) it works, with Unix separators it gives the URL message. If you ultimately settle on a viewer that has this problem, one solution would be to set the viewer field in the LyX file format entry to a batch file that converts the path and then invokes the viewer. This would be easy to do if you have sed installed. (The GnuWin32 version is a free download.) /Paul
Re: Change PDF viewer (windows)
Hi, I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say Invalid URL. But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? Regards Toby
Re: Change PDF viewer (windows)
Tobias Krause wrote: Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Whitespace is allowed in the path prefix, though. I just installed PDF-XChangeViewer for test purposes. I did the default installation, put the path (including spaces) in the path prefix, and put the name of the .exe file (which contains no spaces) in the viewer slot of the file format. I assume you did this below, since you were able to load the viewer (and generate the URL message). Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say Invalid URL. But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? The problem in this case is that LyX uses Unix-style separators (/) in the file path. Windows understands these correctly, so most applications work, but for some reason PDF-XChangeViewer chokes on them. I verified this by starting PDF-XChangeViewer from the command line, giving it the path to the temp buffer PDF file (in quotes). With DOS separators (\) it works, with Unix separators it gives the URL message. If you ultimately settle on a viewer that has this problem, one solution would be to set the viewer field in the LyX file format entry to a batch file that converts the path and then invokes the viewer. This would be easy to do if you have sed installed. (The GnuWin32 version is a free download.) /Paul
Re: Change PDF viewer (windows)
Hi, I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say "Invalid URL". But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? Regards Toby
Re: Change PDF viewer (windows)
Tobias Krause wrote: Yes, I did exactly the same - and it did not work when I tried it last time... First I realized that whitespace in the viewer name are not supported so I changed the name of the viewer binary... Whitespace is allowed in the path prefix, though. I just installed PDF-XChangeViewer for test purposes. I did the default installation, put the path (including spaces) in the path prefix, and put the name of the .exe file (which contains no spaces) in the viewer slot of the file format. I assume you did this below, since you were able to load the viewer (and generate the URL message). Just now I tried changing the viewer again (to write a correct answer) and for what ever reason it worked except the thing that PDF-XChange Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not accept the file path (while it does if it is the system standard for PDFviewing): it say "Invalid URL". But since I set PDF-XChange Viewer just for testing purpose I don't care at the moment - but it's still kind of weird: where is the difference in the ways LyX calls the viewer? The problem in this case is that LyX uses Unix-style separators (/) in the file path. Windows understands these correctly, so most applications work, but for some reason PDF-XChangeViewer chokes on them. I verified this by starting PDF-XChangeViewer from the command line, giving it the path to the temp buffer PDF file (in quotes). With DOS separators (\) it works, with Unix separators it gives the URL message. If you ultimately settle on a viewer that has this problem, one solution would be to set the viewer field in the LyX file format entry to a batch file that converts the path and then invokes the viewer. This would be easy to do if you have sed installed. (The GnuWin32 version is a free download.) /Paul
Re: Change PDF viewer (windows)
Tobias Krause wrote: Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Can you specify which viewer you tried and exactly what you did in both the PATH prefix and the formats section? /Paul
Re: Change PDF viewer (windows)
Tobias Krause wrote: Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Can you specify which viewer you tried and exactly what you did in both the PATH prefix and the formats section? /Paul
Re: Change PDF viewer (windows)
Tobias Krause wrote: Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools --> Preferences --> File formats, but * absolut path did not work * adding the path to the viewer exe to Tools --> Preferences --> Paths --> PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby I have done this in the past by putting the path to the viewer in the PATH prefix. I assume that you also specified the viewer in the File formats (and then clicked Modify followed by Save)? Can you specify which viewer you tried and exactly what you did in both the PATH prefix and the formats section? /Paul
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools --> Preferences --> File formats, but * absolut path did not work * adding the path to the viewer exe to Tools --> Preferences --> Paths --> PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby