How to remove inconsistent spacing between math repeating math characters?LaTeX Theory - How Symbols are...

How to use Mathematica to do a complex integrate with poles in real axis?

Why am I able to open Wireshark in macOS X without root privileges?

How to play electric guitar and bass as a duet

ST_Buffer in PostGIS produces different results for the same set of lines

Crontab: Ubuntu running script (noob)

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

When can a QA tester start his job?

Why did the villain in the first Men in Black movie care about Earth's Cockroaches?

Play Zip, Zap, Zop

When do I have to declare that I want to twin my spell?

Eww, those bytes are gross

How can I play a serial killer in a party of good PCs?

Airplane generations - how does it work?

How should I handle players who ignore the session zero agreement?

How do you catch Smeargle in Pokemon Go?

How can I remove (non-trivial) duplicates from a VCF file?

How would an AI self awareness kill switch work?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Why are the books in the Game of Thrones citadel library shelved spine inwards?

What is the difference between rolling more dice versus fewer dice?

Is there any risk in sharing info about technologies and products we use with a supplier?

Move fast ...... Or you will lose

Workflow Comment popup does not show up

What sets the resolution of an analog resistive sensor?



How to remove inconsistent spacing between math repeating math characters?


LaTeX Theory - How Symbols are Modeled Under the Hoodperp and parallel with equal heightHow does one stop automatic line spacing increases when typesetting tall math symbols?Can I easily tune the mathdesign fonts?Set a minimum space above and below displayed mathAutomate correct spacing after ! in math modeMultiple alignment in math mode - a math equivalent to `multicolumn`?Spacing and size of my matrix displaysCan't “detexify” this symbol for the exponential functionCreating custom mathematical symbolsHow to create a figure with database and web server symbols in latex?













2















I am creating a graph in Latex with auto-generated lines like



$|circbulletbulletcircbulletbulletrangle$


which generate the image



enter image description here



I would like the spacing of these symbols to be consistent and also small.



Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?










share|improve this question







New contributor




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





















  • Welcome to TeX.SE! Can you please make your code snippet compilable?

    – Kurt
    5 hours ago
















2















I am creating a graph in Latex with auto-generated lines like



$|circbulletbulletcircbulletbulletrangle$


which generate the image



enter image description here



I would like the spacing of these symbols to be consistent and also small.



Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?










share|improve this question







New contributor




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





















  • Welcome to TeX.SE! Can you please make your code snippet compilable?

    – Kurt
    5 hours ago














2












2








2








I am creating a graph in Latex with auto-generated lines like



$|circbulletbulletcircbulletbulletrangle$


which generate the image



enter image description here



I would like the spacing of these symbols to be consistent and also small.



Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?










share|improve this question







New contributor




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












I am creating a graph in Latex with auto-generated lines like



$|circbulletbulletcircbulletbulletrangle$


which generate the image



enter image description here



I would like the spacing of these symbols to be consistent and also small.



Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?







math-mode symbols






share|improve this question







New contributor




James 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




James 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




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









asked 5 hours ago









JamesJames

1133




1133




New contributor




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





New contributor





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






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













  • Welcome to TeX.SE! Can you please make your code snippet compilable?

    – Kurt
    5 hours ago



















  • Welcome to TeX.SE! Can you please make your code snippet compilable?

    – Kurt
    5 hours ago

















Welcome to TeX.SE! Can you please make your code snippet compilable?

– Kurt
5 hours ago





Welcome to TeX.SE! Can you please make your code snippet compilable?

– Kurt
5 hours ago










2 Answers
2






active

oldest

votes


















2














Embrace circs and bullets, so that they don't take on special math spacings.



I believe both circ and bullet are declared as mathbin, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).



documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}


enter image description here






share|improve this answer


























  • This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

    – James
    5 hours ago











  • @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

    – Steven B. Segletes
    5 hours ago











  • You were right, it was just because the font was set to some default which gave unnecessary spacing!

    – James
    5 hours ago



















