LaTeX forum ⇒ Texmaker and TeXstudioTexmaker 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

Postby JasonSmit » Wed Aug 22, 2018 3:16 pm

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
  1. \include(figure)
  2. \centering
  3. \includegraphics[width=0.45\textwidth]{}
  4. \caption{}
  5. \label{}
  6. \end{figure}


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

Thank you!

User avatar
Johannes_B
Site Moderator
Posts: 3835
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Aug 23, 2018 7:10 am

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

Postby beningermany » Thu Aug 23, 2018 11:34 am

Hi,
I use Texmaker 5.0.2 (latest version Windows 10.
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

Postby JasonSmit » Mon Sep 10, 2018 12:02 am

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


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 2 guests