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?

  • 1
    for what it's worth: former versions of texmaker used to put only the \begin-tags with auto-complete (or the \end-tag, where applicable) – long tom May 31 '13 at 18:30
  • @longtom yeah, that totally makes sense. It should've been like that. Could you tell me which version? – sprajagopal May 31 '13 at 20:38
  • i think that was somewhere around version 2.0... (that's way back) – long tom May 31 '13 at 21:18

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. :-(

  • So there's no way to do this, then? – sprajagopal Jun 1 '13 at 18:28
  • As far as I know, no, but probably will be better answers. – Fran Jun 1 '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 1 '13 at 19:25
  • @longtom , you mean it was requested as a feature? Older editions don't have this then, right? – sprajagopal Jun 3 '13 at 9: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 4 '13 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.