Which package defines smash?












15















I sometimes see smash used to control local vertical alignment. Which package defines it?










share|improve this question


















  • 3





    To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

    – Roly
    Apr 16 '14 at 7:28






  • 5





    amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

    – egreg
    Apr 16 '14 at 9:50
















15















I sometimes see smash used to control local vertical alignment. Which package defines it?










share|improve this question


















  • 3





    To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

    – Roly
    Apr 16 '14 at 7:28






  • 5





    amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

    – egreg
    Apr 16 '14 at 9:50














15












15








15


3






I sometimes see smash used to control local vertical alignment. Which package defines it?










share|improve this question














I sometimes see smash used to control local vertical alignment. Which package defines it?







vertical-alignment






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 16 '14 at 7:23









RolyRoly

1,56441534




1,56441534








  • 3





    To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

    – Roly
    Apr 16 '14 at 7:28






  • 5





    amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

    – egreg
    Apr 16 '14 at 9:50














  • 3





    To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

    – Roly
    Apr 16 '14 at 7:28






  • 5





    amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

    – egreg
    Apr 16 '14 at 9:50








3




3





To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

– Roly
Apr 16 '14 at 7:28





To clarify: Googling for "latex which package defines smash" might lead one to suspect amsmath or mathtools as the answer. So, one reason for asking this question is to generate a reliable search result for future reference. Plus I still haven't worked it out myself yet :)

– Roly
Apr 16 '14 at 7:28




5




5





amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

– egreg
Apr 16 '14 at 9:50





amsmath redefines smash to accept an optional argument in order to be able to smash only the height or the depth of the box.

– egreg
Apr 16 '14 at 9:50










2 Answers
2






active

oldest

votes


















16














smash is a macro defined in both plain TeX and the LaTeX kernel.



You don't need to load any package to use it.






share|improve this answer

































    19














    The smash command is active by default. No package needed.



    % arara: pdflatex

    documentclass{article}
    begin{document}
    xxx
    fbox{rule{1cm}{2cm}}
    fbox{rule[-1cm]{1cm}{2cm}}
    fbox{smash{rule{1cm}{2cm}}}
    fbox{smash{rule[-1cm]{1cm}{2cm}}}
    fbox{raisebox{0pt}[0pt][0pt]{rule[-1cm]{1cm}{2cm}}}
    fbox{raisebox{-1cm}[0pt][0pt]{rule{1cm}{2cm}}}
    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
      });


      }
      });














      draft saved

      draft discarded


















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









      16














      smash is a macro defined in both plain TeX and the LaTeX kernel.



      You don't need to load any package to use it.






      share|improve this answer






























        16














        smash is a macro defined in both plain TeX and the LaTeX kernel.



        You don't need to load any package to use it.






        share|improve this answer




























          16












          16








          16







          smash is a macro defined in both plain TeX and the LaTeX kernel.



          You don't need to load any package to use it.






          share|improve this answer















          smash is a macro defined in both plain TeX and the LaTeX kernel.



          You don't need to load any package to use it.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 10 '16 at 15:28









          cgogolin

          609511




          609511










          answered Apr 16 '14 at 7:30









          TeXtnikTeXtnik

          3,38112138




          3,38112138























              19














              The smash command is active by default. No package needed.



              % arara: pdflatex

              documentclass{article}
              begin{document}
              xxx
              fbox{rule{1cm}{2cm}}
              fbox{rule[-1cm]{1cm}{2cm}}
              fbox{smash{rule{1cm}{2cm}}}
              fbox{smash{rule[-1cm]{1cm}{2cm}}}
              fbox{raisebox{0pt}[0pt][0pt]{rule[-1cm]{1cm}{2cm}}}
              fbox{raisebox{-1cm}[0pt][0pt]{rule{1cm}{2cm}}}
              end{document}


              enter image description here






              share|improve this answer




























                19














                The smash command is active by default. No package needed.



                % arara: pdflatex

                documentclass{article}
                begin{document}
                xxx
                fbox{rule{1cm}{2cm}}
                fbox{rule[-1cm]{1cm}{2cm}}
                fbox{smash{rule{1cm}{2cm}}}
                fbox{smash{rule[-1cm]{1cm}{2cm}}}
                fbox{raisebox{0pt}[0pt][0pt]{rule[-1cm]{1cm}{2cm}}}
                fbox{raisebox{-1cm}[0pt][0pt]{rule{1cm}{2cm}}}
                end{document}


                enter image description here






                share|improve this answer


























                  19












                  19








                  19







                  The smash command is active by default. No package needed.



                  % arara: pdflatex

                  documentclass{article}
                  begin{document}
                  xxx
                  fbox{rule{1cm}{2cm}}
                  fbox{rule[-1cm]{1cm}{2cm}}
                  fbox{smash{rule{1cm}{2cm}}}
                  fbox{smash{rule[-1cm]{1cm}{2cm}}}
                  fbox{raisebox{0pt}[0pt][0pt]{rule[-1cm]{1cm}{2cm}}}
                  fbox{raisebox{-1cm}[0pt][0pt]{rule{1cm}{2cm}}}
                  end{document}


                  enter image description here






                  share|improve this answer













                  The smash command is active by default. No package needed.



                  % arara: pdflatex

                  documentclass{article}
                  begin{document}
                  xxx
                  fbox{rule{1cm}{2cm}}
                  fbox{rule[-1cm]{1cm}{2cm}}
                  fbox{smash{rule{1cm}{2cm}}}
                  fbox{smash{rule[-1cm]{1cm}{2cm}}}
                  fbox{raisebox{0pt}[0pt][0pt]{rule[-1cm]{1cm}{2cm}}}
                  fbox{raisebox{-1cm}[0pt][0pt]{rule{1cm}{2cm}}}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 16 '14 at 7:31









                  LaRiFaRiLaRiFaRi

                  35.8k246122




                  35.8k246122






























                      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%2f171776%2fwhich-package-defines-smash%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

                      How to send String Array data to Server using php in android

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Is anime1.com a legal site for watching anime?