Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

[Feature Request] Custom environment/command templates for tab-completion #758

Closed
janniklasrose opened this issue Mar 12, 2021 · 1 comment

Comments

@janniklasrose
Copy link

When I type \begin{f and select the figure environment to Tab-complete, I get

\begin{figure}
    \centering
    \includegraphics{}
    \caption{Caption}
    \label{fig:my_label}
\end{figure}

Depending on user preference or type of project, this is not always the most convenient or even correct default. Using the example of the figure environment, when using memoir the \centerfloat command centers figures even if they are wider than \textwidth. While it is of course possible to patch the figure environment in the preamble or custom class (to also accomplish other things like positioning with [h]), this is definitely something for the more advanced LaTeXer than using the Overleaf web interface.

Other use cases include:

  • Enable automatic \label after \chapter or other section commands.
  • Enable/disable automatic \label inside table/figure.
  • Automatically pre-fill width for \includegraphics[width=\textwidth] command.
  • Provide fancier table template, for example one that uses tabularx.
@das7pad
Copy link
Member

das7pad commented Aug 6, 2021

Hi!

Thank you for taking the time to write up this issue.

We are in the process of migrating to a monorepo at https://github.com/overleaf/overleaf and will mark this repository read-only soon.
You can read more about the monorepo migration at overleaf/overleaf#923.

We are going to close this issue now to avoid any confusion about the inability to comment further.

If you believe this issue still needs addressing, please create a new issue at https://github.com/overleaf/overleaf.

Thanks again!

@das7pad das7pad closed this as completed Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants