how to set the left margin for all formulas in the text?











up vote
6
down vote

favorite












My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:



item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}









share|improve this question




















  • 2




    I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
    – Peter Grill
    Mar 21 '12 at 23:09








  • 3




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    Mar 21 '12 at 23:10






  • 4




    the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
    – prettygully
    Mar 21 '12 at 23:51








  • 2




    To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
    – Mico
    Mar 22 '12 at 0:17















up vote
6
down vote

favorite












My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:



item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}









share|improve this question




















  • 2




    I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
    – Peter Grill
    Mar 21 '12 at 23:09








  • 3




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    Mar 21 '12 at 23:10






  • 4




    the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
    – prettygully
    Mar 21 '12 at 23:51








  • 2




    To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
    – Mico
    Mar 22 '12 at 0:17













up vote
6
down vote

favorite









up vote
6
down vote

favorite











My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:



item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}









share|improve this question















My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:



item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}






equations lists indentation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 18 '17 at 8:58









David Carlisle

478k3811101843




478k3811101843










asked Mar 21 '12 at 23:01









anna

81124




81124








  • 2




    I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
    – Peter Grill
    Mar 21 '12 at 23:09








  • 3




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    Mar 21 '12 at 23:10






  • 4




    the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
    – prettygully
    Mar 21 '12 at 23:51








  • 2




    To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
    – Mico
    Mar 22 '12 at 0:17














  • 2




    I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
    – Peter Grill
    Mar 21 '12 at 23:09








  • 3




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    Mar 21 '12 at 23:10






  • 4




    the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
    – prettygully
    Mar 21 '12 at 23:51








  • 2




    To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
    – Mico
    Mar 22 '12 at 0:17








2




2




I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
– Peter Grill
Mar 21 '12 at 23:09






I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The align environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign.
– Peter Grill
Mar 21 '12 at 23:09






3




3




While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
Mar 21 '12 at 23:10




While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
Mar 21 '12 at 23:10




4




4




the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51






the default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51






2




2




To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
– Mico
Mar 22 '12 at 0:17




To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from align to gather since you're not instructing amsmath to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting & alignment points.
– Mico
Mar 22 '12 at 0:17










1 Answer
1






active

oldest

votes

















up vote
3
down vote













From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}






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',
    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%2f48902%2fhow-to-set-the-left-margin-for-all-formulas-in-the-text%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








    up vote
    3
    down vote













    From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}






    share|improve this answer



























      up vote
      3
      down vote













      From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}






      share|improve this answer

























        up vote
        3
        down vote










        up vote
        3
        down vote









        From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}






        share|improve this answer














        From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article} to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}







        share|improve this answer














        share|improve this answer



        share|improve this answer








        answered May 5 '12 at 21:03


























        community wiki





        boycott.se - yo'































            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f48902%2fhow-to-set-the-left-margin-for-all-formulas-in-the-text%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt