Fractional alignment












8















So I have this basic code:



But the fractional alignment looks awful, any tips to fix this?



documentclass[11pt, a4paper]{report}
usepackage{bm}
usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm, mathrsfs, eufrak}
usepackage{color}
usepackage{array}
usepackage{setspace}% if you must (for double spacing thesis)
usepackage{fancyhdr}
usepackage{enumitem}
usepackage{tikz}
usepackage{parskip}
usepackage{lipsum}
usepackage{floatrow}
usepackage{commath}
providecommand{U}[1]{protectrule{.1in}{.1in}}


begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity, the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


as you notice, it looks awful.










share|improve this question

























  • I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

    – Maths
    yesterday








  • 1





    You can always add space to it: ,abs G.

    – JouleV
    yesterday






  • 1





    Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

    – JouleV
    yesterday






  • 1





    @JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

    – campa
    yesterday








  • 1





    See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

    – egreg
    yesterday
















8















So I have this basic code:



But the fractional alignment looks awful, any tips to fix this?



documentclass[11pt, a4paper]{report}
usepackage{bm}
usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm, mathrsfs, eufrak}
usepackage{color}
usepackage{array}
usepackage{setspace}% if you must (for double spacing thesis)
usepackage{fancyhdr}
usepackage{enumitem}
usepackage{tikz}
usepackage{parskip}
usepackage{lipsum}
usepackage{floatrow}
usepackage{commath}
providecommand{U}[1]{protectrule{.1in}{.1in}}


begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity, the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


as you notice, it looks awful.










share|improve this question

























  • I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

    – Maths
    yesterday








  • 1





    You can always add space to it: ,abs G.

    – JouleV
    yesterday






  • 1





    Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

    – JouleV
    yesterday






  • 1





    @JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

    – campa
    yesterday








  • 1





    See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

    – egreg
    yesterday














8












8








8


1






So I have this basic code:



But the fractional alignment looks awful, any tips to fix this?



documentclass[11pt, a4paper]{report}
usepackage{bm}
usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm, mathrsfs, eufrak}
usepackage{color}
usepackage{array}
usepackage{setspace}% if you must (for double spacing thesis)
usepackage{fancyhdr}
usepackage{enumitem}
usepackage{tikz}
usepackage{parskip}
usepackage{lipsum}
usepackage{floatrow}
usepackage{commath}
providecommand{U}[1]{protectrule{.1in}{.1in}}


begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity, the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


as you notice, it looks awful.










share|improve this question
















So I have this basic code:



But the fractional alignment looks awful, any tips to fix this?



documentclass[11pt, a4paper]{report}
usepackage{bm}
usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm, mathrsfs, eufrak}
usepackage{color}
usepackage{array}
usepackage{setspace}% if you must (for double spacing thesis)
usepackage{fancyhdr}
usepackage{enumitem}
usepackage{tikz}
usepackage{parskip}
usepackage{lipsum}
usepackage{floatrow}
usepackage{commath}
providecommand{U}[1]{protectrule{.1in}{.1in}}


begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity, the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


as you notice, it looks awful.







fractions commath






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Mico

286k32390779




286k32390779










asked yesterday









MathsMaths

44311




44311













  • I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

    – Maths
    yesterday








  • 1





    You can always add space to it: ,abs G.

    – JouleV
    yesterday






  • 1





    Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

    – JouleV
    yesterday






  • 1





    @JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

    – campa
    yesterday








  • 1





    See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

    – egreg
    yesterday



















  • I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

    – Maths
    yesterday








  • 1





    You can always add space to it: ,abs G.

    – JouleV
    yesterday






  • 1





    Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

    – JouleV
    yesterday






  • 1





    @JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

    – campa
    yesterday








  • 1





    See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

    – egreg
    yesterday

















I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

– Maths
yesterday







I mean, can the |G| be pushed a little to the right? since the vertical "bars" and not aligned with the horizontal fractional line?

– Maths
yesterday






1




1





You can always add space to it: ,abs G.

– JouleV
yesterday





You can always add space to it: ,abs G.

– JouleV
yesterday




1




1





Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

– JouleV
yesterday





Hmm, I don't think it deserves closure. This is a good question and my solution is only a workaround - it is not 100% centered. Maybe some TeXperts out there will provide a good answer.

– JouleV
yesterday




1




1





@JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

– campa
yesterday







@JouleV I agree, the question shouldn't be closed. It's definitely a bug (feature?) in commath.

– campa
yesterday






1




1





See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

– egreg
yesterday





See tex.stackexchange.com/a/135985/4427, if you really want to use commath macros.

– egreg
yesterday










2 Answers
2






active

oldest

votes


















8














The commath package provides a highly questionable implementation of abs. Don't load this package unless you absolutely have to. (Aside: You do not have to for the example at hand.)



Instead of loading this package, I suggest you




  • load the mathtools package instead of the amsmath package. The mathtools package is, for all intents and purposes, a superset of the amsmath package; and



  • issue the instruction



    DeclarePairedDelimiter{abs}{lvert}{rvert}


    in the preamble. This sets up a proper implementation of abs{...}. If you need to auto-size the vertical bars, simply use abs*{...}.






*Addendum": More about how commath implements envert (abs is just an alias for envert): If envert{<arg>} is invoked without an optional sizing argument (a whole number between 0 and 4), the following code gets executed:



 !leftlvert#2rightrvert


It's the ! ("negative thinspace") instruction that messes up the symmetry of the full expression. Either write abs[0]{<arg>} to execute lvert#2rvert or, more safely, don't load commath at all and go for a cleaner definition of abs. The definitions of abs[1]{...} thru abs[4]{...} are also messed up, by the way, as are the definitions of norm and norm[1] thru norm]4]. While it's possible, in principle, to correct the faulty definitions of envert, abs, enVert, and norm, one is better off going for a setup that avoids these complications...






share|improve this answer


























  • So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

    – Maths
    yesterday








  • 1





    @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

    – Mico
    yesterday



















1














Compare the output of



documentclass[11pt, a4paper]{report}
usepackage{amsmath}
usepackage{enumitem}
usepackage{commath}

DeclareMathOperator{Tr}{Tr}

begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


enter image description here



with the output of



documentclass[11pt, a4paper]{report}
usepackage{amsmath}
usepackage{enumitem}

makeatletter
% begin definitions for a "better commath"

newcommand{dif}{mathop{}!mathrm{d}}
newcommand{Dif}{mathop{}!mathrm{D}}

newcommand{spx}[1]{%
ifrelaxdetokenize{#1}relax
expandafter@gobble
else
expandafter@firstofone
fi
{^{#1}}%
}

newcommandpd[3]{frac{partialspx{#1}#2}{partial#3spx{#1}}}
newcommandtpd[3]{tfrac{partialspx{#1}#2}{partial#3spx{#1}}}
newcommanddpd[3]{dfrac{partialspx{#1}#2}{partial#3spx{#1}}}

newcommand{md}[6]{frac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
newcommand{tmd}[6]{tfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
newcommand{dmd}[6]{dfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}

newcommand{od}[3]{frac{difspx{#1}#2}{dif#3spx{#1}}}
newcommand{tod}[3]{tfrac{difspx{#1}#2}{dif#3spx{#1}}}
newcommand{dod}[3]{dfrac{difspx{#1}#2}{dif#3spx{#1}}}

newcommand{genericdel}[4]{%
ifcase#3relax
ifx#1.else#1fi#4ifx#2.else#2fior
bigl#1#4bigr#2or
Bigl#1#4Bigr#2or
biggl#1#4biggr#2or
Biggl#1#4Biggr#2else
left#1#4right#2fi
}
newcommand{del}[2][-1]{genericdel(){#1}{#2}}
newcommand{set}[2][-1]{genericdel{}{#1}{#2}}
letcbrset
newcommand{sbr}[2][-1]{genericdel{#1}{#2}}
letintoodel
letintccsbr
newcommand{intoc}[2][-1]{genericdel(]{#1}{#2}}
newcommand{intco}[2][-1]{genericdel[){#1}{#2}}
newcommand{eval}[2][-1]{genericdel.|{#1}{#2}}
newcommand{envert}[2][-1]{genericdel||{#1}{#2}}
letabsenvert
newcommand{sVert}[1][0]{%
ifcase#1relax
rvertorbigr|orBigr|orbiggr|orBiggr
fi
}
newcommand{enVert}[2][-1]{genericdel||{#1}{#2}}
letnormenVert
newcommand{fullfunction}[5]{%
begin{array}{@{}r@{}r@{}c@{}l@{}}
#1 colon & #2 & {}longrightarrow{} & #3 \
& #4 & {}longmapsto{} & #5
end{array}
}
%%% end of the definitions
makeatother


DeclareMathOperator{Tr}{Tr}

begin{document}

Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
[
h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
]
where $abs G$ is the order of $G$. Then
begin{enumerate}[label=(roman*)]
item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
end{enumerate}

end{document}


The code has already been presented in https://tex.stackexchange.com/a/135985/4427 and provides a full replacement of commath, avoiding all its weaknesses. If you're tied to commath because you use its macros and features in other places, this can save you. Otherwise define abs with DeclarePairedDelimiter as suggested by Mico.



For instance, you can notice the reduced space between “where” and “|G|” in the commath version.



enter image description here



You should define anyway an operator name for “Tr”.



If you decide to go for this, save the part between



% begin definitions for a "better commath"


and



% end of the definitions


in a file called bettercommath.sty in the working directory and do usepackage{bettercommath}.






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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483944%2ffractional-alignment%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









    8














    The commath package provides a highly questionable implementation of abs. Don't load this package unless you absolutely have to. (Aside: You do not have to for the example at hand.)



    Instead of loading this package, I suggest you




    • load the mathtools package instead of the amsmath package. The mathtools package is, for all intents and purposes, a superset of the amsmath package; and



    • issue the instruction



      DeclarePairedDelimiter{abs}{lvert}{rvert}


      in the preamble. This sets up a proper implementation of abs{...}. If you need to auto-size the vertical bars, simply use abs*{...}.






    *Addendum": More about how commath implements envert (abs is just an alias for envert): If envert{<arg>} is invoked without an optional sizing argument (a whole number between 0 and 4), the following code gets executed:



     !leftlvert#2rightrvert


    It's the ! ("negative thinspace") instruction that messes up the symmetry of the full expression. Either write abs[0]{<arg>} to execute lvert#2rvert or, more safely, don't load commath at all and go for a cleaner definition of abs. The definitions of abs[1]{...} thru abs[4]{...} are also messed up, by the way, as are the definitions of norm and norm[1] thru norm]4]. While it's possible, in principle, to correct the faulty definitions of envert, abs, enVert, and norm, one is better off going for a setup that avoids these complications...






    share|improve this answer


























    • So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

      – Maths
      yesterday








    • 1





      @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

      – Mico
      yesterday
















    8














    The commath package provides a highly questionable implementation of abs. Don't load this package unless you absolutely have to. (Aside: You do not have to for the example at hand.)



    Instead of loading this package, I suggest you




    • load the mathtools package instead of the amsmath package. The mathtools package is, for all intents and purposes, a superset of the amsmath package; and



    • issue the instruction



      DeclarePairedDelimiter{abs}{lvert}{rvert}


      in the preamble. This sets up a proper implementation of abs{...}. If you need to auto-size the vertical bars, simply use abs*{...}.






    *Addendum": More about how commath implements envert (abs is just an alias for envert): If envert{<arg>} is invoked without an optional sizing argument (a whole number between 0 and 4), the following code gets executed:



     !leftlvert#2rightrvert


    It's the ! ("negative thinspace") instruction that messes up the symmetry of the full expression. Either write abs[0]{<arg>} to execute lvert#2rvert or, more safely, don't load commath at all and go for a cleaner definition of abs. The definitions of abs[1]{...} thru abs[4]{...} are also messed up, by the way, as are the definitions of norm and norm[1] thru norm]4]. While it's possible, in principle, to correct the faulty definitions of envert, abs, enVert, and norm, one is better off going for a setup that avoids these complications...






    share|improve this answer


























    • So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

      – Maths
      yesterday








    • 1





      @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

      – Mico
      yesterday














    8












    8








    8







    The commath package provides a highly questionable implementation of abs. Don't load this package unless you absolutely have to. (Aside: You do not have to for the example at hand.)



    Instead of loading this package, I suggest you




    • load the mathtools package instead of the amsmath package. The mathtools package is, for all intents and purposes, a superset of the amsmath package; and



    • issue the instruction



      DeclarePairedDelimiter{abs}{lvert}{rvert}


      in the preamble. This sets up a proper implementation of abs{...}. If you need to auto-size the vertical bars, simply use abs*{...}.






    *Addendum": More about how commath implements envert (abs is just an alias for envert): If envert{<arg>} is invoked without an optional sizing argument (a whole number between 0 and 4), the following code gets executed:



     !leftlvert#2rightrvert


    It's the ! ("negative thinspace") instruction that messes up the symmetry of the full expression. Either write abs[0]{<arg>} to execute lvert#2rvert or, more safely, don't load commath at all and go for a cleaner definition of abs. The definitions of abs[1]{...} thru abs[4]{...} are also messed up, by the way, as are the definitions of norm and norm[1] thru norm]4]. While it's possible, in principle, to correct the faulty definitions of envert, abs, enVert, and norm, one is better off going for a setup that avoids these complications...






    share|improve this answer















    The commath package provides a highly questionable implementation of abs. Don't load this package unless you absolutely have to. (Aside: You do not have to for the example at hand.)



    Instead of loading this package, I suggest you




    • load the mathtools package instead of the amsmath package. The mathtools package is, for all intents and purposes, a superset of the amsmath package; and



    • issue the instruction



      DeclarePairedDelimiter{abs}{lvert}{rvert}


      in the preamble. This sets up a proper implementation of abs{...}. If you need to auto-size the vertical bars, simply use abs*{...}.






    *Addendum": More about how commath implements envert (abs is just an alias for envert): If envert{<arg>} is invoked without an optional sizing argument (a whole number between 0 and 4), the following code gets executed:



     !leftlvert#2rightrvert


    It's the ! ("negative thinspace") instruction that messes up the symmetry of the full expression. Either write abs[0]{<arg>} to execute lvert#2rvert or, more safely, don't load commath at all and go for a cleaner definition of abs. The definitions of abs[1]{...} thru abs[4]{...} are also messed up, by the way, as are the definitions of norm and norm[1] thru norm]4]. While it's possible, in principle, to correct the faulty definitions of envert, abs, enVert, and norm, one is better off going for a setup that avoids these complications...







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited yesterday

























    answered yesterday









    MicoMico

    286k32390779




    286k32390779













    • So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

      – Maths
      yesterday








    • 1





      @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

      – Mico
      yesterday



















    • So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

      – Maths
      yesterday








    • 1





      @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

      – Mico
      yesterday

















    So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

    – Maths
    yesterday







    So I should remove the amsath package and insert the mathtools package? would this affect the remaining document consisting of 40-50 pages? if not then I'll change it since you have much more experience.

    – Maths
    yesterday






    1




    1





    @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

    – Mico
    yesterday





    @Maths - The mathtools package automatically loads the amsmath package, while taking great care not to mess with the operational details of the macros.

    – Mico
    yesterday











    1














    Compare the output of



    documentclass[11pt, a4paper]{report}
    usepackage{amsmath}
    usepackage{enumitem}
    usepackage{commath}

    DeclareMathOperator{Tr}{Tr}

    begin{document}

    Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
    [
    h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
    ]
    where $abs G$ is the order of $G$. Then
    begin{enumerate}[label=(roman*)]
    item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
    item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
    the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
    end{enumerate}

    end{document}


    enter image description here



    with the output of



    documentclass[11pt, a4paper]{report}
    usepackage{amsmath}
    usepackage{enumitem}

    makeatletter
    % begin definitions for a "better commath"

    newcommand{dif}{mathop{}!mathrm{d}}
    newcommand{Dif}{mathop{}!mathrm{D}}

    newcommand{spx}[1]{%
    ifrelaxdetokenize{#1}relax
    expandafter@gobble
    else
    expandafter@firstofone
    fi
    {^{#1}}%
    }

    newcommandpd[3]{frac{partialspx{#1}#2}{partial#3spx{#1}}}
    newcommandtpd[3]{tfrac{partialspx{#1}#2}{partial#3spx{#1}}}
    newcommanddpd[3]{dfrac{partialspx{#1}#2}{partial#3spx{#1}}}

    newcommand{md}[6]{frac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
    newcommand{tmd}[6]{tfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
    newcommand{dmd}[6]{dfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}

    newcommand{od}[3]{frac{difspx{#1}#2}{dif#3spx{#1}}}
    newcommand{tod}[3]{tfrac{difspx{#1}#2}{dif#3spx{#1}}}
    newcommand{dod}[3]{dfrac{difspx{#1}#2}{dif#3spx{#1}}}

    newcommand{genericdel}[4]{%
    ifcase#3relax
    ifx#1.else#1fi#4ifx#2.else#2fior
    bigl#1#4bigr#2or
    Bigl#1#4Bigr#2or
    biggl#1#4biggr#2or
    Biggl#1#4Biggr#2else
    left#1#4right#2fi
    }
    newcommand{del}[2][-1]{genericdel(){#1}{#2}}
    newcommand{set}[2][-1]{genericdel{}{#1}{#2}}
    letcbrset
    newcommand{sbr}[2][-1]{genericdel{#1}{#2}}
    letintoodel
    letintccsbr
    newcommand{intoc}[2][-1]{genericdel(]{#1}{#2}}
    newcommand{intco}[2][-1]{genericdel[){#1}{#2}}
    newcommand{eval}[2][-1]{genericdel.|{#1}{#2}}
    newcommand{envert}[2][-1]{genericdel||{#1}{#2}}
    letabsenvert
    newcommand{sVert}[1][0]{%
    ifcase#1relax
    rvertorbigr|orBigr|orbiggr|orBiggr
    fi
    }
    newcommand{enVert}[2][-1]{genericdel||{#1}{#2}}
    letnormenVert
    newcommand{fullfunction}[5]{%
    begin{array}{@{}r@{}r@{}c@{}l@{}}
    #1 colon & #2 & {}longrightarrow{} & #3 \
    & #4 & {}longmapsto{} & #5
    end{array}
    }
    %%% end of the definitions
    makeatother


    DeclareMathOperator{Tr}{Tr}

    begin{document}

    Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
    [
    h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
    ]
    where $abs G$ is the order of $G$. Then
    begin{enumerate}[label=(roman*)]
    item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
    item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
    the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
    end{enumerate}

    end{document}


    The code has already been presented in https://tex.stackexchange.com/a/135985/4427 and provides a full replacement of commath, avoiding all its weaknesses. If you're tied to commath because you use its macros and features in other places, this can save you. Otherwise define abs with DeclarePairedDelimiter as suggested by Mico.



    For instance, you can notice the reduced space between “where” and “|G|” in the commath version.



    enter image description here



    You should define anyway an operator name for “Tr”.



    If you decide to go for this, save the part between



    % begin definitions for a "better commath"


    and



    % end of the definitions


    in a file called bettercommath.sty in the working directory and do usepackage{bettercommath}.






    share|improve this answer




























      1














      Compare the output of



      documentclass[11pt, a4paper]{report}
      usepackage{amsmath}
      usepackage{enumitem}
      usepackage{commath}

      DeclareMathOperator{Tr}{Tr}

      begin{document}

      Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
      [
      h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
      ]
      where $abs G$ is the order of $G$. Then
      begin{enumerate}[label=(roman*)]
      item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
      item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
      the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
      end{enumerate}

      end{document}


      enter image description here



      with the output of



      documentclass[11pt, a4paper]{report}
      usepackage{amsmath}
      usepackage{enumitem}

      makeatletter
      % begin definitions for a "better commath"

      newcommand{dif}{mathop{}!mathrm{d}}
      newcommand{Dif}{mathop{}!mathrm{D}}

      newcommand{spx}[1]{%
      ifrelaxdetokenize{#1}relax
      expandafter@gobble
      else
      expandafter@firstofone
      fi
      {^{#1}}%
      }

      newcommandpd[3]{frac{partialspx{#1}#2}{partial#3spx{#1}}}
      newcommandtpd[3]{tfrac{partialspx{#1}#2}{partial#3spx{#1}}}
      newcommanddpd[3]{dfrac{partialspx{#1}#2}{partial#3spx{#1}}}

      newcommand{md}[6]{frac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
      newcommand{tmd}[6]{tfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
      newcommand{dmd}[6]{dfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}

      newcommand{od}[3]{frac{difspx{#1}#2}{dif#3spx{#1}}}
      newcommand{tod}[3]{tfrac{difspx{#1}#2}{dif#3spx{#1}}}
      newcommand{dod}[3]{dfrac{difspx{#1}#2}{dif#3spx{#1}}}

      newcommand{genericdel}[4]{%
      ifcase#3relax
      ifx#1.else#1fi#4ifx#2.else#2fior
      bigl#1#4bigr#2or
      Bigl#1#4Bigr#2or
      biggl#1#4biggr#2or
      Biggl#1#4Biggr#2else
      left#1#4right#2fi
      }
      newcommand{del}[2][-1]{genericdel(){#1}{#2}}
      newcommand{set}[2][-1]{genericdel{}{#1}{#2}}
      letcbrset
      newcommand{sbr}[2][-1]{genericdel{#1}{#2}}
      letintoodel
      letintccsbr
      newcommand{intoc}[2][-1]{genericdel(]{#1}{#2}}
      newcommand{intco}[2][-1]{genericdel[){#1}{#2}}
      newcommand{eval}[2][-1]{genericdel.|{#1}{#2}}
      newcommand{envert}[2][-1]{genericdel||{#1}{#2}}
      letabsenvert
      newcommand{sVert}[1][0]{%
      ifcase#1relax
      rvertorbigr|orBigr|orbiggr|orBiggr
      fi
      }
      newcommand{enVert}[2][-1]{genericdel||{#1}{#2}}
      letnormenVert
      newcommand{fullfunction}[5]{%
      begin{array}{@{}r@{}r@{}c@{}l@{}}
      #1 colon & #2 & {}longrightarrow{} & #3 \
      & #4 & {}longmapsto{} & #5
      end{array}
      }
      %%% end of the definitions
      makeatother


      DeclareMathOperator{Tr}{Tr}

      begin{document}

      Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
      [
      h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
      ]
      where $abs G$ is the order of $G$. Then
      begin{enumerate}[label=(roman*)]
      item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
      item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
      the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
      end{enumerate}

      end{document}


      The code has already been presented in https://tex.stackexchange.com/a/135985/4427 and provides a full replacement of commath, avoiding all its weaknesses. If you're tied to commath because you use its macros and features in other places, this can save you. Otherwise define abs with DeclarePairedDelimiter as suggested by Mico.



      For instance, you can notice the reduced space between “where” and “|G|” in the commath version.



      enter image description here



      You should define anyway an operator name for “Tr”.



      If you decide to go for this, save the part between



      % begin definitions for a "better commath"


      and



      % end of the definitions


      in a file called bettercommath.sty in the working directory and do usepackage{bettercommath}.






      share|improve this answer


























        1












        1








        1







        Compare the output of



        documentclass[11pt, a4paper]{report}
        usepackage{amsmath}
        usepackage{enumitem}
        usepackage{commath}

        DeclareMathOperator{Tr}{Tr}

        begin{document}

        Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
        [
        h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
        ]
        where $abs G$ is the order of $G$. Then
        begin{enumerate}[label=(roman*)]
        item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
        item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
        the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
        end{enumerate}

        end{document}


        enter image description here



        with the output of



        documentclass[11pt, a4paper]{report}
        usepackage{amsmath}
        usepackage{enumitem}

        makeatletter
        % begin definitions for a "better commath"

        newcommand{dif}{mathop{}!mathrm{d}}
        newcommand{Dif}{mathop{}!mathrm{D}}

        newcommand{spx}[1]{%
        ifrelaxdetokenize{#1}relax
        expandafter@gobble
        else
        expandafter@firstofone
        fi
        {^{#1}}%
        }

        newcommandpd[3]{frac{partialspx{#1}#2}{partial#3spx{#1}}}
        newcommandtpd[3]{tfrac{partialspx{#1}#2}{partial#3spx{#1}}}
        newcommanddpd[3]{dfrac{partialspx{#1}#2}{partial#3spx{#1}}}

        newcommand{md}[6]{frac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
        newcommand{tmd}[6]{tfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
        newcommand{dmd}[6]{dfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}

        newcommand{od}[3]{frac{difspx{#1}#2}{dif#3spx{#1}}}
        newcommand{tod}[3]{tfrac{difspx{#1}#2}{dif#3spx{#1}}}
        newcommand{dod}[3]{dfrac{difspx{#1}#2}{dif#3spx{#1}}}

        newcommand{genericdel}[4]{%
        ifcase#3relax
        ifx#1.else#1fi#4ifx#2.else#2fior
        bigl#1#4bigr#2or
        Bigl#1#4Bigr#2or
        biggl#1#4biggr#2or
        Biggl#1#4Biggr#2else
        left#1#4right#2fi
        }
        newcommand{del}[2][-1]{genericdel(){#1}{#2}}
        newcommand{set}[2][-1]{genericdel{}{#1}{#2}}
        letcbrset
        newcommand{sbr}[2][-1]{genericdel{#1}{#2}}
        letintoodel
        letintccsbr
        newcommand{intoc}[2][-1]{genericdel(]{#1}{#2}}
        newcommand{intco}[2][-1]{genericdel[){#1}{#2}}
        newcommand{eval}[2][-1]{genericdel.|{#1}{#2}}
        newcommand{envert}[2][-1]{genericdel||{#1}{#2}}
        letabsenvert
        newcommand{sVert}[1][0]{%
        ifcase#1relax
        rvertorbigr|orBigr|orbiggr|orBiggr
        fi
        }
        newcommand{enVert}[2][-1]{genericdel||{#1}{#2}}
        letnormenVert
        newcommand{fullfunction}[5]{%
        begin{array}{@{}r@{}r@{}c@{}l@{}}
        #1 colon & #2 & {}longrightarrow{} & #3 \
        & #4 & {}longmapsto{} & #5
        end{array}
        }
        %%% end of the definitions
        makeatother


        DeclareMathOperator{Tr}{Tr}

        begin{document}

        Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
        [
        h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
        ]
        where $abs G$ is the order of $G$. Then
        begin{enumerate}[label=(roman*)]
        item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
        item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
        the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
        end{enumerate}

        end{document}


        The code has already been presented in https://tex.stackexchange.com/a/135985/4427 and provides a full replacement of commath, avoiding all its weaknesses. If you're tied to commath because you use its macros and features in other places, this can save you. Otherwise define abs with DeclarePairedDelimiter as suggested by Mico.



        For instance, you can notice the reduced space between “where” and “|G|” in the commath version.



        enter image description here



        You should define anyway an operator name for “Tr”.



        If you decide to go for this, save the part between



        % begin definitions for a "better commath"


        and



        % end of the definitions


        in a file called bettercommath.sty in the working directory and do usepackage{bettercommath}.






        share|improve this answer













        Compare the output of



        documentclass[11pt, a4paper]{report}
        usepackage{amsmath}
        usepackage{enumitem}
        usepackage{commath}

        DeclareMathOperator{Tr}{Tr}

        begin{document}

        Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
        [
        h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
        ]
        where $abs G$ is the order of $G$. Then
        begin{enumerate}[label=(roman*)]
        item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
        item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
        the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
        end{enumerate}

        end{document}


        enter image description here



        with the output of



        documentclass[11pt, a4paper]{report}
        usepackage{amsmath}
        usepackage{enumitem}

        makeatletter
        % begin definitions for a "better commath"

        newcommand{dif}{mathop{}!mathrm{d}}
        newcommand{Dif}{mathop{}!mathrm{D}}

        newcommand{spx}[1]{%
        ifrelaxdetokenize{#1}relax
        expandafter@gobble
        else
        expandafter@firstofone
        fi
        {^{#1}}%
        }

        newcommandpd[3]{frac{partialspx{#1}#2}{partial#3spx{#1}}}
        newcommandtpd[3]{tfrac{partialspx{#1}#2}{partial#3spx{#1}}}
        newcommanddpd[3]{dfrac{partialspx{#1}#2}{partial#3spx{#1}}}

        newcommand{md}[6]{frac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
        newcommand{tmd}[6]{tfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}
        newcommand{dmd}[6]{dfrac{partialspx{#2}#1}{partial#3spx{#4}partial#5spx{#6}}}

        newcommand{od}[3]{frac{difspx{#1}#2}{dif#3spx{#1}}}
        newcommand{tod}[3]{tfrac{difspx{#1}#2}{dif#3spx{#1}}}
        newcommand{dod}[3]{dfrac{difspx{#1}#2}{dif#3spx{#1}}}

        newcommand{genericdel}[4]{%
        ifcase#3relax
        ifx#1.else#1fi#4ifx#2.else#2fior
        bigl#1#4bigr#2or
        Bigl#1#4Bigr#2or
        biggl#1#4biggr#2or
        Biggl#1#4Biggr#2else
        left#1#4right#2fi
        }
        newcommand{del}[2][-1]{genericdel(){#1}{#2}}
        newcommand{set}[2][-1]{genericdel{}{#1}{#2}}
        letcbrset
        newcommand{sbr}[2][-1]{genericdel{#1}{#2}}
        letintoodel
        letintccsbr
        newcommand{intoc}[2][-1]{genericdel(]{#1}{#2}}
        newcommand{intco}[2][-1]{genericdel[){#1}{#2}}
        newcommand{eval}[2][-1]{genericdel.|{#1}{#2}}
        newcommand{envert}[2][-1]{genericdel||{#1}{#2}}
        letabsenvert
        newcommand{sVert}[1][0]{%
        ifcase#1relax
        rvertorbigr|orBigr|orbiggr|orBiggr
        fi
        }
        newcommand{enVert}[2][-1]{genericdel||{#1}{#2}}
        letnormenVert
        newcommand{fullfunction}[5]{%
        begin{array}{@{}r@{}r@{}c@{}l@{}}
        #1 colon & #2 & {}longrightarrow{} & #3 \
        & #4 & {}longmapsto{} & #5
        end{array}
        }
        %%% end of the definitions
        makeatother


        DeclareMathOperator{Tr}{Tr}

        begin{document}

        Let $h$ be a linear mapping of $V_1$ into $V_2$. Let
        [
        h^0 = frac{1}{abs G} sum_{tin G} (rho_t^2)^{-1} h rho_t^1
        ]
        where $abs G$ is the order of $G$. Then
        begin{enumerate}[label=(roman*)]
        item If $rho^1$ and $rho^2$ are not isomorphic then we have $h^0=0$
        item If $V_1 = V_2$ and $rho^1 = rho^2$, $h^0$ is a scalar multiple of the identity,
        the scalar being $frac{1}{n} Tr(h)$ where $n = dim(V_1)$
        end{enumerate}

        end{document}


        The code has already been presented in https://tex.stackexchange.com/a/135985/4427 and provides a full replacement of commath, avoiding all its weaknesses. If you're tied to commath because you use its macros and features in other places, this can save you. Otherwise define abs with DeclarePairedDelimiter as suggested by Mico.



        For instance, you can notice the reduced space between “where” and “|G|” in the commath version.



        enter image description here



        You should define anyway an operator name for “Tr”.



        If you decide to go for this, save the part between



        % begin definitions for a "better commath"


        and



        % end of the definitions


        in a file called bettercommath.sty in the working directory and do usepackage{bettercommath}.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        egregegreg

        733k8919313254




        733k8919313254






























            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%2f483944%2ffractional-alignment%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

            Statuo de Libereco

            Tanganjiko

            Liste der Baudenkmäler in Enneberg