Using the Insert figure button

You can use the following steps to insert a figure into an Overleaf LaTeX document.

  1. Choose which editor you want to use: Visual Editor or Code Editor.

  2. Select the Insert Figure button () to display a list of options for inserting figures:

    List of options for inserting a figure

Upload from computer

This option creates a figure using a graphics file uploaded from your device.

The upload from computer modal displayed when you upload a file

To use this option:

  1. Upload a graphic using one of these methods:

    • drag and drop a graphics file onto the modal window (within the area shown).

    • paste an image into the modal window (within the area shown).

    • manually select a file located on your device

  2. Give the graphics file a name.

  3. (Optional) Choose a project folder in which to save the file.

  4. Decide whether to use a figure caption.

  5. Decide whether to include a label (used for referencing the figure).

  6. Set the image width (as a fraction of \linewidth).

  7. Select Insert figure to upload the graphic and automatically generate a LaTeX figure environment based on your choices.

From project files

This option creates a figure using one of the graphics files previously uploaded to your current project.

The insert from project files modal used to select a project file for creating a figure

To use this option:

  1. Choose a graphic contained in your project.

  2. Decide whether to use a figure caption.

  3. Decide whether to include a label (used for referencing the figure).

  4. Set the image width (as a fraction of \linewidth).

  5. Select Insert figure to automatically generate a LaTeX figure environment based on your choices.

From another project

This option creates lets you create figures using graphics files contained in another one of your Overleaf projects. As shown in the animated screenshot below, you select a project then choose a file previously uploaded to that project, or a file output (generated) by that project—for example, a PDF graphic generated by externalizing TikZ graphics. See the section Select from output files for a video clip showing how to use an output file created by another project.

An animated GIF showing how to choose file generated by another project

To use this option:

  1. Choose a project containing graphics files you’d like to use in your current project.

  2. Select one of that project’s graphics:

    • an image file uploaded to that project, or

    • an output file generated by that project.

  3. Give the graphics file a name.

  4. (Optional) Choose a project folder in which to save the file.

  5. Decide whether to use a figure caption.

  6. Decide whether to include a label (used for referencing the figure).

  7. Set the image width (as a fraction of \linewidth).

  8. Select Insert figure to automatically generate a LaTeX figure environment based on your choices.

Select from output files

Instead of choosing a file that you have uploaded to another project, you can choose to include a file that is generated by another project when that other project is compiled.

This is an advanced option that allows you to offload some of the compilation work required to generate some image types.

The video clip below walks you through the process of incorporating a figure into your current project, utilizing a file generated from another project that creates externalized TikZ graphics.

From URL

This option lets you create figures using graphics added (downloaded) to your project via a URL.

An image showing the modal window for downloading a file via a URL

To use this option:

  1. Paste a direct download link (URL) into the Image URL field.

  2. Give the graphics file a name.

  3. (Optional) Choose a project folder in which to save it.

  4. Decide whether to include a figure caption.

  5. Decide whether to include a label (used for referencing the figure).

  6. Set the image width (as a fraction of \linewidth).

  7. Select Insert figure to automatically generate a LaTeX figure environment based on your choices.

The following video clip demonstrates using a Google Drive download URL. It also shows how to change the figure size and give it a caption.

Last updated

Was this helpful?