Getting rid of unnecessary space between letters and equal sign in caption

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Suppose we have this code



begincenter
begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
node[state,initial, accepting] (q_0) $q_0$;
node[state] [right=of q_0] (q_1) $q_1$;
path[->]
(q_0) edge node $a,b$ (q_1)
(q_1) edge [loop above] node $a,b$ ();
endtikzpicture
captionoffigureThis DFA represents $L_1 = lambda$
endcenter


That produces: enter image description here



How do I get rid of the spacing between between the L_1 = and ?



Is this because of the centering?










share|improve this question

























    up vote
    1
    down vote

    favorite












    Suppose we have this code



    begincenter
    begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
    node[state,initial, accepting] (q_0) $q_0$;
    node[state] [right=of q_0] (q_1) $q_1$;
    path[->]
    (q_0) edge node $a,b$ (q_1)
    (q_1) edge [loop above] node $a,b$ ();
    endtikzpicture
    captionoffigureThis DFA represents $L_1 = lambda$
    endcenter


    That produces: enter image description here



    How do I get rid of the spacing between between the L_1 = and ?



    Is this because of the centering?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Suppose we have this code



      begincenter
      begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
      node[state,initial, accepting] (q_0) $q_0$;
      node[state] [right=of q_0] (q_1) $q_1$;
      path[->]
      (q_0) edge node $a,b$ (q_1)
      (q_1) edge [loop above] node $a,b$ ();
      endtikzpicture
      captionoffigureThis DFA represents $L_1 = lambda$
      endcenter


      That produces: enter image description here



      How do I get rid of the spacing between between the L_1 = and ?



      Is this because of the centering?










      share|improve this question













      Suppose we have this code



      begincenter
      begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
      node[state,initial, accepting] (q_0) $q_0$;
      node[state] [right=of q_0] (q_1) $q_1$;
      path[->]
      (q_0) edge node $a,b$ (q_1)
      (q_1) edge [loop above] node $a,b$ ();
      endtikzpicture
      captionoffigureThis DFA represents $L_1 = lambda$
      endcenter


      That produces: enter image description here



      How do I get rid of the spacing between between the L_1 = and ?



      Is this because of the centering?







      tikz-pgf captions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      bigfocalchord

      1254




      1254




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          This is not an answer but an extended comment that shows the importance of submitting a complete MWE. Without an MWE, one cannot reproduce your issue. If I compile



          documentclassarticle
          usepackagecaption
          usepackagetikz
          usetikzlibraryautomata,positioning
          begindocument
          begincenter
          begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
          node[state,initial, accepting] (q_0) $q_0$;
          node[state] [right=of q_0] (q_1) $q_1$;
          path[->]
          (q_0) edge node $a,b$ (q_1)
          (q_1) edge [loop above] node $a,b$ ();
          endtikzpicture
          captionoffigureThis DFA represents $L_1 = lambda$
          endcenter
          enddocument


          I get



          enter image description here



          That means that the weird behavior you are reporting does not come from the code piece that you are showing, but from something else. In many situations, when you try to write an MWE, you actually find the source of the problem yourself, and thus learn something. So




          PLEASE SUMBIT A COMPLETE MWE!




          The above code qualifies as an MWE: it starts with documentclass, ends with enddocument and can be compiled. It is also rather minimal in the sense that (as far as I can tell) no unnecessary packages are loaded.






          share|improve this answer


















          • 2




            Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
            – bigfocalchord
            1 hour ago










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454709%2fgetting-rid-of-unnecessary-space-between-letters-and-equal-sign-in-caption%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          This is not an answer but an extended comment that shows the importance of submitting a complete MWE. Without an MWE, one cannot reproduce your issue. If I compile



          documentclassarticle
          usepackagecaption
          usepackagetikz
          usetikzlibraryautomata,positioning
          begindocument
          begincenter
          begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
          node[state,initial, accepting] (q_0) $q_0$;
          node[state] [right=of q_0] (q_1) $q_1$;
          path[->]
          (q_0) edge node $a,b$ (q_1)
          (q_1) edge [loop above] node $a,b$ ();
          endtikzpicture
          captionoffigureThis DFA represents $L_1 = lambda$
          endcenter
          enddocument


          I get



          enter image description here



          That means that the weird behavior you are reporting does not come from the code piece that you are showing, but from something else. In many situations, when you try to write an MWE, you actually find the source of the problem yourself, and thus learn something. So




          PLEASE SUMBIT A COMPLETE MWE!




          The above code qualifies as an MWE: it starts with documentclass, ends with enddocument and can be compiled. It is also rather minimal in the sense that (as far as I can tell) no unnecessary packages are loaded.






          share|improve this answer


















          • 2




            Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
            – bigfocalchord
            1 hour ago














          up vote
          3
          down vote



          accepted










          This is not an answer but an extended comment that shows the importance of submitting a complete MWE. Without an MWE, one cannot reproduce your issue. If I compile



          documentclassarticle
          usepackagecaption
          usepackagetikz
          usetikzlibraryautomata,positioning
          begindocument
          begincenter
          begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
          node[state,initial, accepting] (q_0) $q_0$;
          node[state] [right=of q_0] (q_1) $q_1$;
          path[->]
          (q_0) edge node $a,b$ (q_1)
          (q_1) edge [loop above] node $a,b$ ();
          endtikzpicture
          captionoffigureThis DFA represents $L_1 = lambda$
          endcenter
          enddocument


          I get



          enter image description here



          That means that the weird behavior you are reporting does not come from the code piece that you are showing, but from something else. In many situations, when you try to write an MWE, you actually find the source of the problem yourself, and thus learn something. So




          PLEASE SUMBIT A COMPLETE MWE!




          The above code qualifies as an MWE: it starts with documentclass, ends with enddocument and can be compiled. It is also rather minimal in the sense that (as far as I can tell) no unnecessary packages are loaded.






          share|improve this answer


















          • 2




            Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
            – bigfocalchord
            1 hour ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          This is not an answer but an extended comment that shows the importance of submitting a complete MWE. Without an MWE, one cannot reproduce your issue. If I compile



          documentclassarticle
          usepackagecaption
          usepackagetikz
          usetikzlibraryautomata,positioning
          begindocument
          begincenter
          begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
          node[state,initial, accepting] (q_0) $q_0$;
          node[state] [right=of q_0] (q_1) $q_1$;
          path[->]
          (q_0) edge node $a,b$ (q_1)
          (q_1) edge [loop above] node $a,b$ ();
          endtikzpicture
          captionoffigureThis DFA represents $L_1 = lambda$
          endcenter
          enddocument


          I get



          enter image description here



          That means that the weird behavior you are reporting does not come from the code piece that you are showing, but from something else. In many situations, when you try to write an MWE, you actually find the source of the problem yourself, and thus learn something. So




          PLEASE SUMBIT A COMPLETE MWE!




          The above code qualifies as an MWE: it starts with documentclass, ends with enddocument and can be compiled. It is also rather minimal in the sense that (as far as I can tell) no unnecessary packages are loaded.






          share|improve this answer














          This is not an answer but an extended comment that shows the importance of submitting a complete MWE. Without an MWE, one cannot reproduce your issue. If I compile



          documentclassarticle
          usepackagecaption
          usepackagetikz
          usetikzlibraryautomata,positioning
          begindocument
          begincenter
          begintikzpicture[shorten >=1pt,node distance=2cm,on grid,auto]
          node[state,initial, accepting] (q_0) $q_0$;
          node[state] [right=of q_0] (q_1) $q_1$;
          path[->]
          (q_0) edge node $a,b$ (q_1)
          (q_1) edge [loop above] node $a,b$ ();
          endtikzpicture
          captionoffigureThis DFA represents $L_1 = lambda$
          endcenter
          enddocument


          I get



          enter image description here



          That means that the weird behavior you are reporting does not come from the code piece that you are showing, but from something else. In many situations, when you try to write an MWE, you actually find the source of the problem yourself, and thus learn something. So




          PLEASE SUMBIT A COMPLETE MWE!




          The above code qualifies as an MWE: it starts with documentclass, ends with enddocument and can be compiled. It is also rather minimal in the sense that (as far as I can tell) no unnecessary packages are loaded.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago

























          answered 1 hour ago









          marmot

          64.4k470139




          64.4k470139







          • 2




            Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
            – bigfocalchord
            1 hour ago












          • 2




            Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
            – bigfocalchord
            1 hour ago







          2




          2




          Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
          – bigfocalchord
          1 hour ago




          Hey marmot, I apologise for this. I found the mistake. My preamble is really long so I didn't think it was because of that but it was. This package "usepackage[newcommands]ragged2e" made the spaces. Thanks for the help and next time I will submit a complete MWE.
          – bigfocalchord
          1 hour ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454709%2fgetting-rid-of-unnecessary-space-between-letters-and-equal-sign-in-caption%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery