## LaTeX forum ⇒ Texmaker and TeXstudio ⇒ Texmaker auto complete settings

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
JasonSmit
Posts: 2
Joined: Wed Aug 22, 2018 3:03 pm

### Texmaker auto complete settings

Hello,

I am sorry if a similar question has already been asked, but I'm not exactly sure what to search for to find what I am trying to accomplish.

When you type in texmaker, say for instance, \begin(x) it automatically fills in \end(x), which is obviously very useful, but I would like to know if it is possible to extend this autocomplete functionality.

I would like to edit the auto complete for \include(figure) to automatically add other sections which I always add as follows
\include(figure)\centering\includegraphics[width=0.45\textwidth]{}\caption{}\label{}\end{figure}

is this possible and could someone point me to a manual or even the setting file?

Thank you!

Tags:

Johannes_B
Site Moderator
Posts: 3978
Joined: Thu Nov 01, 2012 4:08 pm
Welcome,

i haven't used texmaker in a long time. As far as i can remember, you can define a macro for that. Somewhere in the menu.

Not much of help, but a start.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

beningermany
Posts: 10
Joined: Tue Aug 21, 2018 5:55 pm
Hi,
When I write down the code, for instance, \begin{document} , then \end{document} will be automatically filled in. Which version of Texmaker do you use? Good luck.

JasonSmit
Posts: 2
Joined: Wed Aug 22, 2018 3:03 pm
After some more searching I actually did find what I was looking for on the forum at
https://latex.org/forum/viewtopic.php?t=2545. Thanks Johannes_B for the macros idea. It pointed me in the right direction