2

Is there a way to stop Texmaker from auto-putting the completion tag of every command when I use autocomplete? Like \begin{document} and I press enter in the auto-complete and it includes the \end{document}. Is there a way to switch this off without switching off auto-complete?

Torbjørn T.
  • 206,688

1 Answers1

3

I think that is not possible without touching the source code. You can customize completions in in User > Customize Completion as explained in Customize auto-completion in Texmaker. However even any custom completion with \begin{...} is ended automatically with \end{...} and very unfortunately you cannot modify the items provided by TeXmaker.

I figured that a modification of the file settings could do to the trick, but I failed completely in this sense. As explained in Backup of user-defined entries of autocompletion in Texmaker? you can save a setting file, modify the fields of Editor\UserCompletion or Shortcuts\data where the are defined shorcuts as \\begin{quote}\n/\n\\end{quote}/0/1 and restore it, but this has no effect on the default autocompletion, as well as modifying directly the hidden configuration file ~\.config/xm1/texmaker.ini ... so this a dead end for me. :-(

Fran
  • 80,769
  • So there's no way to do this, then? – sprajagopal Jun 01 '13 at 18:28
  • As far as I know, no, but probably will be better answers. – Fran Jun 01 '13 at 19:25
  • it's been a requested feature to auto-add the \end-tag... i think it's indeed no longer possible without altering the source code – long tom Jun 01 '13 at 19:25
  • @longtom , you mean it was requested as a feature? Older editions don't have this then, right? – sprajagopal Jun 03 '13 at 09:02
  • @SPRajagopal, as i mentioned before, my memory says something like: "long, long, loong time ago, texmaker didn't auto-add the \end-tag"... I also found evidence in the update log at the texmaker site... but it seems to have been that way in versions prior to 2.0... I don't think it's worth going so far back... – long tom Jun 04 '13 at 08:33