area/language-latex

Request changing figure snippet

Closed this issue · 2 comments

qazip commented

The current snippet for a figure is

\begin{figure}
  \includegraphics{/path/to/figure}
  \caption{}
  \label{}
\end{figure}

I find that I pretty much always have to use something like:

\begin{figure}
  \includegraphics[with=1\linewidth]{/path/to/figure}
  \caption{}
  \label{}
\end{figure}

or instead of [with=1\linewidth] something like "[scale=1]".

So my suggestion is to change the figure snippet and add that figure size parameter.

Let me keep the answer on hold until we decide how to cope with adding snippets .

Just for your information: Try typing Tab after specifying the figure name or path, and the cursor will move to between \includegraphics and { (sorry if you already know this).

@qazip Maybe not what you were looking for, but the LaTeX command
\setkeys{Gin}{width=\textwidth}
will set the default scaling for all images. If you are using the same scale all the time like you say, this could be a better solution.