5

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.

15

1 Answer 1

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 [email protected], thanks.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .