Reduce space between colon inside the math












6















I am working on math titles, here I want to reduce the space between colon ":" default it produces before and after space. Could you please suggest me how to rectify this?



MWE:



documentclass{book}

usepackage{amsmath}

begin{document}

$$
DE:AB = 18:6 quad AB:12 = CE:15
$$

end{document}









share|improve this question




















  • 2





    Please have a look at Why is [ … ] preferable to $$?

    – Henri Menke
    May 22 '18 at 5:42











  • If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

    – moewe
    May 22 '18 at 7:09













  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

    – samcarter
    Oct 12 '18 at 13:15
















6















I am working on math titles, here I want to reduce the space between colon ":" default it produces before and after space. Could you please suggest me how to rectify this?



MWE:



documentclass{book}

usepackage{amsmath}

begin{document}

$$
DE:AB = 18:6 quad AB:12 = CE:15
$$

end{document}









share|improve this question




















  • 2





    Please have a look at Why is [ … ] preferable to $$?

    – Henri Menke
    May 22 '18 at 5:42











  • If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

    – moewe
    May 22 '18 at 7:09













  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

    – samcarter
    Oct 12 '18 at 13:15














6












6








6


1






I am working on math titles, here I want to reduce the space between colon ":" default it produces before and after space. Could you please suggest me how to rectify this?



MWE:



documentclass{book}

usepackage{amsmath}

begin{document}

$$
DE:AB = 18:6 quad AB:12 = CE:15
$$

end{document}









share|improve this question
















I am working on math titles, here I want to reduce the space between colon ":" default it produces before and after space. Could you please suggest me how to rectify this?



MWE:



documentclass{book}

usepackage{amsmath}

begin{document}

$$
DE:AB = 18:6 quad AB:12 = CE:15
$$

end{document}






math-mode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 22 '18 at 5:14









CarLaTeX

31.1k449129




31.1k449129










asked May 22 '18 at 5:12









Rajesh KumarRajesh Kumar

1368




1368








  • 2





    Please have a look at Why is [ … ] preferable to $$?

    – Henri Menke
    May 22 '18 at 5:42











  • If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

    – moewe
    May 22 '18 at 7:09













  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

    – samcarter
    Oct 12 '18 at 13:15














  • 2





    Please have a look at Why is [ … ] preferable to $$?

    – Henri Menke
    May 22 '18 at 5:42











  • If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

    – moewe
    May 22 '18 at 7:09













  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

    – samcarter
    Oct 12 '18 at 13:15








2




2





Please have a look at Why is [ … ] preferable to $$?

– Henri Menke
May 22 '18 at 5:42





Please have a look at Why is [ … ] preferable to $$?

– Henri Menke
May 22 '18 at 5:42













If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

– moewe
May 22 '18 at 7:09







If AB etc are not products of two variables but a single quantity referred to by two letters, you may want to consider mathit{AB}. See also tex.stackexchange.com/q/6087/35864, tex.stackexchange.com/q/129400/35864

– moewe
May 22 '18 at 7:09















Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

– samcarter
Oct 12 '18 at 13:15





Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers.

– samcarter
Oct 12 '18 at 13:15










5 Answers
5






active

oldest

votes


















7














Just put the colons in groups.



documentclass{book}

usepackage{amsmath}

begin{document}

[
DE{:}AB = 18{:}6 quad AB{:}12 = CE{:}15
]

end{document}





