Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 3919

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>Wrap -- a key for methods for wrapping printed output</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_wrap.html">next</a> | <a href="___Wikipedia_lp__String_rp.html">previous</a> | <a href="_wrap.html">forward</a> | <a href="___Wikipedia_lp__String_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>Wrap -- a key for methods for wrapping printed output</h1>
<div class="single"><h2>Description</h2>
<div>The default method for printing results of computations (stored in <tt>Thing#{Standard,Print}</tt>) searches for a method for wrapping the output by search in the class of the result (and its ancestors) for a function stored under the key <tt>Wrap</tt>.  The preinstalled wrapping methods use <a href="_wrap.html" title="">wrap</a>, they differ in their choice of separator between wrapped lines, or in whether to wrap at all.<table class="examples"><tr><td><pre>i1 : QQ[x_0 .. x_40 ]

o1 = QQ[x , x , x , x , x , x , x , x , x , x , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  ]
         0   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   36   37   38   39   40

o1 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i2 : concatenate(50:"abcd ")

o2 = abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Wrap.html" title="a key for methods for wrapping printed output">Wrap</a> is <span>a <a href="___Symbol.html">symbol</a></span>.</p>
</div>
</div>
</body>
</html>