/usr/share/doc/pyxplot/html/sect0235.html is in pyxplot-doc 0.8.4-3.
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | <!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>PyXPlot Users' Guide: Setting up Infrastructure</title>
<link href="sect0236.html" title="Writing A Short Example Talk" rel="next" />
<link href="sect0234.html" title="Delivering Talks in PyXPlot" rel="prev" />
<link href="sect0234.html" title="Delivering Talks in PyXPlot" 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="sect0234.html" title="Delivering Talks in PyXPlot"><img alt="Previous: Delivering Talks in PyXPlot" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0234.html" title="Delivering Talks in PyXPlot"><img alt="Up: Delivering Talks in PyXPlot" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0236.html" title="Writing A Short Example Talk"><img alt="Next: Writing A Short Example Talk" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</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><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></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">PyXPlot Users' Guide</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0230.html">Appendices</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0231.html">Other Applications of PyXPlot</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0234.html">Delivering Talks in PyXPlot</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">Setting up Infrastructure</b>
</span>
</span>
<hr />
</div>
<div><h2 id="a0000000236">A.3.1 Setting up Infrastructure</h2>
<p>First, a bit of infrastructure needs to be set up. Note that once this has been done for one talk, the infrastructure can be copied directly from a previous talk. </p><ol class="enumerate">
<li><p>Make a new directory in which to put your talk: </p><pre>
mkdir my_talk
cd my_talk
</pre></li><li><p>Make a directory into which you will put the PyXPlot scripts for your individual slides: </p><pre>
mkdir scripts
</pre></li><li><p>Make a directory into which you will put any graphic images which you want to put into your talk to make it look pretty: </p><pre>
mkdir images
</pre></li><li><p>Make a directory into which PyXPlot will put graphic images of your slides: </p><pre>
mkdir slides
</pre></li><li><p>Design a background for your slides. Open a paint program such as the <tt class="tt">gimp</tt>, create a new image which measures <img src="images/img-0781.png" alt="$1024\times 768$" style="vertical-align:0px;
width:84px;
height:13px" class="math gen" /> pixels, and fill it with colour. My preference tends to be for a blue colour gradient, running from bright blue at the top to dark blue at the bottom, but you may be more inventive than me. You may wish to add institutional and/or project logos in the corners. Alternatively, you can download a ready-made background image from the PyXPlot website: http://foo. You should store this image as <tt class="tt">images/background.jpg</tt>. </p></li><li><p>We need a simple PyXPlot script to set up a slide template. Paste the following text into the file <tt class="tt">scripts/slide_init</tt>; there’s a bit of black magic in the <tt class="tt">arrow</tt> commands in this script which it isn’t necessary to understand at this stage: </p><pre>
scale = 1.25 ; inch = 2.54 # cm
width = 10.24*scale ; height = 7.68*scale
x = width/100.0 ; y = height/100.0
set term gif ; set dpi (1024.0/width) * inch
set multiplot ; set nodisplay
set texthalign centre ; set textvalign centre
set textcolour yellow
jpeg "images/background.jpg" width width
arrow -x* 25,-y* 25 to -x* 25, y*125 with nohead
arrow -x* 25, y*125 to x*125, y*125 with nohead
arrow x*125, y*125 to x*125,-y* 25 with nohead
arrow x*125,-y* 25 to -x* 25,-y* 25 with nohead
</pre></li><li><p>We also need a simple PyXPlot script to round off each slide. Paste the following text into the file <tt class="tt">scripts/slide_finish</tt>: </p><pre>
set display ; refresh
</pre></li><li><p>Paste the following text into the file <tt class="tt">compile</tt>. This is a simple shell script which instructs <tt class="tt">pyxplot_watch</tt> to compile your slides using PyXPlot every time you edit any of the them: </p><pre>
#!/bin/bash
pyxplot_watch --verbose scripts/0\*
</pre></li><li><p>Paste the following text into the file <tt class="tt">make_slides</tt>. This is a simple shell script which crops your slides to measure exactly <img src="images/img-0781.png" alt="$1024\times 768$" style="vertical-align:0px;
width:84px;
height:13px" class="math gen" /> pixels, cropping any text boxes which may go off the side of them. It links up with the black magic of Step <a href="sect0235.html#stp:presentation_magic">163</a>: </p><pre>
#!/bin/bash
mkdir -p slides_cropped
for all in slides/*.gif ; do
convert $all -crop 1024x768+261+198 `echo $all | \
sed 's@slides@slides_cropped@' | sed 's@gif@jpg@'`
done
</pre></li><li><p>Make the scripts <tt class="tt">compile</tt> and <tt class="tt">make_slides</tt> executable: </p><pre>
chmod 755 compile make_slides
</pre></li>
</ol></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0234.html" title="Delivering Talks in PyXPlot"><img alt="Previous: Delivering Talks in PyXPlot" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0234.html" title="Delivering Talks in PyXPlot"><img alt="Up: Delivering Talks in PyXPlot" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0236.html" title="Writing A Short Example Talk"><img alt="Next: Writing A Short Example Talk" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</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><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></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>
|