blob: 0b3f34506b1a720285e052be120b51fcdedcc074 (
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 \savebox</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">\savebox</font></h1>
<p>
<tt>\sbox{cmd}{text}</tt><br>
<tt>\savebox{cmd}[width][pos]{text}</tt>
<p>
These commands typeset <tt>text</tt> in a box just as for
<a href="ltx-265.html"><tt>\mbox</tt></a> or
<a href="ltx-262.html"><tt>\makebox</tt></a>.
However, instead of printing the resulting box, they save it in
the LaTeX command
<tt>cmd</tt>, which must have been declared with
<a href="ltx-277.html"><tt>\newsavebox</tt></a>.
The saved <tt>text</tt> is accessed by a
<a href="ltx-337.html"><tt>\usebox</tt></a> command.
<p>
The <tt>\sbox</tt> and <tt>\savebox</tt> commands are
<a href="declarations.html">declarations</a> with the usual
rules for scope.
<p>
The <tt>\sbox</tt> command is <a href="fragile.html">robust</a>;
the <tt>\savebox</tt> command is <a href="fragile.html">fragile</a>.
<hr>
See <a href="ltx-143.html">Spaces and Boxes</a><br>
See <a href="ltx-277.html"><tt>\newsavebox</tt></a>,
<a href="ltx-337.html"><tt>\usebox</tt></a><br>
Back to the <a href="ltx-2.html">Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 15 Aug 1995.
</address>
</body>
</html>
|