I'm pretty fluent in the LaTeX typesetting language, and often use it to make quick notes on things I'm thinking about, for future reference. I have this process pretty streamlined by now, but I hit a productivity block whenever I want to insert an image.
Using my current LaTeX editor (TeXShop), as well as every other editor I've used, the procedure for inserting an image is something like this:
- make a folder for images in the same folder as the .tex file, call it
figs
. - copy my image into this folder and give it a filename, say
myImage.png
either type out the following code, or locate another file that contains it and copy-paste and modify from there:
\begin{figure} \centering \includegraphics[width=0.75\textwidth]{myImage.png} \caption{Here is a description of the image.} \label{myImage.fig} \end{figure}
Then re-compile the document and fix any syntax errors etc. that this might have introduced.
This is quite a lot of steps to go through and tends to make me lose my train of thought. However, in principle most of it could be done automatically by the editor. For example, if I wanted to insert an image into this Stack Exchange post, I would do the following things:
- copy the image to the clipboard
- click the "image" icon
- paste the image
- click "insert image"
The Stack Exchange editor will upload the image, generate a filename for me, insert the Markdown code to display it, and position my cursor in the appropriate position to write the image description.
I am looking for a LaTeX editor that can do something similar to this, i.e. one that has specific features for streamlining the workflow of inserting images into LaTeX documents.
My platform is Max OS X, but answers for other platforms will be useful for other visitors. I would consider switching to an online editor (i.e. something like ShareLaTeX) if it had this feature.