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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- XML file produced from file: manual.tex
using Hyperlatex v 2.6 (c) Otfried Cheong
on Emacs 21.3.1, Mon Nov 22 10:30:49 2004 -->
<head>
<title>Ipe Manual -- 5.2 Text objects</title>
<style type="text/css">
.maketitle { align : center }
div.abstract { margin-left: 20%; margin-right: 10%; }
h3.abstract { align : center }
div.verse, div.quote, div.quotation {
margin-left : 10%;
margin-right : 10%;
}
</style>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffe6">
<table width="100%" cellpadding=0 cellspacing=2><tr><td bgcolor="#99ccff"><a href="manual_18.html"><img border="0" alt="5.3 Mark objects" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_15.html"><img border="0" alt="5 Object types" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_16.html"><img border="0" alt="5.1 Path objects" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>5.2 Text objects</b></td></tr></table>
<h2>5.2 Text objects</h2>
<p>
Text objects come in two flavors: simple <em>labels</em>, and
<em>minipages</em>. There are two variants of these: <em>titles</em> (a
label that serves as the title of the page), and <em>textbox</em> (a
minipage that spans the entire width of the page).
<p>The position you have to click to start creating a <em>label</em> object
is the lower left corner of the piece of text. A popup window appears
where you can enter Latex source code.
<p>A <em>minipage</em> object is different from a simple text object in
that its width is part of its definition. When you create a minipage
object, you first have to drag out a horizontal segment for the
minipage. This is used as the top edge of the minipage--it will
extend downwards as far as necessary to accomodate all the text.
Minipages are formatted using, not surprisingly, Latex's
<code>minipage</code> environment. Latex tries to fill the given bounding
box as nicely as possible. It is possible to include center
environments, lemmas, and much more in minipages.
<p>To create a <em>textbox</em> object, simply press "F10". Ipe
automatically places the object so that it spans the entire width of
the page (the <em>margins</em> settings in the style sheet determine how
much space is left on the sides), and places it vertically underneath
the textboxes already on the page. This is particularly convenient
for creating presentations with a lot of text, or with items that
appear <a href="manual_29.html">one by one</a>.
<p>(<em>Title</em> objects are not yet supported.)
<p>You can use any LaTeX-command that is legal inside a
<code>\makebox</code> (for labels) or inside a <code>minipage</code> (for
minipages). You cannot use commands that involve a non-linear
translation into PDF, such as commands to generate hyperlinks or to
include external images.
<p>You can use color in your text objects, using the <code>\textcolor</code>
command, like this:
<pre>
This is in black. \textcolor{red}{This is in red.} This is in black.
</pre>
All the symbolic colors of your current style sheet are also available
as arguments to <code>\textcolor</code>. You can also use absolute colors,
for instance:
<pre>
This is in black. \textcolor[rgb]{1,1,0}{This is in yellow.} This is in black.
</pre>
<p><a name="id1">
If</A> you need LaTeX-commands that are defined in additional LaTeX
packages, you can include (<code>\usepackage</code>) those in the LaTeX
preamble, which can be set in <em>Document properties</em> in the
<em>Edit</em> menu.
<p>After you have created or edited a text object, the Ipe screen display
will show the beginning of the Latex source. You can select <em>Run
Latex</em> from the <em>File</em> menu to create the PDF/Postscript
representation of the object. This converts all the text objects in
your document at once, and Ipe will display a correct rendition of the
text afterwards.
<p>If the Latex conversion process results in errors, Ipe will
automatically show you the log file created by the Latex run. If you
cannot figure out the problem, look in <a href="manual_31.html">the section on
troubleshooting</a>.
<p>You can use Unicode text, such as accented characters, Greek,
Cyrillic, Chinese, Japanese, or Korean, in your text objects, once
<a href="manual_33.html">you have set up the necessary style files and
fonts</a>.
<hr />
<table width="100%" cellpadding=0 cellspacing=2><tr><td bgcolor="#99ccff"><a href="manual_18.html"><img border="0" alt="5.3 Mark objects" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_15.html"><img border="0" alt="5 Object types" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_16.html"><img border="0" alt="5.1 Path objects" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>5.2 Text objects</b></td></tr></table></body></html>
|