Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). This can't be that complicated. Am I doing something wrong? Liviu For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronic landronim...@gmail.com wrote: On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). Yes, it is heavy and more complicated. If you want a lightweight and quick clipboard manager, this is not for you. If you want one that you can do whatever you want with and have a little time to spend to learn it, it should be considered. But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). Strange. I do not notice the bit slow. Perhaps I just got used to it, but I don't remember that. Slow in what? After you type copy c you see a pause? or after copy v? Or after one of the commands we're talking about? But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Try copyq write image/png - newfile2.png copyq select 0 Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). LibO must not handle image/png (perhaps this should be requested of LibO). LibO does seem to handle image/bmp So do convert newfile2.png convert newfile2.bmp copyq write image/bmp - newfile2.bmp copyq select 0 Now it will paste into LibO. By the way, how did I find out that bmp will work? I copied an image in Chromium by right-clicking and going to copy image. I then tried to paste it in LibO. It worked. I opened up CopyQ (by clicking on show/hide in the tray icon). I right-clicked on the picture item (which should display as an actual picture) and clicked on Show Content. Then in the left column under Formats you will see all of the MIME types. These are all of the types that LibO can choose from when it receives a paste. I guessed that it went for the bmp. If you have any other questions, consider the CopyQ google group: https://groups.google.com/forum/#!forum/copyq It looks lonely there but that's just because no one is asking questions. When someone does, Lukas is very quick. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 4:35 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronic landronim...@gmail.com wrote: On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). Yes, it is heavy and more complicated. If you want a lightweight and quick clipboard manager, this is not for you. If you want one that you can do whatever you want with and have a little time to spend to learn it, it should be considered. But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). Strange. I do not notice the bit slow. Perhaps I just got used to it, but I don't remember that. Slow in what? After you type copy c you see a pause? or after copy v? Or after one of the commands we're talking about? After the 'v', but maybe it's just my system swapping. But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Try copyq write image/png - newfile2.png copyq select 0 Aha! So that's how it's done. Then 'v' works fine in LyX. But also in Gimp and mtPaint. Cool. Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). LibO must not handle image/png (perhaps this should be requested of LibO). LibO does seem to handle image/bmp So do convert newfile2.png convert newfile2.bmp copyq write image/bmp - newfile2.bmp copyq select 0 Now it will paste into LibO. Oh, nice to know. (And how strange of LibO!) By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Thanks, Liviu I copied an image in Chromium by right-clicking and going to copy image. I then tried to paste it in LibO. It worked. I opened up CopyQ (by clicking on show/hide in the tray icon). I right-clicked on the picture item (which should display as an actual picture) and clicked on Show Content. Then in the left column under Formats you will see all of the MIME types. These are all of the types that LibO can choose from when it receives a paste. I guessed that it went for the bmp. If you have any other questions, consider the CopyQ google group: https://groups.google.com/forum/#!forum/copyq It looks lonely there but that's just because no one is asking questions. When someone does, Lukas is very quick. Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. I now tried to set up a converter in LyX, but it didn't quite go to plan: # # FORMATS SECTION ## # \format copyq1 CopyQ (PDF)document,menu=export # # CONVERTERS SECTION ## # \converter pdf7 copyq1 copyq write application/pdf - $$i copyq select 0 I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, and seemed to fail when activated manually. I'm not sure that our converters are designed to deal with something like this. Liviu Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:36 PM, Liviu Andronic landronim...@gmail.com wrote: On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. I now tried to set up a converter in LyX, but it didn't quite go to plan: # # FORMATS SECTION ## # \format copyq1 CopyQ (PDF)document,menu=export # # CONVERTERS SECTION ## # \converter pdf7 copyq1 copyq write application/pdf - $$i copyq select 0 I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, and seemed to fail when activated manually. I'm not sure that our converters are designed to deal with something like this. For debugging converters I suggest creating a script and then putting the commands in sequentially. This way in the script you can put something like echo script ran with argument $1 /home/liviu/Desktop/test.log copyq write application/pdf - $1 echo copyq write succeeded /home/liviu/Desktop/test.log copyq select 0 echo copyq select succeeded /home/liviu/Desktop/test.log Scott
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). This can't be that complicated. Am I doing something wrong? Liviu For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronic landronim...@gmail.com wrote: On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). Yes, it is heavy and more complicated. If you want a lightweight and quick clipboard manager, this is not for you. If you want one that you can do whatever you want with and have a little time to spend to learn it, it should be considered. But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). Strange. I do not notice the bit slow. Perhaps I just got used to it, but I don't remember that. Slow in what? After you type copy c you see a pause? or after copy v? Or after one of the commands we're talking about? But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Try copyq write image/png - newfile2.png copyq select 0 Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). LibO must not handle image/png (perhaps this should be requested of LibO). LibO does seem to handle image/bmp So do convert newfile2.png convert newfile2.bmp copyq write image/bmp - newfile2.bmp copyq select 0 Now it will paste into LibO. By the way, how did I find out that bmp will work? I copied an image in Chromium by right-clicking and going to copy image. I then tried to paste it in LibO. It worked. I opened up CopyQ (by clicking on show/hide in the tray icon). I right-clicked on the picture item (which should display as an actual picture) and clicked on Show Content. Then in the left column under Formats you will see all of the MIME types. These are all of the types that LibO can choose from when it receives a paste. I guessed that it went for the bmp. If you have any other questions, consider the CopyQ google group: https://groups.google.com/forum/#!forum/copyq It looks lonely there but that's just because no one is asking questions. When someone does, Lukas is very quick. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 4:35 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronic landronim...@gmail.com wrote: On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg This looks very promising (although this is one seriously complicated clipboard manager). Yes, it is heavy and more complicated. If you want a lightweight and quick clipboard manager, this is not for you. If you want one that you can do whatever you want with and have a little time to spend to learn it, it should be considered. But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). Strange. I do not notice the bit slow. Perhaps I just got used to it, but I don't remember that. Slow in what? After you type copy c you see a pause? or after copy v? Or after one of the commands we're talking about? After the 'v', but maybe it's just my system swapping. But for images or pdf, I need to proceed as follows: copyq write image/png - newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Try copyq write image/png - newfile2.png copyq select 0 Aha! So that's how it's done. Then 'v' works fine in LyX. But also in Gimp and mtPaint. Cool. Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). LibO must not handle image/png (perhaps this should be requested of LibO). LibO does seem to handle image/bmp So do convert newfile2.png convert newfile2.bmp copyq write image/bmp - newfile2.bmp copyq select 0 Now it will paste into LibO. Oh, nice to know. (And how strange of LibO!) By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Thanks, Liviu I copied an image in Chromium by right-clicking and going to copy image. I then tried to paste it in LibO. It worked. I opened up CopyQ (by clicking on show/hide in the tray icon). I right-clicked on the picture item (which should display as an actual picture) and clicked on Show Content. Then in the left column under Formats you will see all of the MIME types. These are all of the types that LibO can choose from when it receives a paste. I guessed that it went for the bmp. If you have any other questions, consider the CopyQ google group: https://groups.google.com/forum/#!forum/copyq It looks lonely there but that's just because no one is asking questions. When someone does, Lukas is very quick. Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. I now tried to set up a converter in LyX, but it didn't quite go to plan: # # FORMATS SECTION ## # \format copyq1 CopyQ (PDF)document,menu=export # # CONVERTERS SECTION ## # \converter pdf7 copyq1 copyq write application/pdf - $$i copyq select 0 I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, and seemed to fail when activated manually. I'm not sure that our converters are designed to deal with something like this. Liviu Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:36 PM, Liviu Andronic landronim...@gmail.com wrote: On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshak skost...@lyx.org wrote: On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic landronim...@gmail.com wrote: By the way, how did I find out that bmp will work? Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. I now tried to set up a converter in LyX, but it didn't quite go to plan: # # FORMATS SECTION ## # \format copyq1 CopyQ (PDF)document,menu=export # # CONVERTERS SECTION ## # \converter pdf7 copyq1 copyq write application/pdf - $$i copyq select 0 I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, and seemed to fail when activated manually. I'm not sure that our converters are designed to deal with something like this. For debugging converters I suggest creating a script and then putting the commands in sequentially. This way in the script you can put something like echo script ran with argument $1 /home/liviu/Desktop/test.log copyq write application/pdf - $1 echo copyq write succeeded /home/liviu/Desktop/test.log copyq select 0 echo copyq select succeeded /home/liviu/Desktop/test.log Scott
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshakwrote: > On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic wrote: > >> One idea would be to use a commandline utility that allows copying >> image files to the clipboard, and create a new converter from >> PDF(cropped) towards this utility. But so far I couldn't find anything >> for Linux, let alone cross-platform. Otherwise, I'm wondering if we >> have an LFUN that would provide this functionality. But I'm not sure >> how exactly that could work. > > Good idea Liviu. I recommend CopyQ if you want to implement this. It > works great on Linux, supposedly works on Windows, and support is > experimental on OS X 10.9+. The author of CopyQ is extremely > responsive to features and bug reports (he implemented a feature that > I'm pretty sure only I use, just for me). This is one of the best > clipboard managers out there (although note the focus is on features > over lightweight) but it is not well known. > > To put an image on the clipboard, you can do e.g. > copyq write image/svg - < image.svg > This looks very promising (although this is one seriously complicated clipboard manager). But I'm a bit lost as to how it works. Copy/paste text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). But for images or pdf, I need to proceed as follows: copyq write image/png - < newfile2.png then I need to open CopyQ, select the item labeled 0, then hit the Move to Clipboard button. Now ctrl+v in LyX will paste the image (but this doesn't seem to work in LibO, though). This can't be that complicated. Am I doing something wrong? Liviu > For more info, see > https://github.com/hluk/CopyQ > > To install, I believe it's a simple > cmake . > make > sudo make install > > First you must have dependencies. See the INSTALL file for explicit > instructions for which packages you need for Ubuntu. Let me know if > you want help with anything. > > Best, > > Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronicwrote: > On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak wrote: >> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >> wrote: >> >>> One idea would be to use a commandline utility that allows copying >>> image files to the clipboard, and create a new converter from >>> PDF(cropped) towards this utility. But so far I couldn't find anything >>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we >>> have an LFUN that would provide this functionality. But I'm not sure >>> how exactly that could work. >> >> Good idea Liviu. I recommend CopyQ if you want to implement this. It >> works great on Linux, supposedly works on Windows, and support is >> experimental on OS X 10.9+. The author of CopyQ is extremely >> responsive to features and bug reports (he implemented a feature that >> I'm pretty sure only I use, just for me). This is one of the best >> clipboard managers out there (although note the focus is on features >> over lightweight) but it is not well known. >> >> To put an image on the clipboard, you can do e.g. >> copyq write image/svg - < image.svg >> > This looks very promising (although this is one seriously complicated > clipboard manager). Yes, it is heavy and more complicated. If you want a lightweight and quick clipboard manager, this is not for you. If you want one that you can do whatever you want with and have a little time to spend to learn it, it should be considered. > But I'm a bit lost as to how it works. Copy/paste > text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). Strange. I do not notice the "bit slow". Perhaps I just got used to it, but I don't remember that. Slow in what? After you type copy c you see a pause? or after copy v? Or after one of the commands we're talking about? > But for > images or pdf, I need to proceed as follows: > copyq write image/png - < newfile2.png > then I need to open CopyQ, select the item labeled 0, then hit the > Move to Clipboard button. Try copyq write image/png - < newfile2.png && copyq select 0 > Now ctrl+v in LyX will paste the image (but > this doesn't seem to work in LibO, though). LibO must not handle image/png (perhaps this should be requested of LibO). LibO does seem to handle image/bmp So do convert newfile2.png convert newfile2.bmp copyq write image/bmp - < newfile2.bmp && copyq select 0 Now it will paste into LibO. By the way, how did I find out that bmp will work? I copied an image in Chromium by right-clicking and going to "copy image". I then tried to paste it in LibO. It worked. I opened up CopyQ (by clicking on show/hide in the tray icon). I right-clicked on the picture item (which should display as an actual picture) and clicked on "Show Content". Then in the left column under "Formats" you will see all of the MIME types. These are all of the types that LibO can choose from when it receives a paste. I guessed that it went for the bmp. If you have any other questions, consider the CopyQ google group: https://groups.google.com/forum/#!forum/copyq It looks lonely there but that's just because no one is asking questions. When someone does, Lukas is very quick. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 4:35 PM, Scott Kostyshakwrote: > On Sat, Apr 5, 2014 at 8:12 AM, Liviu Andronic wrote: >> On Thu, Apr 3, 2014 at 10:53 PM, Scott Kostyshak wrote: >>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >>> wrote: >>> One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. >>> >>> Good idea Liviu. I recommend CopyQ if you want to implement this. It >>> works great on Linux, supposedly works on Windows, and support is >>> experimental on OS X 10.9+. The author of CopyQ is extremely >>> responsive to features and bug reports (he implemented a feature that >>> I'm pretty sure only I use, just for me). This is one of the best >>> clipboard managers out there (although note the focus is on features >>> over lightweight) but it is not well known. >>> >>> To put an image on the clipboard, you can do e.g. >>> copyq write image/svg - < image.svg >>> >> This looks very promising (although this is one seriously complicated >> clipboard manager). > > Yes, it is heavy and more complicated. If you want a lightweight and > quick clipboard manager, this is not for you. If you want one that you > can do whatever you want with and have a little time to spend to learn > it, it should be considered. > >> But I'm a bit lost as to how it works. Copy/paste >> text is a bit slow but works fine (v 2.0.1 on Xubuntu 12.04). > > Strange. I do not notice the "bit slow". Perhaps I just got used to > it, but I don't remember that. Slow in what? After you type copy c you > see a pause? or after copy v? Or after one of the commands we're > talking about? > After the 'v', but maybe it's just my system swapping. >> But for >> images or pdf, I need to proceed as follows: >> copyq write image/png - < newfile2.png >> then I need to open CopyQ, select the item labeled 0, then hit the >> Move to Clipboard button. > > Try copyq write image/png - < newfile2.png && copyq select 0 > Aha! So that's how it's done. Then 'v' works fine in LyX. But also in Gimp and mtPaint. Cool. >> Now ctrl+v in LyX will paste the image (but >> this doesn't seem to work in LibO, though). > > LibO must not handle image/png (perhaps this should be requested of LibO). > LibO does seem to handle image/bmp > > So do > convert newfile2.png convert newfile2.bmp > copyq write image/bmp - < newfile2.bmp && copyq select 0 > > Now it will paste into LibO. > Oh, nice to know. (And how strange of LibO!) > By the way, how did I find out that bmp will work? > Not smoothly. :) I ended up with a black box in LibO. Thanks, Liviu > I copied an image > in Chromium by right-clicking and going to "copy image". > I then tried to paste it in LibO. It worked. I opened up CopyQ (by > clicking on show/hide in the tray icon). I right-clicked on the > picture item (which should display as an actual picture) and clicked > on "Show Content". Then in the left column under "Formats" you will > see all of the MIME types. These are all of the types that LibO can > choose from when it receives a paste. I guessed that it went for the > bmp. > > If you have any other questions, consider the CopyQ google group: > https://groups.google.com/forum/#!forum/copyq > It looks lonely there but that's just because no one is asking > questions. When someone does, Lukas is very quick. > > Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronicwrote: >> By the way, how did I find out that bmp will work? >> > Not smoothly. :) I ended up with a black box in LibO. Strange, works for me. I have version 4.1.3. It actually appears that LibO prefers either the text/uri-list or text/html. In any case, this is a LibO issue in my opinion. I'd be curious to see what they say if you end up reporting this. Scott
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshakwrote: > On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic > wrote: > >>> By the way, how did I find out that bmp will work? >>> >> Not smoothly. :) I ended up with a black box in LibO. > > Strange, works for me. I have version 4.1.3. > It actually appears that LibO prefers either the text/uri-list or text/html. > In any case, this is a LibO issue in my opinion. I'd be curious to see > what they say if you end up reporting this. > I now tried to set up a converter in LyX, but it didn't quite go to plan: # # FORMATS SECTION ## # \format "copyq1" "" "CopyQ (PDF)" "" "" "" "document,menu=export" "" # # CONVERTERS SECTION ## # \converter "pdf7" "copyq1" "copyq write application/pdf - < $$i && copyq select 0" "" I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, and seemed to fail when activated manually. I'm not sure that our converters are designed to deal with something like this. Liviu > Scott -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Sat, Apr 5, 2014 at 12:36 PM, Liviu Andronicwrote: > On Sat, Apr 5, 2014 at 6:34 PM, Scott Kostyshak wrote: >> On Sat, Apr 5, 2014 at 12:24 PM, Liviu Andronic >> wrote: >> By the way, how did I find out that bmp will work? >>> Not smoothly. :) I ended up with a black box in LibO. >> >> Strange, works for me. I have version 4.1.3. >> It actually appears that LibO prefers either the text/uri-list or text/html. >> In any case, this is a LibO issue in my opinion. I'd be curious to see >> what they say if you end up reporting this. >> > I now tried to set up a converter in LyX, but it didn't quite go to plan: > # > # FORMATS SECTION ## > # > > \format "copyq1" "" "CopyQ (PDF)" "" "" "" "document,menu=export" "" > > # > # CONVERTERS SECTION ## > # > > \converter "pdf7" "copyq1" "copyq write application/pdf - < $$i && > copyq select 0" "" > > I'm not sure what's wrong. CopyQ (PDF) wouldn't appear in the menus, > and seemed to fail when activated manually. I'm not sure that our > converters are designed to deal with something like this. For debugging converters I suggest creating a script and then putting the commands in sequentially. This way in the script you can put something like echo "script ran with argument $1" > /home/liviu/Desktop/test.log copyq write application/pdf - < $1 && echo "copyq write succeeded" >> /home/liviu/Desktop/test.log copyq select 0 && echo "copyq select succeeded" >> /home/liviu/Desktop/test.log Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:10 PM, Stephan Witt st.w...@gmx.net wrote: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. It's on the guy's web site https://github.com/hluk/CopyQ, under Dependencies. Jerry Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Stephan
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:49 PM, Stephan Witt st.w...@gmx.net wrote: Am 04.04.2014 um 07:10 schrieb Stephan Witt st.w...@gmx.net: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. Stephan Oops--shot off a reply to your other note before reading this one. Jerry
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:10 PM, Stephan Witt st.w...@gmx.net wrote: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. It's on the guy's web site https://github.com/hluk/CopyQ, under Dependencies. Jerry Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Stephan
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:49 PM, Stephan Witt st.w...@gmx.net wrote: Am 04.04.2014 um 07:10 schrieb Stephan Witt st.w...@gmx.net: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. Stephan Oops--shot off a reply to your other note before reading this one. Jerry
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:10 PM, Stephan Wittwrote: > Am 04.04.2014 um 00:13 schrieb Jerry : > >> >> On Apr 3, 2014, at 1:53 PM, Scott Kostyshak wrote: >> >>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >>> wrote: >>> One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. >>> >>> Good idea Liviu. I recommend CopyQ if you want to implement this. It >>> works great on Linux, supposedly works on Windows, and support is >>> experimental on OS X 10.9+. The author of CopyQ is extremely >>> responsive to features and bug reports (he implemented a feature that >>> I'm pretty sure only I use, just for me). This is one of the best >>> clipboard managers out there (although note the focus is on features >>> over lightweight) but it is not well known. >>> >>> To put an image on the clipboard, you can do e.g. >>> copyq write image/svg - < image.svg >>> >>> For more info, see >>> https://github.com/hluk/CopyQ >>> >>> To install, I believe it's a simple >>> cmake . >>> make >>> sudo make install >>> >>> First you must have dependencies. See the INSTALL file for explicit >>> instructions for which packages you need for Ubuntu. Let me know if >>> you want help with anything. >>> >>> Best, >>> >>> Scott >> >> Interesting solution, looks a bit bloaty as noted by Scott. Also, support >> for OS X is a little concerning, at 10.9+. I wonder if there is a concrete >> reason for this limitation or perhaps it's due to the developer's lack of >> access to other versions. Also, the web site states, "To compile and run the >> application you'll need the latest stable version of Qt library (there is >> also experimental support for Qt 5). To compile on OS X, you will need at >> least Qt 5.2." > > Where did you find this? It's not totally correct. It should read: "To > compile with Qt 5 on Mac Qt5.2 is the first feature complete version." It's on the guy's web site https://github.com/hluk/CopyQ, under Dependencies. Jerry > >> >> Dumb question: if Qt 5.2 is required to compile on OS X, is it required to >> run? > > The official package on Mac OS X contains the private Qt frameworks used to > build it. > So, you don't have to install any Qt package to run LyX. The version doesn't > matter. > > Stephan
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 10:49 PM, Stephan Wittwrote: > Am 04.04.2014 um 07:10 schrieb Stephan Witt : > >> Am 04.04.2014 um 00:13 schrieb Jerry : >> >>> >>> On Apr 3, 2014, at 1:53 PM, Scott Kostyshak wrote: >>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic wrote: > One idea would be to use a commandline utility that allows copying > image files to the clipboard, and create a new converter from > PDF(cropped) towards this utility. But so far I couldn't find anything > for Linux, let alone cross-platform. Otherwise, I'm wondering if we > have an LFUN that would provide this functionality. But I'm not sure > how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - < image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott >>> >>> Interesting solution, looks a bit bloaty as noted by Scott. Also, support >>> for OS X is a little concerning, at 10.9+. I wonder if there is a concrete >>> reason for this limitation or perhaps it's due to the developer's lack of >>> access to other versions. Also, the web site states, "To compile and run >>> the application you'll need the latest stable version of Qt library (there >>> is also experimental support for Qt 5). To compile on OS X, you will need >>> at least Qt 5.2." >> >> Where did you find this? It's not totally correct. It should read: "To >> compile with Qt 5 on Mac Qt5.2 is the first feature complete version." >> >>> >>> Dumb question: if Qt 5.2 is required to compile on OS X, is it required to >>> run? >> >> The official package on Mac OS X contains the private Qt frameworks used to >> build it. >> So, you don't have to install any Qt package to run LyX. The version doesn't >> matter. > > Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. > > Stephan Oops--shot off a reply to your other note before reading this one. Jerry
Re: How to get cropped PDF graphic on the clipboard
On Tue, Apr 1, 2014 at 8:27 AM, Jerry lancebo...@qwest.net wrote: Nice to see the ability to export a LyX file as a cropped PDF in version 2.1.0.x. However, the document is actually exported as a file, whereas it would more useful if it were instead or also placed on the clipboard for pasting into another document--that would fully allow LyX to be used as a standalone equation editor for other applications. Good idea. I'm not sure how easy this would be, but do consider opening a feature request on the bug tracker. One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Liviu I use OS X and I notice that LyX is now AppleScriptable. Maybe there's a solution using AppleScript. Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? Jerry
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 6:13 PM, Jerry lancebo...@qwest.net wrote: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? Yes, unless I guess it is compiled statically with the libraries. But you should ask Lukáš. Send him an email or join co...@googlegroups.com and post there. Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:17 PM, Liviu Andronic landronim...@gmail.com wrote: On Tue, Apr 1, 2014 at 8:27 AM, Jerry lancebo...@qwest.net wrote: Nice to see the ability to export a LyX file as a cropped PDF in version 2.1.0.x. However, the document is actually exported as a file, whereas it would more useful if it were instead or also placed on the clipboard for pasting into another document--that would fully allow LyX to be used as a standalone equation editor for other applications. Good idea. I'm not sure how easy this would be, but do consider opening a feature request on the bug tracker. Done. Jerry
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Stephan
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 07:10 schrieb Stephan Witt st.w...@gmx.net: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. Stephan
Re: How to get cropped PDF graphic on the clipboard
On Tue, Apr 1, 2014 at 8:27 AM, Jerry lancebo...@qwest.net wrote: Nice to see the ability to export a LyX file as a cropped PDF in version 2.1.0.x. However, the document is actually exported as a file, whereas it would more useful if it were instead or also placed on the clipboard for pasting into another document--that would fully allow LyX to be used as a standalone equation editor for other applications. Good idea. I'm not sure how easy this would be, but do consider opening a feature request on the bug tracker. One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Liviu I use OS X and I notice that LyX is now AppleScriptable. Maybe there's a solution using AppleScript. Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? Jerry
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 6:13 PM, Jerry lancebo...@qwest.net wrote: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? Yes, unless I guess it is compiled statically with the libraries. But you should ask Lukáš. Send him an email or join co...@googlegroups.com and post there. Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:17 PM, Liviu Andronic landronim...@gmail.com wrote: On Tue, Apr 1, 2014 at 8:27 AM, Jerry lancebo...@qwest.net wrote: Nice to see the ability to export a LyX file as a cropped PDF in version 2.1.0.x. However, the document is actually exported as a file, whereas it would more useful if it were instead or also placed on the clipboard for pasting into another document--that would fully allow LyX to be used as a standalone equation editor for other applications. Good idea. I'm not sure how easy this would be, but do consider opening a feature request on the bug tracker. Done. Jerry
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Stephan
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 07:10 schrieb Stephan Witt st.w...@gmx.net: Am 04.04.2014 um 00:13 schrieb Jerry lancebo...@qwest.net: On Apr 3, 2014, at 1:53 PM, Scott Kostyshak skost...@lyx.org wrote: On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic landronim...@gmail.com wrote: One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2. Where did you find this? It's not totally correct. It should read: To compile with Qt 5 on Mac Qt5.2 is the first feature complete version. Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. Stephan
Re: How to get cropped PDF graphic on the clipboard
On Tue, Apr 1, 2014 at 8:27 AM, Jerrywrote: > Nice to see the ability to export a LyX file as a cropped PDF in version > 2.1.0.x. However, the document is actually exported as a file, whereas it > would more useful if it were instead or also placed on the clipboard for > pasting into another document--that would fully allow LyX to be used as a > standalone equation editor for other applications. > Good idea. I'm not sure how easy this would be, but do consider opening a feature request on the bug tracker. One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. Liviu > I use OS X and I notice that LyX is now AppleScriptable. Maybe there's a > solution using AppleScript. > > Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronicwrote: > One idea would be to use a commandline utility that allows copying > image files to the clipboard, and create a new converter from > PDF(cropped) towards this utility. But so far I couldn't find anything > for Linux, let alone cross-platform. Otherwise, I'm wondering if we > have an LFUN that would provide this functionality. But I'm not sure > how exactly that could work. Good idea Liviu. I recommend CopyQ if you want to implement this. It works great on Linux, supposedly works on Windows, and support is experimental on OS X 10.9+. The author of CopyQ is extremely responsive to features and bug reports (he implemented a feature that I'm pretty sure only I use, just for me). This is one of the best clipboard managers out there (although note the focus is on features over lightweight) but it is not well known. To put an image on the clipboard, you can do e.g. copyq write image/svg - < image.svg For more info, see https://github.com/hluk/CopyQ To install, I believe it's a simple cmake . make sudo make install First you must have dependencies. See the INSTALL file for explicit instructions for which packages you need for Ubuntu. Let me know if you want help with anything. Best, Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:53 PM, Scott Kostyshakwrote: > On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic wrote: > >> One idea would be to use a commandline utility that allows copying >> image files to the clipboard, and create a new converter from >> PDF(cropped) towards this utility. But so far I couldn't find anything >> for Linux, let alone cross-platform. Otherwise, I'm wondering if we >> have an LFUN that would provide this functionality. But I'm not sure >> how exactly that could work. > > Good idea Liviu. I recommend CopyQ if you want to implement this. It > works great on Linux, supposedly works on Windows, and support is > experimental on OS X 10.9+. The author of CopyQ is extremely > responsive to features and bug reports (he implemented a feature that > I'm pretty sure only I use, just for me). This is one of the best > clipboard managers out there (although note the focus is on features > over lightweight) but it is not well known. > > To put an image on the clipboard, you can do e.g. > copyq write image/svg - < image.svg > > For more info, see > https://github.com/hluk/CopyQ > > To install, I believe it's a simple > cmake . > make > sudo make install > > First you must have dependencies. See the INSTALL file for explicit > instructions for which packages you need for Ubuntu. Let me know if > you want help with anything. > > Best, > > Scott Interesting solution, looks a bit bloaty as noted by Scott. Also, support for OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason for this limitation or perhaps it's due to the developer's lack of access to other versions. Also, the web site states, "To compile and run the application you'll need the latest stable version of Qt library (there is also experimental support for Qt 5). To compile on OS X, you will need at least Qt 5.2." Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run? Jerry
Re: How to get cropped PDF graphic on the clipboard
On Thu, Apr 3, 2014 at 6:13 PM, Jerrywrote: > > On Apr 3, 2014, at 1:53 PM, Scott Kostyshak wrote: > >> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >> wrote: >> >>> One idea would be to use a commandline utility that allows copying >>> image files to the clipboard, and create a new converter from >>> PDF(cropped) towards this utility. But so far I couldn't find anything >>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we >>> have an LFUN that would provide this functionality. But I'm not sure >>> how exactly that could work. >> >> Good idea Liviu. I recommend CopyQ if you want to implement this. It >> works great on Linux, supposedly works on Windows, and support is >> experimental on OS X 10.9+. The author of CopyQ is extremely >> responsive to features and bug reports (he implemented a feature that >> I'm pretty sure only I use, just for me). This is one of the best >> clipboard managers out there (although note the focus is on features >> over lightweight) but it is not well known. >> >> To put an image on the clipboard, you can do e.g. >> copyq write image/svg - < image.svg >> >> For more info, see >> https://github.com/hluk/CopyQ >> >> To install, I believe it's a simple >> cmake . >> make >> sudo make install >> >> First you must have dependencies. See the INSTALL file for explicit >> instructions for which packages you need for Ubuntu. Let me know if >> you want help with anything. >> >> Best, >> >> Scott > > Interesting solution, looks a bit bloaty as noted by Scott. Also, support for > OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason > for this limitation or perhaps it's due to the developer's lack of access to > other versions. Also, the web site states, "To compile and run the > application you'll need the latest stable version of Qt library (there is > also experimental support for Qt 5). To compile on OS X, you will need at > least Qt 5.2." > > Dumb question: if Qt 5.2 is required to compile on OS X, is it required to > run? Yes, unless I guess it is compiled statically with the libraries. But you should ask Lukáš. Send him an email or join co...@googlegroups.com and post there. Scott
Re: How to get cropped PDF graphic on the clipboard
On Apr 3, 2014, at 1:17 PM, Liviu Andronicwrote: > On Tue, Apr 1, 2014 at 8:27 AM, Jerry wrote: >> Nice to see the ability to export a LyX file as a cropped PDF in version >> 2.1.0.x. However, the document is actually exported as a file, whereas it >> would more useful if it were instead or also placed on the clipboard for >> pasting into another document--that would fully allow LyX to be used as a >> standalone equation editor for other applications. >> > Good idea. I'm not sure how easy this would be, but do consider > opening a feature request on the bug tracker. Done. Jerry
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 00:13 schrieb Jerry: > > On Apr 3, 2014, at 1:53 PM, Scott Kostyshak wrote: > >> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >> wrote: >> >>> One idea would be to use a commandline utility that allows copying >>> image files to the clipboard, and create a new converter from >>> PDF(cropped) towards this utility. But so far I couldn't find anything >>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we >>> have an LFUN that would provide this functionality. But I'm not sure >>> how exactly that could work. >> >> Good idea Liviu. I recommend CopyQ if you want to implement this. It >> works great on Linux, supposedly works on Windows, and support is >> experimental on OS X 10.9+. The author of CopyQ is extremely >> responsive to features and bug reports (he implemented a feature that >> I'm pretty sure only I use, just for me). This is one of the best >> clipboard managers out there (although note the focus is on features >> over lightweight) but it is not well known. >> >> To put an image on the clipboard, you can do e.g. >> copyq write image/svg - < image.svg >> >> For more info, see >> https://github.com/hluk/CopyQ >> >> To install, I believe it's a simple >> cmake . >> make >> sudo make install >> >> First you must have dependencies. See the INSTALL file for explicit >> instructions for which packages you need for Ubuntu. Let me know if >> you want help with anything. >> >> Best, >> >> Scott > > Interesting solution, looks a bit bloaty as noted by Scott. Also, support for > OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason > for this limitation or perhaps it's due to the developer's lack of access to > other versions. Also, the web site states, "To compile and run the > application you'll need the latest stable version of Qt library (there is > also experimental support for Qt 5). To compile on OS X, you will need at > least Qt 5.2." Where did you find this? It's not totally correct. It should read: "To compile with Qt 5 on Mac Qt5.2 is the first feature complete version." > > Dumb question: if Qt 5.2 is required to compile on OS X, is it required to > run? The official package on Mac OS X contains the private Qt frameworks used to build it. So, you don't have to install any Qt package to run LyX. The version doesn't matter. Stephan
Re: How to get cropped PDF graphic on the clipboard
Am 04.04.2014 um 07:10 schrieb Stephan Witt: > Am 04.04.2014 um 00:13 schrieb Jerry : > >> >> On Apr 3, 2014, at 1:53 PM, Scott Kostyshak wrote: >> >>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic >>> wrote: >>> One idea would be to use a commandline utility that allows copying image files to the clipboard, and create a new converter from PDF(cropped) towards this utility. But so far I couldn't find anything for Linux, let alone cross-platform. Otherwise, I'm wondering if we have an LFUN that would provide this functionality. But I'm not sure how exactly that could work. >>> >>> Good idea Liviu. I recommend CopyQ if you want to implement this. It >>> works great on Linux, supposedly works on Windows, and support is >>> experimental on OS X 10.9+. The author of CopyQ is extremely >>> responsive to features and bug reports (he implemented a feature that >>> I'm pretty sure only I use, just for me). This is one of the best >>> clipboard managers out there (although note the focus is on features >>> over lightweight) but it is not well known. >>> >>> To put an image on the clipboard, you can do e.g. >>> copyq write image/svg - < image.svg >>> >>> For more info, see >>> https://github.com/hluk/CopyQ >>> >>> To install, I believe it's a simple >>> cmake . >>> make >>> sudo make install >>> >>> First you must have dependencies. See the INSTALL file for explicit >>> instructions for which packages you need for Ubuntu. Let me know if >>> you want help with anything. >>> >>> Best, >>> >>> Scott >> >> Interesting solution, looks a bit bloaty as noted by Scott. Also, support >> for OS X is a little concerning, at 10.9+. I wonder if there is a concrete >> reason for this limitation or perhaps it's due to the developer's lack of >> access to other versions. Also, the web site states, "To compile and run the >> application you'll need the latest stable version of Qt library (there is >> also experimental support for Qt 5). To compile on OS X, you will need at >> least Qt 5.2." > > Where did you find this? It's not totally correct. It should read: "To > compile with Qt 5 on Mac Qt5.2 is the first feature complete version." > >> >> Dumb question: if Qt 5.2 is required to compile on OS X, is it required to >> run? > > The official package on Mac OS X contains the private Qt frameworks used to > build it. > So, you don't have to install any Qt package to run LyX. The version doesn't > matter. Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion. Stephan