4

For example, when I use the command (in Overleaf/ShareLaTex):

\begin{figure}[H]
    \centering
    \includegraphics{some_graphic}
    \caption{some_caption}
    \label{fig:some_label}
\end{figure}

the \includegraphics{} comes without the [] parameter to change the size of the image, and \begin{figure} without the [H] option by default.

Is it possible to renew the command to make it default? By that I mean that when I type the \begin{figure} command it adds the [H] and [h] as well as [width=\textwidth] in the \includegraphics command, rather than making a global change in the preamble e.g.

Robino
  • 165
Rune
  • 59

1 Answers1

7

(Disclaimer: I'm a support personnel at Overleaf)

At present the code autocompletion options and blocks on Overleaf aren't user-customisable; sorry about this. If you think a particular snippet is useful for LaTeX users in general, you can send your suggestions to welcome@overleaf.com, thanks.

imnothere
  • 14,215
  • What about removing autocompletes? https://tex.stackexchange.com/questions/479277/is-it-possible-to-remove-dynamically-added-autocompletions-from-overleaf – Robino Mar 13 '19 at 12:56
  • 2
    @Robino There's answer there: https://tex.stackexchange.com/a/479291/226 – imnothere Mar 13 '19 at 14:23