share|improve this answer































    10














    You're using the colon as an operation symbol, which is seldom done in professional mathematics, where the colon usually denotes a relation symbol. However, the colon is commonly found in elementary mathematics.



    Here is a visual comparison:



    documentclass{book}

    usepackage{amsmath}

    begin{document}

    begin{align}
    & DE:AB = 18:6 && text{too wide} \
    & DE{:}AB = 18{:}6 && text{too tight} \
    & DE{,:,}AB = 18{,:,}6 && text{maybe better} \
    & DEmathbin{:}AB = 18mathbin{:}6 && text{right, IMO}
    end{align}

    end{document}


    enter image description here



    When you have decided what's best for you, add one of the following definitions (rt is for ‘ratio’, choose a different name if you wish):



    newcommand{rt}{{:}}         % for choice 2
    newcommand{rt}{{,:,}} % for choice 3
    newcommand{rt}{mathbin{:}} % for choice 4


    and input your proportions as



    DE rt AB = 18 rt 6





    share|improve this answer































      5














      You can redeclare : to be of class mathord. If have to restore the original behaviour, use mathrel{:}.



      documentclass{book}

      usepackage{amsmath}

      DeclareMathSymbol{:}{mathord}{operators}{"3A}

      begin{document}

      [ DE:AB = 18:6 quad AB:12 = CE:15 ]

      end{document}


      enter image description here






      share|improve this answer





















      • 1





        I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

        – GuM
        May 22 '18 at 7:30













      • @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

        – Henri Menke
        May 22 '18 at 7:51











      • @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

        – egreg
        May 22 '18 at 8:11











      • @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

        – GuM
        May 22 '18 at 18:32











      • Hi Henri thanks for your suggestion it has helpful and working fine.

        – Rajesh Kumar
        May 24 '18 at 6:54



















      2














      I propose a command that seems cleaner in my opinion, and that lets you postpone the decision (in case you want to fine tune the output in the future)



      newcommand*ratio[1]{cleanratio#1relax}
      defcleanratio#1:#2relax{#1mathbin{:}#2}


      and then use ratio{DE:AB} = ratio{18:6} = ratio{3:1}. That way if you want to change the output you can (for instance #1,mathord{:},#2, or whatever). If you prefer a cleaner syntax like ratio DE:AB = ratio 18:6 = ratio 3:1 we can implement it.






      share|improve this answer































        0














        java -jar saxon9he.jar -s:184218_2_De_1_Chapter.xml -o:184218_2_De_1_Chapter.tex -xsl:xml2texTest.xsl
        latex 184218_2_De_1_Chapter.tex









        begin{document}



        end{document}




        documentclass{book}

        usepackage{mysample}




        doilink{}

        title{}




        begin{abstract}


        end{abstract}









        maketitle

















        begin{enumerate}


        end{enumerate}







        item










        textbf{}


        textit{}













        section{}




        linkbib{

        }{

        }




        reflink{

        }{

        }




        begin{figure}[t!]


        end{figure}





        caption{}



        -->
        -->
        Abb. 1.1</CaptionNumber> -->
        Schema zur Modellbildung</SimplePara></CaptionContent></Caption> -->
        -->
        -->
        -->
        </Figure> -->






        begin{table}[t]

        end{table}






        caption{}






        begin{tabular*}{textwidth}{@{extracolsep{fill}}



        l|


        l


        }
        hline



        end{tabular*}







        &



        hline










        &



        hline











        share|improve this answer
























        • I guess you posted this by accident? It doesn't seem to be an answer to the question.

          – Johannes_B
          17 mins 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',
        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
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f432778%2freduce-space-between-colon-inside-the-math%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        7














        Just put the colons in groups.



        documentclass{book}

        usepackage{amsmath}

        begin{document}

        [
        DE{:}AB = 18{:}6 quad AB{:}12 = CE{:}15
        ]

        end{document}





        share|improve this answer




























          7














          Just put the colons in groups.



          documentclass{book}

          usepackage{amsmath}

          begin{document}

          [
          DE{:}AB = 18{:}6 quad AB{:}12 = CE{:}15
          ]

          end{document}





          share|improve this answer


























            7












            7








            7







            Just put the colons in groups.



            documentclass{book}

            usepackage{amsmath}

            begin{document}

            [
            DE{:}AB = 18{:}6 quad AB{:}12 = CE{:}15
            ]

            end{document}





            share|improve this answer













            Just put the colons in groups.



            documentclass{book}

            usepackage{amsmath}

            begin{document}

            [
            DE{:}AB = 18{:}6 quad AB{:}12 = CE{:}15
            ]

            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 22 '18 at 5:18









            marmotmarmot

            98.2k4113218




            98.2k4113218























                10














                You're using the colon as an operation symbol, which is seldom done in professional mathematics, where the colon usually denotes a relation symbol. However, the colon is commonly found in elementary mathematics.



                Here is a visual comparison:



                documentclass{book}

                usepackage{amsmath}

                begin{document}

                begin{align}
                & DE:AB = 18:6 && text{too wide} \
                & DE{:}AB = 18{:}6 && text{too tight} \
                & DE{,:,}AB = 18{,:,}6 && text{maybe better} \
                & DEmathbin{:}AB = 18mathbin{:}6 && text{right, IMO}
                end{align}

                end{document}


                enter image description here



                When you have decided what's best for you, add one of the following definitions (rt is for ‘ratio’, choose a different name if you wish):



                newcommand{rt}{{:}}         % for choice 2
                newcommand{rt}{{,:,}} % for choice 3
                newcommand{rt}{mathbin{:}} % for choice 4


                and input your proportions as



                DE rt AB = 18 rt 6





                share|improve this answer




























                  10














                  You're using the colon as an operation symbol, which is seldom done in professional mathematics, where the colon usually denotes a relation symbol. However, the colon is commonly found in elementary mathematics.



                  Here is a visual comparison:



                  documentclass{book}

                  usepackage{amsmath}

                  begin{document}

                  begin{align}
                  & DE:AB = 18:6 && text{too wide} \
                  & DE{:}AB = 18{:}6 && text{too tight} \
                  & DE{,:,}AB = 18{,:,}6 && text{maybe better} \
                  & DEmathbin{:}AB = 18mathbin{:}6 && text{right, IMO}
                  end{align}

                  end{document}


                  enter image description here



                  When you have decided what's best for you, add one of the following definitions (rt is for ‘ratio’, choose a different name if you wish):



                  newcommand{rt}{{:}}         % for choice 2
                  newcommand{rt}{{,:,}} % for choice 3
                  newcommand{rt}{mathbin{:}} % for choice 4


                  and input your proportions as



                  DE rt AB = 18 rt 6





                  share|improve this answer


























                    10












                    10








                    10







                    You're using the colon as an operation symbol, which is seldom done in professional mathematics, where the colon usually denotes a relation symbol. However, the colon is commonly found in elementary mathematics.



                    Here is a visual comparison:



                    documentclass{book}

                    usepackage{amsmath}

                    begin{document}

                    begin{align}
                    & DE:AB = 18:6 && text{too wide} \
                    & DE{:}AB = 18{:}6 && text{too tight} \
                    & DE{,:,}AB = 18{,:,}6 && text{maybe better} \
                    & DEmathbin{:}AB = 18mathbin{:}6 && text{right, IMO}
                    end{align}

                    end{document}


                    enter image description here



                    When you have decided what's best for you, add one of the following definitions (rt is for ‘ratio’, choose a different name if you wish):



                    newcommand{rt}{{:}}         % for choice 2
                    newcommand{rt}{{,:,}} % for choice 3
                    newcommand{rt}{mathbin{:}} % for choice 4


                    and input your proportions as



                    DE rt AB = 18 rt 6





                    share|improve this answer













                    You're using the colon as an operation symbol, which is seldom done in professional mathematics, where the colon usually denotes a relation symbol. However, the colon is commonly found in elementary mathematics.



                    Here is a visual comparison:



                    documentclass{book}

                    usepackage{amsmath}

                    begin{document}

                    begin{align}
                    & DE:AB = 18:6 && text{too wide} \
                    & DE{:}AB = 18{:}6 && text{too tight} \
                    & DE{,:,}AB = 18{,:,}6 && text{maybe better} \
                    & DEmathbin{:}AB = 18mathbin{:}6 && text{right, IMO}
                    end{align}

                    end{document}


                    enter image description here



                    When you have decided what's best for you, add one of the following definitions (rt is for ‘ratio’, choose a different name if you wish):



                    newcommand{rt}{{:}}         % for choice 2
                    newcommand{rt}{{,:,}} % for choice 3
                    newcommand{rt}{mathbin{:}} % for choice 4


                    and input your proportions as



                    DE rt AB = 18 rt 6






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 22 '18 at 8:57









                    egregegreg

                    718k8719033199




                    718k8719033199























                        5














                        You can redeclare : to be of class mathord. If have to restore the original behaviour, use mathrel{:}.



                        documentclass{book}

                        usepackage{amsmath}

                        DeclareMathSymbol{:}{mathord}{operators}{"3A}

                        begin{document}

                        [ DE:AB = 18:6 quad AB:12 = CE:15 ]

                        end{document}


                        enter image description here






                        share|improve this answer





















                        • 1





                          I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                          – GuM
                          May 22 '18 at 7:30













                        • @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                          – Henri Menke
                          May 22 '18 at 7:51











                        • @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                          – egreg
                          May 22 '18 at 8:11











                        • @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                          – GuM
                          May 22 '18 at 18:32











                        • Hi Henri thanks for your suggestion it has helpful and working fine.

                          – Rajesh Kumar
                          May 24 '18 at 6:54
















                        5














                        You can redeclare : to be of class mathord. If have to restore the original behaviour, use mathrel{:}.



                        documentclass{book}

                        usepackage{amsmath}

                        DeclareMathSymbol{:}{mathord}{operators}{"3A}

                        begin{document}

                        [ DE:AB = 18:6 quad AB:12 = CE:15 ]

                        end{document}


                        enter image description here






                        share|improve this answer





















                        • 1





                          I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                          – GuM
                          May 22 '18 at 7:30













                        • @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                          – Henri Menke
                          May 22 '18 at 7:51











                        • @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                          – egreg
                          May 22 '18 at 8:11











                        • @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                          – GuM
                          May 22 '18 at 18:32











                        • Hi Henri thanks for your suggestion it has helpful and working fine.

                          – Rajesh Kumar
                          May 24 '18 at 6:54














                        5












                        5








                        5







                        You can redeclare : to be of class mathord. If have to restore the original behaviour, use mathrel{:}.



                        documentclass{book}

                        usepackage{amsmath}

                        DeclareMathSymbol{:}{mathord}{operators}{"3A}

                        begin{document}

                        [ DE:AB = 18:6 quad AB:12 = CE:15 ]

                        end{document}


                        enter image description here






                        share|improve this answer















                        You can redeclare : to be of class mathord. If have to restore the original behaviour, use mathrel{:}.



                        documentclass{book}

                        usepackage{amsmath}

                        DeclareMathSymbol{:}{mathord}{operators}{"3A}

                        begin{document}

                        [ DE:AB = 18:6 quad AB:12 = CE:15 ]

                        end{document}


                        enter image description here







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited May 22 '18 at 7:49

























                        answered May 22 '18 at 5:41









                        Henri MenkeHenri Menke

                        73.2k8162273




                        73.2k8162273








                        • 1





                          I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                          – GuM
                          May 22 '18 at 7:30













                        • @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                          – Henri Menke
                          May 22 '18 at 7:51











                        • @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                          – egreg
                          May 22 '18 at 8:11











                        • @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                          – GuM
                          May 22 '18 at 18:32











                        • Hi Henri thanks for your suggestion it has helpful and working fine.

                          – Rajesh Kumar
                          May 24 '18 at 6:54














                        • 1





                          I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                          – GuM
                          May 22 '18 at 7:30













                        • @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                          – Henri Menke
                          May 22 '18 at 7:51











                        • @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                          – egreg
                          May 22 '18 at 8:11











                        • @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                          – GuM
                          May 22 '18 at 18:32











                        • Hi Henri thanks for your suggestion it has helpful and working fine.

                          – Rajesh Kumar
                          May 24 '18 at 6:54








                        1




                        1





                        I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                        – GuM
                        May 22 '18 at 7:30







                        I’d go for a different name, e.g., DeclareMathSymbol{dv}{mathord}{operators}{"3A}. I’d also consider DeclareMathSymbol{dv}{mathbin}{operators}{"3A}.

                        – GuM
                        May 22 '18 at 7:30















                        @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                        – Henri Menke
                        May 22 '18 at 7:51





                        @GuM See updated answer. I don't think you have to wrap it in a command. After all you want the spacing around colon to be consistent throughout. But it's good to know how to go back, which I have added to my answer.

                        – Henri Menke
                        May 22 '18 at 7:51













                        @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                        – egreg
                        May 22 '18 at 8:11





                        @GuM After seeing the output, I’d go for something like newcommanddv{,{:},}

                        – egreg
                        May 22 '18 at 8:11













                        @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                        – GuM
                        May 22 '18 at 18:32





                        @egreg: I cannot make up my mind for either of the two variants (thin space or medium space). Perhaps a matter of personal taste. Maybe newcommand*dv{noscript,{:}noscript,} (or a robustified version thereof)?

                        – GuM
                        May 22 '18 at 18:32













                        Hi Henri thanks for your suggestion it has helpful and working fine.

                        – Rajesh Kumar
                        May 24 '18 at 6:54





                        Hi Henri thanks for your suggestion it has helpful and working fine.

                        – Rajesh Kumar
                        May 24 '18 at 6:54











                        2














                        I propose a command that seems cleaner in my opinion, and that lets you postpone the decision (in case you want to fine tune the output in the future)



                        newcommand*ratio[1]{cleanratio#1relax}
                        defcleanratio#1:#2relax{#1mathbin{:}#2}


                        and then use ratio{DE:AB} = ratio{18:6} = ratio{3:1}. That way if you want to change the output you can (for instance #1,mathord{:},#2, or whatever). If you prefer a cleaner syntax like ratio DE:AB = ratio 18:6 = ratio 3:1 we can implement it.






                        share|improve this answer




























                          2














                          I propose a command that seems cleaner in my opinion, and that lets you postpone the decision (in case you want to fine tune the output in the future)



                          newcommand*ratio[1]{cleanratio#1relax}
                          defcleanratio#1:#2relax{#1mathbin{:}#2}


                          and then use ratio{DE:AB} = ratio{18:6} = ratio{3:1}. That way if you want to change the output you can (for instance #1,mathord{:},#2, or whatever). If you prefer a cleaner syntax like ratio DE:AB = ratio 18:6 = ratio 3:1 we can implement it.






                          share|improve this answer


























                            2












                            2








                            2







                            I propose a command that seems cleaner in my opinion, and that lets you postpone the decision (in case you want to fine tune the output in the future)



                            newcommand*ratio[1]{cleanratio#1relax}
                            defcleanratio#1:#2relax{#1mathbin{:}#2}


                            and then use ratio{DE:AB} = ratio{18:6} = ratio{3:1}. That way if you want to change the output you can (for instance #1,mathord{:},#2, or whatever). If you prefer a cleaner syntax like ratio DE:AB = ratio 18:6 = ratio 3:1 we can implement it.






                            share|improve this answer













                            I propose a command that seems cleaner in my opinion, and that lets you postpone the decision (in case you want to fine tune the output in the future)



                            newcommand*ratio[1]{cleanratio#1relax}
                            defcleanratio#1:#2relax{#1mathbin{:}#2}


                            and then use ratio{DE:AB} = ratio{18:6} = ratio{3:1}. That way if you want to change the output you can (for instance #1,mathord{:},#2, or whatever). If you prefer a cleaner syntax like ratio DE:AB = ratio 18:6 = ratio 3:1 we can implement it.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 22 '18 at 11:16









                            ManuelManuel

                            21.3k846107




                            21.3k846107























                                0














                                java -jar saxon9he.jar -s:184218_2_De_1_Chapter.xml -o:184218_2_De_1_Chapter.tex -xsl:xml2texTest.xsl
                                latex 184218_2_De_1_Chapter.tex









                                begin{document}



                                end{document}




                                documentclass{book}

                                usepackage{mysample}




                                doilink{}

                                title{}




                                begin{abstract}


                                end{abstract}









                                maketitle

















                                begin{enumerate}


                                end{enumerate}







                                item










                                textbf{}


                                textit{}













                                section{}




                                linkbib{

                                }{

                                }




                                reflink{

                                }{

                                }




                                begin{figure}[t!]


                                end{figure}





                                caption{}



                                -->
                                -->
                                Abb. 1.1</CaptionNumber> -->
                                Schema zur Modellbildung</SimplePara></CaptionContent></Caption> -->
                                -->
                                -->
                                -->
                                </Figure> -->






                                begin{table}[t]

                                end{table}






                                caption{}






                                begin{tabular*}{textwidth}{@{extracolsep{fill}}



                                l|


                                l


                                }
                                hline



                                end{tabular*}







                                &



                                hline










                                &



                                hline











                                share|improve this answer
























                                • I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                  – Johannes_B
                                  17 mins ago
















                                0














                                java -jar saxon9he.jar -s:184218_2_De_1_Chapter.xml -o:184218_2_De_1_Chapter.tex -xsl:xml2texTest.xsl
                                latex 184218_2_De_1_Chapter.tex









                                begin{document}



                                end{document}




                                documentclass{book}

                                usepackage{mysample}




                                doilink{}

                                title{}




                                begin{abstract}


                                end{abstract}









                                maketitle

















                                begin{enumerate}


                                end{enumerate}







                                item










                                textbf{}


                                textit{}













                                section{}




                                linkbib{

                                }{

                                }




                                reflink{

                                }{

                                }




                                begin{figure}[t!]


                                end{figure}





                                caption{}



                                -->
                                -->
                                Abb. 1.1</CaptionNumber> -->
                                Schema zur Modellbildung</SimplePara></CaptionContent></Caption> -->
                                -->
                                -->
                                -->
                                </Figure> -->






                                begin{table}[t]

                                end{table}






                                caption{}






                                begin{tabular*}{textwidth}{@{extracolsep{fill}}



                                l|


                                l


                                }
                                hline



                                end{tabular*}







                                &



                                hline










                                &



                                hline











                                share|improve this answer
























                                • I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                  – Johannes_B
                                  17 mins ago














                                0












                                0








                                0







                                java -jar saxon9he.jar -s:184218_2_De_1_Chapter.xml -o:184218_2_De_1_Chapter.tex -xsl:xml2texTest.xsl
                                latex 184218_2_De_1_Chapter.tex









                                begin{document}



                                end{document}




                                documentclass{book}

                                usepackage{mysample}




                                doilink{}

                                title{}




                                begin{abstract}


                                end{abstract}









                                maketitle

















                                begin{enumerate}


                                end{enumerate}







                                item










                                textbf{}


                                textit{}













                                section{}




                                linkbib{

                                }{

                                }




                                reflink{

                                }{

                                }




                                begin{figure}[t!]


                                end{figure}





                                caption{}



                                -->
                                -->
                                Abb. 1.1</CaptionNumber> -->
                                Schema zur Modellbildung</SimplePara></CaptionContent></Caption> -->
                                -->
                                -->
                                -->
                                </Figure> -->






                                begin{table}[t]

                                end{table}






                                caption{}






                                begin{tabular*}{textwidth}{@{extracolsep{fill}}



                                l|


                                l


                                }
                                hline



                                end{tabular*}







                                &



                                hline










                                &



                                hline











                                share|improve this answer













                                java -jar saxon9he.jar -s:184218_2_De_1_Chapter.xml -o:184218_2_De_1_Chapter.tex -xsl:xml2texTest.xsl
                                latex 184218_2_De_1_Chapter.tex









                                begin{document}



                                end{document}




                                documentclass{book}

                                usepackage{mysample}




                                doilink{}

                                title{}




                                begin{abstract}


                                end{abstract}









                                maketitle

















                                begin{enumerate}


                                end{enumerate}







                                item










                                textbf{}


                                textit{}













                                section{}




                                linkbib{

                                }{

                                }




                                reflink{

                                }{

                                }




                                begin{figure}[t!]


                                end{figure}





                                caption{}



                                -->
                                -->
                                Abb. 1.1</CaptionNumber> -->
                                Schema zur Modellbildung</SimplePara></CaptionContent></Caption> -->
                                -->
                                -->
                                -->
                                </Figure> -->






                                begin{table}[t]

                                end{table}






                                caption{}






                                begin{tabular*}{textwidth}{@{extracolsep{fill}}



                                l|


                                l


                                }
                                hline



                                end{tabular*}







                                &



                                hline










                                &



                                hline












                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered 32 mins ago









                                Rajesh KumarRajesh Kumar

                                1368




                                1368













                                • I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                  – Johannes_B
                                  17 mins ago



















                                • I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                  – Johannes_B
                                  17 mins ago

















                                I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                – Johannes_B
                                17 mins ago





                                I guess you posted this by accident? It doesn't seem to be an answer to the question.

                                – Johannes_B
                                17 mins ago


















                                draft saved

                                draft discarded




















































                                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%2f432778%2freduce-space-between-colon-inside-the-math%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

                                Contact image not getting when fetch all contact list from iPhone by CNContact

                                count number of partitions of a set with n elements into k subsets

                                A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks