How can I display numbers like 2 over 2, but not have them as fractions?












3















I want to show how to simplify a fraction. Something like simplyfy 27/18 by dividing the top and bottom by 9. But I don't want to show the 9 on the top and bottom as the fraction 9/9. Is there a way?










share|improve this question







New contributor




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





















  • What have you tried? What do you want, in a quick sketch?

    – JouleV
    5 hours ago











  • Also, how do you want the stack aligned, vertically, and horizontally?

    – Steven B. Segletes
    4 hours ago











  • With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

    – Teepeemm
    3 hours ago
















3















I want to show how to simplify a fraction. Something like simplyfy 27/18 by dividing the top and bottom by 9. But I don't want to show the 9 on the top and bottom as the fraction 9/9. Is there a way?










share|improve this question







New contributor




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





















  • What have you tried? What do you want, in a quick sketch?

    – JouleV
    5 hours ago











  • Also, how do you want the stack aligned, vertically, and horizontally?

    – Steven B. Segletes
    4 hours ago











  • With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

    – Teepeemm
    3 hours ago














3












3








3


1






I want to show how to simplify a fraction. Something like simplyfy 27/18 by dividing the top and bottom by 9. But I don't want to show the 9 on the top and bottom as the fraction 9/9. Is there a way?










share|improve this question







New contributor




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












I want to show how to simplify a fraction. Something like simplyfy 27/18 by dividing the top and bottom by 9. But I don't want to show the 9 on the top and bottom as the fraction 9/9. Is there a way?







fractions






share|improve this question







New contributor




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











share|improve this question







New contributor




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









share|improve this question




share|improve this question






New contributor




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









asked 5 hours ago









user187635user187635

161




161




New contributor




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





New contributor





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






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













  • What have you tried? What do you want, in a quick sketch?

    – JouleV
    5 hours ago











  • Also, how do you want the stack aligned, vertically, and horizontally?

    – Steven B. Segletes
    4 hours ago











  • With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

    – Teepeemm
    3 hours ago



















  • What have you tried? What do you want, in a quick sketch?

    – JouleV
    5 hours ago











  • Also, how do you want the stack aligned, vertically, and horizontally?

    – Steven B. Segletes
    4 hours ago











  • With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

    – Teepeemm
    3 hours ago

















What have you tried? What do you want, in a quick sketch?

– JouleV
5 hours ago





What have you tried? What do you want, in a quick sketch?

– JouleV
5 hours ago













Also, how do you want the stack aligned, vertically, and horizontally?

– Steven B. Segletes
4 hours ago





Also, how do you want the stack aligned, vertically, and horizontally?

– Steven B. Segletes
4 hours ago













With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

– Teepeemm
3 hours ago





With amsmath, you can use the genfrac command, as in tex.stackexchange.com/q/80497/107497

– Teepeemm
3 hours ago










2 Answers
2






active

oldest

votes


















3














documentclass{article}
usepackage{stackengine}
stackMath
newcommanddivby[1]{%
setstackgap{L}{1.1baselineskip}%
renewcommandstacktype{L}%
stackanchor{div#1}{div#1}%
}
begin{document}
[
frac{27}{18}divby{9} = frac{3}{2}
]
end{document}


enter image description here






share|improve this answer































    1














    With not too prominent divisors:



    documentclass{article}
    usepackage{amsmath,mathtools}

    newcommand{fracdiv}[3]{%
    frac{#1mathrlap{scriptstylediv#3}}
    {#2mathrlap{scriptstylediv#3}}%
    hphantom{scriptstylediv#3}%
    }

    begin{document}

    [
    fracdiv{27}{18}{9}=frac{3}{2}
    ]

    end{document}


    enter image description here






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


      }
      });






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










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487794%2fhow-can-i-display-numbers-like-2-over-2-but-not-have-them-as-fractions%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









      3














      documentclass{article}
      usepackage{stackengine}
      stackMath
      newcommanddivby[1]{%
      setstackgap{L}{1.1baselineskip}%
      renewcommandstacktype{L}%
      stackanchor{div#1}{div#1}%
      }
      begin{document}
      [
      frac{27}{18}divby{9} = frac{3}{2}
      ]
      end{document}


      enter image description here






      share|improve this answer




























        3














        documentclass{article}
        usepackage{stackengine}
        stackMath
        newcommanddivby[1]{%
        setstackgap{L}{1.1baselineskip}%
        renewcommandstacktype{L}%
        stackanchor{div#1}{div#1}%
        }
        begin{document}
        [
        frac{27}{18}divby{9} = frac{3}{2}
        ]
        end{document}


        enter image description here






        share|improve this answer


























          3












          3








          3







          documentclass{article}
          usepackage{stackengine}
          stackMath
          newcommanddivby[1]{%
          setstackgap{L}{1.1baselineskip}%
          renewcommandstacktype{L}%
          stackanchor{div#1}{div#1}%
          }
          begin{document}
          [
          frac{27}{18}divby{9} = frac{3}{2}
          ]
          end{document}


          enter image description here






          share|improve this answer













          documentclass{article}
          usepackage{stackengine}
          stackMath
          newcommanddivby[1]{%
          setstackgap{L}{1.1baselineskip}%
          renewcommandstacktype{L}%
          stackanchor{div#1}{div#1}%
          }
          begin{document}
          [
          frac{27}{18}divby{9} = frac{3}{2}
          ]
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          Steven B. SegletesSteven B. Segletes

          163k9208421




          163k9208421























              1














              With not too prominent divisors:



              documentclass{article}
              usepackage{amsmath,mathtools}

              newcommand{fracdiv}[3]{%
              frac{#1mathrlap{scriptstylediv#3}}
              {#2mathrlap{scriptstylediv#3}}%
              hphantom{scriptstylediv#3}%
              }

              begin{document}

              [
              fracdiv{27}{18}{9}=frac{3}{2}
              ]

              end{document}


              enter image description here






              share|improve this answer




























                1














                With not too prominent divisors:



                documentclass{article}
                usepackage{amsmath,mathtools}

                newcommand{fracdiv}[3]{%
                frac{#1mathrlap{scriptstylediv#3}}
                {#2mathrlap{scriptstylediv#3}}%
                hphantom{scriptstylediv#3}%
                }

                begin{document}

                [
                fracdiv{27}{18}{9}=frac{3}{2}
                ]

                end{document}


                enter image description here






                share|improve this answer


























                  1












                  1








                  1







                  With not too prominent divisors:



                  documentclass{article}
                  usepackage{amsmath,mathtools}

                  newcommand{fracdiv}[3]{%
                  frac{#1mathrlap{scriptstylediv#3}}
                  {#2mathrlap{scriptstylediv#3}}%
                  hphantom{scriptstylediv#3}%
                  }

                  begin{document}

                  [
                  fracdiv{27}{18}{9}=frac{3}{2}
                  ]

                  end{document}


                  enter image description here






                  share|improve this answer













                  With not too prominent divisors:



                  documentclass{article}
                  usepackage{amsmath,mathtools}

                  newcommand{fracdiv}[3]{%
                  frac{#1mathrlap{scriptstylediv#3}}
                  {#2mathrlap{scriptstylediv#3}}%
                  hphantom{scriptstylediv#3}%
                  }

                  begin{document}

                  [
                  fracdiv{27}{18}{9}=frac{3}{2}
                  ]

                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 43 mins ago









                  egregegreg

                  737k8919373265




                  737k8919373265






















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










                      draft saved

                      draft discarded


















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













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












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
















                      Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487794%2fhow-can-i-display-numbers-like-2-over-2-but-not-have-them-as-fractions%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

                      What are all the squawk codes?

                      What are differences between VBoxVGA, VMSVGA and VBoxSVGA in VirtualBox?

                      Hudsonelva