~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to build/doc/manual_33.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-12-11 21:22:35 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091211212235-5iio4nzpra64snab
Tags: 7.0.10-1
* New upstream.  Closes: #551192.
  - New build-depends: libcairo2-dev, liblua5.1-0-dev, gsfonts
  - patches/config.diff: Remove.  Upstream build system replaced.
  - Runtime lib package changed to libipe7.0.10 from libipe1c2a
  - Devel package renamed to libipe-dev (from libipe1-dev)
  - Package ipe depends on lua5.1 due to ipe-update-master.

* rules: Re-write to use dh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
3
   "DTD/xhtml1-transitional.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml">
 
5
<!-- XML file produced from file: manual.tex
 
6
     using Hyperlatex v 2.6 (c) Otfried Cheong
 
7
     on Emacs 22.2.1, Wed Dec  9 15:44:22 2009 -->
 
8
<head>
 
9
<title>Ipe Manual -- 7.5 Ipe symbols used from text objects</title>
 
10
 
 
11
<style type="text/css">
 
12
.maketitle { text-align : center }
 
13
div.abstract { margin-left: 20%; margin-right: 10%; }
 
14
h3.abstract  { text-align : center }
 
15
div.verse, div.quote, div.quotation {
 
16
  margin-left : 10%; 
 
17
  margin-right : 10%;
 
18
}
 
19
</style>
 
20
 
 
21
<link rel="stylesheet"
 
22
        href="manual.css" type="text/css"><meta http-equiv="Content-Type" 
 
23
        content="text/html; charset=UTF-8">
 
24
</head>
 
25
<body bgcolor="#ffffe6">
 
26
<table width="100%" cellpadding=0 cellspacing=2><tr>
 
27
    <td bgcolor="#99ccff"><img alt="" src="blank.png"></td><td bgcolor="#99ccff"><a href="manual_28.html"><img border="0" alt="7 Presentations" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_32.html"><img border="0" alt="7.4 Gradient patterns" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>7.5 Ipe symbols used from text objects</b></td></tr></table>
 
28
<h2>7.5 Ipe symbols used from text objects</h2>
 
29
<p>Presentations often make use of <code>itemize</code> environments.  You can
 
30
make these prettier in a number of ways:
 
31
<p>You can color your bullets:
 
32
<pre>
 
33
&lt;preamble&gt;
 
34
\def\labelitemi{\LARGE\textcolor{red}{$\bullet$}}
 
35
&lt;/preamble&gt;
 
36
</pre>
 
37
<p>Enumeration numbers could be put in a colored box:
 
38
<pre>
 
39
&lt;preamble&gt;
 
40
\newcommand{\labelenumi}{\fbox{\Roman{enumi}}}
 
41
&lt;/preamble&gt;
 
42
</pre>
 
43
<p>You could use the Dingbats font for nice enumerations, for instance
 
44
by putting <code>\usepackage{pifont}</code> in your preamble, and then having
 
45
text objects with <code>\begin{dinglist}{43}</code> or <code>\begin{dingautolist}{172}</code>
 
46
(or use 182, 192, 202 for various circled numbers).
 
47
<p>You can mark items as "good" and "bad" using these "bullets":
 
48
<p><em>Bad item</em>:  <code>\textcolor{red}{\ding{55}}</code><br /><em>Good item</em>: <code>\textcolor{green}{\ding{52}}</code>
 
49
<p>Finally, you can custom design your own bullets by creating an Ipe
 
50
symbol for it.  For instance:
 
51
<pre>
 
52
&lt;symbol name="bullet(sfpx)"&gt;
 
53
  &lt;path matrix="2 0 0 2 0 0" pen="sym-pen" stroke="sym-stroke" fill="sym-fill"&gt;
 
54
    0 0 m -1.0 0.333 l -0.8 0 l -1.0 -0.333 l h&lt;/path&gt;
 
55
&lt;/symbol&gt;
 
56
&lt;preamble&gt;
 
57
  \def\labelitemi{\raisebox{0.5ex}{\hbox to 0.3em%
 
58
      {\ipesymbol{bullet(sfpx)}{blue}{yellow}{normal}}}}
 
59
&lt;/preamble&gt;
 
60
</pre>
 
61
<p>Note the use of the <code>\ipesymbol{name}{stroke}{fill}{pen}</code> command. It
 
62
allows you to use an Ipe symbol from inside a text object.  The symbol
 
63
is magnified proportionally to the ex-height of the current font at
 
64
the position where it is used.  (And so the symbol should be designed to be
 
65
the correct for a font of ex-height&nbsp;1pt.)
 
66
<p>In the following example, we redefine the bullet to be a blue glassy
 
67
sphere:
 
68
<pre>
 
69
&lt;gradient name="ball" type="radial" coords="-4 10 2 0 0 18"&gt;
 
70
  &lt;stop offset="0" color="1 1 1"/&gt;
 
71
  &lt;stop offset="1" color="0 0 1"/&gt;
 
72
&lt;/gradient&gt;
 
73
&lt;symbol name="sphere"&gt;
 
74
  &lt;path matrix="0.04 0 0 0.04 0 0" fill="blue" gradient="ball"&gt;
 
75
    18 0 0 18 0 0 e
 
76
  &lt;/path&gt;
 
77
&lt;/symbol&gt;
 
78
&lt;preamble&gt;
 
79
  \def\labelitemi{\raisebox{0.5ex}{\hbox to 0.3em{\ipesymbol{sphere}{}{}{}}}}
 
80
&lt;/preamble&gt;
 
81
</pre>
 
82
<hr />
 
83
<table width="100%" cellpadding=0 cellspacing=2><tr>
 
84
    <td bgcolor="#99ccff"><img alt="" src="blank.png"></td><td bgcolor="#99ccff"><a href="manual_28.html"><img border="0" alt="7 Presentations" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_32.html"><img border="0" alt="7.4 Gradient patterns" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>7.5 Ipe symbols used from text objects</b></td></tr></table></body></html>