2














You have the sequence of math atoms




Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close




but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with




Ord Bin Ord Bin Ord Bin Ord Close




and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:



enter image description here



On the other hand, a different input such as



$lvertcircbulletbulletcircbulletbulletrangle$


would produce the sequence of atoms




Open Bin Bin Bin Bin Bin Bin Close




that would be transformed into




Open Ord Bin Ord Bin Ord Ord Close




producing a picture similar to yours



enter image description here



Neither input is correct.



Define your own symbols, because you're not using circ and bullet in their intended sense of binary operation symbols.



documentclass{article}
usepackage{amsmath}

newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}

begin{document}

$lvert 1 1 1 1 rangle$

end{document}


enter image description here



The mathord tokens are not actually required, but they show more clearly what we're doing.



See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.






share|improve this answer























    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',
    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
    });


    }
    });






    James 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%2ftex.stackexchange.com%2fquestions%2f476919%2fhow-to-remove-inconsistent-spacing-between-math-repeating-math-characters%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Embrace circs and bullets, so that they don't take on special math spacings.



    I believe both circ and bullet are declared as mathbin, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).



    documentclass{article}
    begin{document}
    $|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
    end{document}


    enter image description here






    share|improve this answer


























    • This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

      – James
      5 hours ago











    • @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

      – Steven B. Segletes
      5 hours ago











    • You were right, it was just because the font was set to some default which gave unnecessary spacing!

      – James
      5 hours ago
















    2














    Embrace circs and bullets, so that they don't take on special math spacings.



    I believe both circ and bullet are declared as mathbin, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).



    documentclass{article}
    begin{document}
    $|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
    end{document}


    enter image description here






    share|improve this answer


























    • This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

      – James
      5 hours ago











    • @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

      – Steven B. Segletes
      5 hours ago











    • You were right, it was just because the font was set to some default which gave unnecessary spacing!

      – James
      5 hours ago














    2












    2








    2







    Embrace circs and bullets, so that they don't take on special math spacings.



    I believe both circ and bullet are declared as mathbin, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).



    documentclass{article}
    begin{document}
    $|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
    end{document}


    enter image description here






    share|improve this answer















    Embrace circs and bullets, so that they don't take on special math spacings.



    I believe both circ and bullet are declared as mathbin, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).



    documentclass{article}
    begin{document}
    $|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
    end{document}


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 5 hours ago

























    answered 5 hours ago









    Steven B. SegletesSteven B. Segletes

    157k9202411




    157k9202411













    • This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

      – James
      5 hours ago











    • @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

      – Steven B. Segletes
      5 hours ago











    • You were right, it was just because the font was set to some default which gave unnecessary spacing!

      – James
      5 hours ago



















    • This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

      – James
      5 hours ago











    • @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

      – Steven B. Segletes
      5 hours ago











    • You were right, it was just because the font was set to some default which gave unnecessary spacing!

      – James
      5 hours ago

















    This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

    – James
    5 hours ago





    This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?

    – James
    5 hours ago













    @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

    – Steven B. Segletes
    5 hours ago





    @James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.

    – Steven B. Segletes
    5 hours ago













    You were right, it was just because the font was set to some default which gave unnecessary spacing!

    – James
    5 hours ago





    You were right, it was just because the font was set to some default which gave unnecessary spacing!

    – James
    5 hours ago











    2














    You have the sequence of math atoms




    Ord Bin1 Bin2 Bin3 Bin4
    Bin5 Bin6 Close




    but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with




    Ord Bin Ord Bin Ord Bin Ord Close




    and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:



    enter image description here



    On the other hand, a different input such as



    $lvertcircbulletbulletcircbulletbulletrangle$


    would produce the sequence of atoms




    Open Bin Bin Bin Bin Bin Bin Close




    that would be transformed into




    Open Ord Bin Ord Bin Ord Ord Close




    producing a picture similar to yours



    enter image description here



    Neither input is correct.



    Define your own symbols, because you're not using circ and bullet in their intended sense of binary operation symbols.



    documentclass{article}
    usepackage{amsmath}

    newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
    newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}

    begin{document}

    $lvert 1 1 1 1 rangle$

    end{document}


    enter image description here



    The mathord tokens are not actually required, but they show more clearly what we're doing.



    See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.






    share|improve this answer




























      2














      You have the sequence of math atoms




      Ord Bin1 Bin2 Bin3 Bin4
      Bin5 Bin6 Close




      but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with




      Ord Bin Ord Bin Ord Bin Ord Close




      and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:



      enter image description here



      On the other hand, a different input such as



      $lvertcircbulletbulletcircbulletbulletrangle$


      would produce the sequence of atoms




      Open Bin Bin Bin Bin Bin Bin Close




      that would be transformed into




      Open Ord Bin Ord Bin Ord Ord Close




      producing a picture similar to yours



      enter image description here



      Neither input is correct.



      Define your own symbols, because you're not using circ and bullet in their intended sense of binary operation symbols.



      documentclass{article}
      usepackage{amsmath}

      newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
      newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}

      begin{document}

      $lvert 1 1 1 1 rangle$

      end{document}


      enter image description here



      The mathord tokens are not actually required, but they show more clearly what we're doing.



      See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.






      share|improve this answer


























        2












        2








        2







        You have the sequence of math atoms




        Ord Bin1 Bin2 Bin3 Bin4
        Bin5 Bin6 Close




        but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with




        Ord Bin Ord Bin Ord Bin Ord Close




        and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:



        enter image description here



        On the other hand, a different input such as



        $lvertcircbulletbulletcircbulletbulletrangle$


        would produce the sequence of atoms




        Open Bin Bin Bin Bin Bin Bin Close




        that would be transformed into




        Open Ord Bin Ord Bin Ord Ord Close




        producing a picture similar to yours



        enter image description here



        Neither input is correct.



        Define your own symbols, because you're not using circ and bullet in their intended sense of binary operation symbols.



        documentclass{article}
        usepackage{amsmath}

        newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
        newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}

        begin{document}

        $lvert 1 1 1 1 rangle$

        end{document}


        enter image description here



        The mathord tokens are not actually required, but they show more clearly what we're doing.



        See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.






        share|improve this answer













        You have the sequence of math atoms




        Ord Bin1 Bin2 Bin3 Bin4
        Bin5 Bin6 Close




        but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with




        Ord Bin Ord Bin Ord Bin Ord Close




        and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:



        enter image description here



        On the other hand, a different input such as



        $lvertcircbulletbulletcircbulletbulletrangle$


        would produce the sequence of atoms




        Open Bin Bin Bin Bin Bin Bin Close




        that would be transformed into




        Open Ord Bin Ord Bin Ord Ord Close




        producing a picture similar to yours



        enter image description here



        Neither input is correct.



        Define your own symbols, because you're not using circ and bullet in their intended sense of binary operation symbols.



        documentclass{article}
        usepackage{amsmath}

        newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
        newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}

        begin{document}

        $lvert 1 1 1 1 rangle$

        end{document}


        enter image description here



        The mathord tokens are not actually required, but they show more clearly what we're doing.



        See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        egregegreg

        723k8719163219




        723k8719163219






















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










            draft saved

            draft discarded


















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













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












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
















            Thanks for contributing an answer to TeX - LaTeX 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%2ftex.stackexchange.com%2fquestions%2f476919%2fhow-to-remove-inconsistent-spacing-between-math-repeating-math-characters%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

            Benedict Cumberbatch Contingut Inicis Debut professional Premis Filmografia bàsica Premis i...

            Monticle de plataforma Contingut Est de Nord Amèrica Interpretacions Altres cultures Vegeu...

            Escacs Janus Enllaços externs Menú de navegacióEscacs JanusJanusschachBrainKing.comChessV