summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/latex2e-html/ltx-265.html
blob: d4d1b8a3a8d18a79dc5b90035a83efa5ea63aab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
<head><title>Help On LaTeX \mbox</title></head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">\mbox</font></h1>
<p>
 <tt>\mbox{text}</tt>
<p>

 The <tt>\mbox</tt>  command  creates  a box just wide enough  to hold  the 
 <tt>text</tt> in its argument. The <tt>text</tt> in the box is in LR 
 <a href="ltx-130.html">mode</a> which prevents it from being broken across
 lines.
<p>
 The <a href="ltx-262.html"><tt>\makebox</tt></a> command is similar 
 except that it allows you to specify a width which is not necessarily
 the natural width of the <tt>text</tt> and also to specify the placement
 within the box.
<p>
An <tt>\mbox</tt> within <a href="ltx-130.html">math mode</a> does 
<strong>not</strong> use the current <a href="mathfonts.html">math font</a>;
rather it uses the <a href="ltx-176.html">typeface</a> of the surrounding
running text.
<p>
The <tt>\mbox</tt> command is <a href="fragile.html">robust</a>.
<hr>
See  <a href="ltx-226.html"><tt>\fbox</tt></a>,
  <a href="ltx-262.html"><tt>\makebox</tt></a><br>
See also <A href="ltx-143.html">Spaces and Boxes</A><br>
Return to <a href="ltx-2.html">LaTeX Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 8 Aug 1995.
</address>
</body>
</html>