Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible somehow to drag and drop image files from a browser or files directly to LyX when creating a latex document? If not, is there any other editor for OS X that can do this? I find it really slow to add images to a latex document, or if you can tell me an easy approach. Thanks

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

No. It is not possible to drag and drop image files directly into LyX. If you keep all of the graphics that you are going to be using in the document in a single subfolder, it is fairly quick to go through the insert graphics dialog since you don't need to search through multiple directories.

I do not use emacs, but apparently somebody has hacked together a way to automate the process of inserting images into LaTeX documents. This is discussed here: http://lists.gnu.org/archive/html/auctex/2010-12/msg00010.html.

share|improve this answer
    
But note that it seems to be easy to add: bugzilla.lyx.org/trac/ticket/4017 –  Charles Stewart Jun 5 '12 at 18:49
add comment

I think the easiest way to add graphics is to paste them. For example, in a browser right-click and go to copy image. Then go to LyX and go to Edit > Paste Special > Paste as JPEG or Paste as PNG. This also works for me from copying from open office. This works for me using Firefox and Ubuntu with the newest (trunk) LyX version.

share|improve this answer
add comment

Not by drag & drop, but it is possible with copy & paste. Just put the image in the clipboard and select Edit->Paste Special. LyX will then immediately open a "Save as" dialog, where you can specify where and under which name the image will be saved. However, you can also just press Enter to choose the selected name and path.

Specifically for MacOS there is also the option to Paste as LinkBack PDF, which is enabled if the source application of the image supports the LinkBack technology. Basically, this is what OLE once was for Windows: You can later right-click the pasted image to edit it in the original application. LinkBack is supported by many OS X applications, among them EazyDraw, OmniGraffle, and LaTeXIt.

share|improve this answer
    
I followed your first paragraph, and it works, for the first figure. But when I want to do the same for a second new figure, it does not work, does the same happen to you? –  flow Jun 8 '12 at 16:06
    
@flow: It works fine here on my side (LyX 2.0.2 on OS X). Make sure that the filenames you give the images are different, though, here it always suggest pasted1. –  Daniel Jun 8 '12 at 19:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.