This file is indexed.

/usr/share/doc/python-plastex-doc/html/sect0017.html is in python-plastex-doc 0.9.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
94
95
96
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>plasTeX — A Python Framework for Processing LaTeX Documents: Static Images</title>

<link href="sec-zpt.html" title="Page Template Renderer" rel="next" />
<link href="sect0016.html" title="Generating Vector Images" rel="prev" />
<link href="sec-renderable.html" title="Renderable Objects" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>

<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0016.html" title="Generating Vector Images"><img alt="Previous: Generating Vector Images" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-renderable.html" title="Renderable Objects"><img alt="Up: Renderable Objects" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sec-zpt.html" title="Page Template Renderer"><img alt="Next: Page Template Renderer" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">plasTeX — A Python Framework for Processing LaTeX Documents</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>


<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<div class="breadcrumbs">
<span>
<span>
<a href="index.html">plasTeX — A Python Framework for Processing LaTeX Documents</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0010.html">Renderers</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sec-renderable.html">Renderable Objects</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">Static Images</b>
</span>
</span>
<hr />
</div>

<div><h2 id="a0000000018">5.2.5 Static Images</h2>
<p>There are some images in a document that don’t need to be generated, they simply need to be copied to the output directory and possibly converted to an appropriate formate. This is accomplished with the <tt class="ttfamily">imageoverride</tt> attribute. When the <tt class="ttfamily">image</tt> property is accessed, the <tt class="ttfamily">imageoverride</tt> attribute is checked to see if an image is already available for that node. If there is, the image is copied to the image output directory using a name generated using the same method as described in the previous section. The image is copied to that new filename and converted to the appropriate image format if needed. While it would be possible to simply copy the image over using the same filename, this may cause filename collisions depending on the directory structure that the original images were store in. </p><p>Below is an example of using <tt class="ttfamily">imageoverride</tt> for copying stock icons that are used throughout the document. </p><pre>
from plasTeX import Command

class dangericon(Command):
    imageoverride = 'danger.gif'

class warningicon(Command):
    imageoverride = 'warning.gif'
</pre><p>It is also possible to make <tt class="ttfamily">imageoverride</tt> a property so that the image override can done conditionally. In the case where no override is desired in a property implementation, simply raise an <tt class="ttfamily">AttributeError</tt> exception. </p></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0016.html" title="Generating Vector Images"><img alt="Previous: Generating Vector Images" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-renderable.html" title="Renderable Objects"><img alt="Up: Renderable Objects" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sec-zpt.html" title="Page Template Renderer"><img alt="Next: Page Template Renderer" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">plasTeX — A Python Framework for Processing LaTeX Documents</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>


<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>

</body>
</html>