hbox mbox difference … what they do? [duplicate]
This question already has an answer here:
What are the different kinds of boxes in (La)TeX?
1 answer
What is the difference between hbox
and mbox
?
What are these commands intended to do?
I cannot see what they do from my code alone without a word explanation...
boxes
marked as duplicate by egreg
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 15 at 16:48
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
What are the different kinds of boxes in (La)TeX?
1 answer
What is the difference between hbox
and mbox
?
What are these commands intended to do?
I cannot see what they do from my code alone without a word explanation...
boxes
marked as duplicate by egreg
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 15 at 16:48
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
1
Anmbox
leaves vertical mode before invoking anhbox
(seemeaningmbox
). I'm sure someone can point out when that makes a difference.
– Steven B. Segletes
Feb 15 at 16:51
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
1
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52
add a comment |
This question already has an answer here:
What are the different kinds of boxes in (La)TeX?
1 answer
What is the difference between hbox
and mbox
?
What are these commands intended to do?
I cannot see what they do from my code alone without a word explanation...
boxes
This question already has an answer here:
What are the different kinds of boxes in (La)TeX?
1 answer
What is the difference between hbox
and mbox
?
What are these commands intended to do?
I cannot see what they do from my code alone without a word explanation...
This question already has an answer here:
What are the different kinds of boxes in (La)TeX?
1 answer
boxes
boxes
edited Feb 15 at 16:47
Phelype Oleinik
23.5k54586
23.5k54586
asked Feb 15 at 16:44
user2925716user2925716
1645
1645
marked as duplicate by egreg
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 15 at 16:48
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by egreg
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 15 at 16:48
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
1
Anmbox
leaves vertical mode before invoking anhbox
(seemeaningmbox
). I'm sure someone can point out when that makes a difference.
– Steven B. Segletes
Feb 15 at 16:51
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
1
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52
add a comment |
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
1
Anmbox
leaves vertical mode before invoking anhbox
(seemeaningmbox
). I'm sure someone can point out when that makes a difference.
– Steven B. Segletes
Feb 15 at 16:51
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
1
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
1
1
An
mbox
leaves vertical mode before invoking an hbox
(see meaningmbox
). I'm sure someone can point out when that makes a difference.– Steven B. Segletes
Feb 15 at 16:51
An
mbox
leaves vertical mode before invoking an hbox
(see meaningmbox
). I'm sure someone can point out when that makes a difference.– Steven B. Segletes
Feb 15 at 16:51
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
1
1
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52
add a comment |
1 Answer
1
active
oldest
votes
As mentioned in a comment, mbox
leaves vertical mode before employing an hbox
. But the question also seemed to encompass "what is a box"?
So, this answer tries to answer both issues. The first three examples compare boxed text to unboxed text. The last example addresses when leaving vertical mode makes a difference.
documentclass{article}
usepackage[T1]{fontenc}
usepackage{lmodern}
parindent0pt
begin{document}
Mbox Meaning: meaningmbox
hrulefill
textbf{BOXES ARE UNBREAKABLE}
This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.
mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}
hrulefill
textbf{BOXES ARE UNHYPHENATABLE}
This is a texting piece of text. This is texting piece of text.
This is an hyphenatable piece of text.
This is a texting piece of text. This is texting piece of text.
This is an mbox{hyphenatable} piece of text.
hrulefill
textbf{BOXES ARE UNSTRETCHABLE}
This is a texting piece of text. This is the texting piece of text.
This is a texting piece of text.
This is a texting mbox{piece of text. This is the texting piece of text.}
This is a texting piece of text.
hrulefill
textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}
parskip 1ex
blah
mbox{Regular line space with mbox}
hbox{Irregular line space with hbox}
blah
end{document}
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (anhbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.
– Steven B. Segletes
Feb 16 at 17:51
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As mentioned in a comment, mbox
leaves vertical mode before employing an hbox
. But the question also seemed to encompass "what is a box"?
So, this answer tries to answer both issues. The first three examples compare boxed text to unboxed text. The last example addresses when leaving vertical mode makes a difference.
documentclass{article}
usepackage[T1]{fontenc}
usepackage{lmodern}
parindent0pt
begin{document}
Mbox Meaning: meaningmbox
hrulefill
textbf{BOXES ARE UNBREAKABLE}
This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.
mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}
hrulefill
textbf{BOXES ARE UNHYPHENATABLE}
This is a texting piece of text. This is texting piece of text.
This is an hyphenatable piece of text.
This is a texting piece of text. This is texting piece of text.
This is an mbox{hyphenatable} piece of text.
hrulefill
textbf{BOXES ARE UNSTRETCHABLE}
This is a texting piece of text. This is the texting piece of text.
This is a texting piece of text.
This is a texting mbox{piece of text. This is the texting piece of text.}
This is a texting piece of text.
hrulefill
textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}
parskip 1ex
blah
mbox{Regular line space with mbox}
hbox{Irregular line space with hbox}
blah
end{document}
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (anhbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.
– Steven B. Segletes
Feb 16 at 17:51
add a comment |
As mentioned in a comment, mbox
leaves vertical mode before employing an hbox
. But the question also seemed to encompass "what is a box"?
So, this answer tries to answer both issues. The first three examples compare boxed text to unboxed text. The last example addresses when leaving vertical mode makes a difference.
documentclass{article}
usepackage[T1]{fontenc}
usepackage{lmodern}
parindent0pt
begin{document}
Mbox Meaning: meaningmbox
hrulefill
textbf{BOXES ARE UNBREAKABLE}
This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.
mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}
hrulefill
textbf{BOXES ARE UNHYPHENATABLE}
This is a texting piece of text. This is texting piece of text.
This is an hyphenatable piece of text.
This is a texting piece of text. This is texting piece of text.
This is an mbox{hyphenatable} piece of text.
hrulefill
textbf{BOXES ARE UNSTRETCHABLE}
This is a texting piece of text. This is the texting piece of text.
This is a texting piece of text.
This is a texting mbox{piece of text. This is the texting piece of text.}
This is a texting piece of text.
hrulefill
textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}
parskip 1ex
blah
mbox{Regular line space with mbox}
hbox{Irregular line space with hbox}
blah
end{document}
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (anhbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.
– Steven B. Segletes
Feb 16 at 17:51
add a comment |
As mentioned in a comment, mbox
leaves vertical mode before employing an hbox
. But the question also seemed to encompass "what is a box"?
So, this answer tries to answer both issues. The first three examples compare boxed text to unboxed text. The last example addresses when leaving vertical mode makes a difference.
documentclass{article}
usepackage[T1]{fontenc}
usepackage{lmodern}
parindent0pt
begin{document}
Mbox Meaning: meaningmbox
hrulefill
textbf{BOXES ARE UNBREAKABLE}
This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.
mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}
hrulefill
textbf{BOXES ARE UNHYPHENATABLE}
This is a texting piece of text. This is texting piece of text.
This is an hyphenatable piece of text.
This is a texting piece of text. This is texting piece of text.
This is an mbox{hyphenatable} piece of text.
hrulefill
textbf{BOXES ARE UNSTRETCHABLE}
This is a texting piece of text. This is the texting piece of text.
This is a texting piece of text.
This is a texting mbox{piece of text. This is the texting piece of text.}
This is a texting piece of text.
hrulefill
textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}
parskip 1ex
blah
mbox{Regular line space with mbox}
hbox{Irregular line space with hbox}
blah
end{document}
As mentioned in a comment, mbox
leaves vertical mode before employing an hbox
. But the question also seemed to encompass "what is a box"?
So, this answer tries to answer both issues. The first three examples compare boxed text to unboxed text. The last example addresses when leaving vertical mode makes a difference.
documentclass{article}
usepackage[T1]{fontenc}
usepackage{lmodern}
parindent0pt
begin{document}
Mbox Meaning: meaningmbox
hrulefill
textbf{BOXES ARE UNBREAKABLE}
This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.
mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}
hrulefill
textbf{BOXES ARE UNHYPHENATABLE}
This is a texting piece of text. This is texting piece of text.
This is an hyphenatable piece of text.
This is a texting piece of text. This is texting piece of text.
This is an mbox{hyphenatable} piece of text.
hrulefill
textbf{BOXES ARE UNSTRETCHABLE}
This is a texting piece of text. This is the texting piece of text.
This is a texting piece of text.
This is a texting mbox{piece of text. This is the texting piece of text.}
This is a texting piece of text.
hrulefill
textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}
parskip 1ex
blah
mbox{Regular line space with mbox}
hbox{Irregular line space with hbox}
blah
end{document}
edited Feb 15 at 18:06
answered Feb 15 at 17:44
Steven B. SegletesSteven B. Segletes
156k9202411
156k9202411
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (anhbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.
– Steven B. Segletes
Feb 16 at 17:51
add a comment |
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (anhbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.
– Steven B. Segletes
Feb 16 at 17:51
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
I actually do not understand what difference makes leaving vertical mode in this example: textbf{WHEN LEAVING VERTICAL MODE MAKES A DIFFERENCE}...
– user2925716
Feb 16 at 17:43
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (an
hbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.– Steven B. Segletes
Feb 16 at 17:51
@user2925716 The vertical gap above the line "Irregular line space..." is less than a normal paragaph break. Why? Because that line (an
hbox
) was set in vertical mode, so all the close-out-the-one-paragraph-and-begin-the-next-paragraph instructions were never executed.– Steven B. Segletes
Feb 16 at 17:51
add a comment |
Possible duplicate: What are the different kinds of boxes in (La)TeX?
– Werner
Feb 15 at 16:46
1
An
mbox
leaves vertical mode before invoking anhbox
(seemeaningmbox
). I'm sure someone can point out when that makes a difference.– Steven B. Segletes
Feb 15 at 16:51
What they do is set text in a horizontal box. A box cannot be broken in the middle. So they can be used to prevent breaking up a text across lines. Also, glue (compressible/expandable space used to meet margin requirements) will not be active inside a box
– Steven B. Segletes
Feb 15 at 16:59
1
I was actually asking right about this, now upvoted comment. No one is able to expalin to me what is the difference between mbox and hbox. Can you, please?? Or at least give me a link. Even the marking duplicate link doesn't address this question! How can I examine meaningmbox ? It cannot be clicked into this.
– user2925716
Feb 15 at 17:38
@user2925716: There is a discussion in the linked answer about what each box does.
– Werner
Feb 15 at 17:52