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 -->
9
<title>Ipe Manual -- 7.5 Ipe symbols used from text objects</title>
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 {
21
<link rel="stylesheet"
22
href="manual.css" type="text/css"><meta http-equiv="Content-Type"
23
content="text/html; charset=UTF-8">
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:
34
\def\labelitemi{\LARGE\textcolor{red}{$\bullet$}}
37
<p>Enumeration numbers could be put in a colored box:
40
\newcommand{\labelenumi}{\fbox{\Roman{enumi}}}
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:
52
<symbol name="bullet(sfpx)">
53
<path matrix="2 0 0 2 0 0" pen="sym-pen" stroke="sym-stroke" fill="sym-fill">
54
0 0 m -1.0 0.333 l -0.8 0 l -1.0 -0.333 l h</path>
57
\def\labelitemi{\raisebox{0.5ex}{\hbox to 0.3em%
58
{\ipesymbol{bullet(sfpx)}{blue}{yellow}{normal}}}}
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 1pt.)
66
<p>In the following example, we redefine the bullet to be a blue glassy
69
<gradient name="ball" type="radial" coords="-4 10 2 0 0 18">
70
<stop offset="0" color="1 1 1"/>
71
<stop offset="1" color="0 0 1"/>
73
<symbol name="sphere">
74
<path matrix="0.04 0 0 0.04 0 0" fill="blue" gradient="ball">
79
\def\labelitemi{\raisebox{0.5ex}{\hbox to 0.3em{\ipesymbol{sphere}{}{}{}}}}
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>