Which package defines smash?
I sometimes see smash used to control local vertical alignment. Which package defines it?
vertical-alignment
add a comment |
I sometimes see smash used to control local vertical alignment. Which package defines it?
vertical-alignment
3
To clarify: Googling for "latex which package defines smash" might lead one to suspectamsmathormathtoolsas 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
amsmathredefinessmashto 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
add a comment |
I sometimes see smash used to control local vertical alignment. Which package defines it?
vertical-alignment
I sometimes see smash used to control local vertical alignment. Which package defines it?
vertical-alignment
vertical-alignment
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 suspectamsmathormathtoolsas 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
amsmathredefinessmashto 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
add a comment |
3
To clarify: Googling for "latex which package defines smash" might lead one to suspectamsmathormathtoolsas 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
amsmathredefinessmashto 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
add a comment |
2 Answers
2
active
oldest
votes
smash is a macro defined in both plain TeX and the LaTeX kernel.
You don't need to load any package to use it.
add a comment |
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}

add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
smash is a macro defined in both plain TeX and the LaTeX kernel.
You don't need to load any package to use it.
add a comment |
smash is a macro defined in both plain TeX and the LaTeX kernel.
You don't need to load any package to use it.
add a comment |
smash is a macro defined in both plain TeX and the LaTeX kernel.
You don't need to load any package to use it.
smash is a macro defined in both plain TeX and the LaTeX kernel.
You don't need to load any package to use it.
edited Mar 10 '16 at 15:28
cgogolin
609511
609511
answered Apr 16 '14 at 7:30
TeXtnikTeXtnik
3,38112138
3,38112138
add a comment |
add a comment |
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}

add a comment |
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}

add a comment |
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}

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}

answered Apr 16 '14 at 7:31
LaRiFaRiLaRiFaRi
35.8k246122
35.8k246122
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
3
To clarify: Googling for "latex which package defines smash" might lead one to suspect
amsmathormathtoolsas 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
amsmathredefinessmashto 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