<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <META name="GENERATOR" content="hevea 1.10"> <META name="Author" content="Luc Maranget"> <LINK rel="stylesheet" type="text/css" href="manual.css"> <TITLE>Lengths, Spaces and Boxes</TITLE> </HEAD> <BODY > <A HREF="manual034.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A> <A HREF="manual022.html"><IMG SRC="contents_motif.gif" ALT="Up"></A> <A HREF="manual036.html"><IMG SRC="next_motif.gif" ALT="Next"></A> <HR> <H2 CLASS="section"><A NAME="htoc111">B.13</A>  Lengths, Spaces and Boxes</H2><UL> <LI><A HREF="manual035.html#toc87">Length</A> </LI><LI><A HREF="manual035.html#toc88">Space</A> </LI><LI><A HREF="manual035.html#toc89">Boxes</A> </LI></UL> <H3 CLASS="subsection"><A NAME="toc87"></A><A NAME="htoc112">B.13.1</A>  Length</H3><P>All length commands are ignored, things go smoothly when L<sup>A</sup>T<sub>E</sub>X syntax is used (using the <CODE>\newlength</CODE>, <CODE>\setlength</CODE>, etc. commands, which are null macros). Of course, if lengths are really important to the document, rendering will be poor.</P><P>Note that T<sub>E</sub>X length syntax is not at all recognized. As a consequence, writing things like <CODE>\textwidth=10cm</CODE> will clobber the output. Users can correct such misbehavior by adopting L<sup>A</sup>T<sub>E</sub>X syntax, here they should write <CODE>\setlength{\textwidth}{10cm}</CODE>.</P><H3 CLASS="subsection"><A NAME="toc88"></A><A NAME="htoc113">B.13.2</A>  Space</H3><P> The <CODE>\hspace</CODE>, <CODE>\vspace</CODE> and <CODE>\addvspace</CODE> spacing commands and their starred versions recognize positive explicit length arguments. Such arguments get converted to a number of non-breaking spaces or line breaks. Basically, the value of <CODE>1em</CODE> or <CODE>1ex</CODE> is one space or one line-break. For other length units, a simple conversion based upon a 10pt font is used.</P><P>H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A cannot interpret more complicated length arguments or perform negative spacing. In these situations, a warning is issued and no output is done.</P><P>Spacing commands without arguments are recognized. The <CODE>\enspace</CODE>, <CODE>\quad</CODE> and <CODE>\qquad</CODE> commands output one, two and four non-breaking spaces, while the <CODE>\smallskip</CODE>, <CODE>\medskip</CODE> and <CODE>\bigskip</CODE> output one, one, and two line breaks.</P><P>Stretchable lengths do not exist, thus the <CODE>\hfill</CODE> and <CODE>\vfill</CODE> macros are undefined.</P><H3 CLASS="subsection"><A NAME="toc89"></A><A NAME="htoc114">B.13.3</A>  Boxes</H3><P>Box contents is typeset in text mode (<EM>i.e.</EM> non-math and non-display mode). Both L<sup>A</sup>T<sub>E</sub>X boxing commands <CODE>\mbox</CODE> and <CODE>\makebox</CODE> commands exist. However <CODE>\makebox</CODE> generates a specific warning, since H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A ignore the length and positioning instructions given as optional argument.</P><P>Similarly, the boxing with frame <CODE>\fbox</CODE> and <CODE>\framebox</CODE> commands are recognized and <CODE>\framebox</CODE> issues a warning. When in display mode, <CODE>\fbox</CODE> frames its argument by enclosing it in a table with borders. Otherwise, <CODE>\fbox</CODE> calls the <CODE>\textfbox</CODE> command, which issues a warning and typesets its argument inside a <CODE>\mbox</CODE> (and thus no frame is drawn). Users can alter the behavior of <CODE>\fbox</CODE> in non-display mode by redefining <CODE>\textfbox</CODE>.</P><P>Boxes can be saved for latter usage by storing them in <EM>bins</EM>. New bins are defined by <CODE>\newsavebox{</CODE><I>cmd</I><CODE>}</CODE>.</P><P>Then some text can be saved into <I>cmd</I> by <CODE>\sbox{</CODE><I>cmd</I><CODE>}{</CODE><I>text</I><CODE>}</CODE> or <CODE>\begin{lrbox}{</CODE><I>cmd</I><CODE>}</CODE> <I>text</I> <CODE>\end{lrbox}</CODE>. The text is translated to HTML, as if it was inside a <CODE>\mbox</CODE> and the resulting output is stored. It is retrieved (and outputed) by the command <CODE>\usebox{</CODE><I>cmd</I><CODE>}</CODE>. The <CODE>\savebox</CODE> command reduces to <CODE>\sbox</CODE>, ignoring its optional arguments.</P><P>The <CODE>\rule</CODE> commands translate to a HTML horizontal rule (<CODE><HR></CODE>) regardless of its arguments.</P><P>All other box-related commands do not exist.</P><HR> <A HREF="manual034.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A> <A HREF="manual022.html"><IMG SRC="contents_motif.gif" ALT="Up"></A> <A HREF="manual036.html"><IMG SRC="next_motif.gif" ALT="Next"></A> </BODY> </HTML>