LaTeX closing $ signs makes cursor jump












4















I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?










share|improve this question







New contributor




user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    4















    I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?










    share|improve this question







    New contributor




    user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      4












      4








      4








      I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?










      share|improve this question







      New contributor




      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?







      latex






      share|improve this question







      New contributor




      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 6 at 18:41









      user1766555user1766555

      1233




      1233




      New contributor




      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user1766555 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          5














          I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar among other things the following happens if you input the closing $ sign:




          Show matching dollar sign if this dollar sign ends
          the TeX math mode and ‘blink-matching-paren’ is non-nil.




          What you can do is to set blink-matching-paren to nil.



          EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode to still highlight the opening parenthesis.






          share|improve this answer


























          • Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

            – user1766555
            Apr 6 at 20:03






          • 1





            For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

            – andrej
            Apr 6 at 20:09











          • I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

            – user1766555
            Apr 6 at 20:11








          • 1





            You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

            – andrej
            Apr 6 at 20:21












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "583"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          user1766555 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48793%2flatex-closing-signs-makes-cursor-jump%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar among other things the following happens if you input the closing $ sign:




          Show matching dollar sign if this dollar sign ends
          the TeX math mode and ‘blink-matching-paren’ is non-nil.




          What you can do is to set blink-matching-paren to nil.



          EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode to still highlight the opening parenthesis.






          share|improve this answer


























          • Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

            – user1766555
            Apr 6 at 20:03






          • 1





            For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

            – andrej
            Apr 6 at 20:09











          • I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

            – user1766555
            Apr 6 at 20:11








          • 1





            You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

            – andrej
            Apr 6 at 20:21
















          5














          I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar among other things the following happens if you input the closing $ sign:




          Show matching dollar sign if this dollar sign ends
          the TeX math mode and ‘blink-matching-paren’ is non-nil.




          What you can do is to set blink-matching-paren to nil.



          EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode to still highlight the opening parenthesis.






          share|improve this answer


























          • Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

            – user1766555
            Apr 6 at 20:03






          • 1





            For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

            – andrej
            Apr 6 at 20:09











          • I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

            – user1766555
            Apr 6 at 20:11








          • 1





            You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

            – andrej
            Apr 6 at 20:21














          5












          5








          5







          I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar among other things the following happens if you input the closing $ sign:




          Show matching dollar sign if this dollar sign ends
          the TeX math mode and ‘blink-matching-paren’ is non-nil.




          What you can do is to set blink-matching-paren to nil.



          EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode to still highlight the opening parenthesis.






          share|improve this answer















          I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar among other things the following happens if you input the closing $ sign:




          Show matching dollar sign if this dollar sign ends
          the TeX math mode and ‘blink-matching-paren’ is non-nil.




          What you can do is to set blink-matching-paren to nil.



          EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode to still highlight the opening parenthesis.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 6 at 20:32

























          answered Apr 6 at 19:54









          andrejandrej

          730412




          730412













          • Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

            – user1766555
            Apr 6 at 20:03






          • 1





            For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

            – andrej
            Apr 6 at 20:09











          • I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

            – user1766555
            Apr 6 at 20:11








          • 1





            You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

            – andrej
            Apr 6 at 20:21



















          • Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

            – user1766555
            Apr 6 at 20:03






          • 1





            For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

            – andrej
            Apr 6 at 20:09











          • I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

            – user1766555
            Apr 6 at 20:11








          • 1





            You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

            – andrej
            Apr 6 at 20:21

















          Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

          – user1766555
          Apr 6 at 20:03





          Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.

          – user1766555
          Apr 6 at 20:03




          1




          1





          For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

          – andrej
          Apr 6 at 20:09





          For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if blink-matching-paren is set to t. But if you don't like this behaviour anyway then this should be fine.

          – andrej
          Apr 6 at 20:09













          I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

          – user1766555
          Apr 6 at 20:11







          I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode? blink-matching-paren is set to t

          – user1766555
          Apr 6 at 20:11






          1




          1





          You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

          – andrej
          Apr 6 at 20:21





          You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the show-paren-mode activated. Without that and blink-matching-paren set to nil there is no highlighting on my system.

          – andrej
          Apr 6 at 20:21










          user1766555 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          user1766555 is a new contributor. Be nice, and check out our Code of Conduct.













          user1766555 is a new contributor. Be nice, and check out our Code of Conduct.












          user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Emacs Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48793%2flatex-closing-signs-makes-cursor-jump%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b