/usr/share/doc/pyxplot/html/sect0088.html is in pyxplot-doc 0.9.2-4.
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 136 137 138 139 140 141 142 143 | <!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: LaTeX and Pyxplot</title>
<link href="sect0089.html" title="Reference Manual" rel="next" />
<link href="sec-piechart.html" title="The piechart command" rel="prev" />
<link href="ch-vector_graphics.html" title="Producing vector graphics" 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="sec-piechart.html" title="The piechart command"><img alt="Previous: The piechart command" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Up: Producing vector graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0089.html" title="Reference Manual"><img alt="Next: Reference Manual" 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="sect0288.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="sect0056.html">Plotting and Vector Graphics</a> <b>:</b>
</span>
</span><span>
<span>
<a href="ch-vector_graphics.html">Producing vector graphics</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">LaTeX and Pyxplot</b>
</span>
</span>
<hr />
</div>
<div><h1 id="a0000000089">3.15 LaTeX and Pyxplot</h1>
<p>The <tt class="tt">text</tt> command<a name="a0000001009" id="a0000001009"></a> can straightforwardly be used to render simple one-line latex<a name="a0000001010" id="a0000001010"></a> strings, but sometimes the need arises to place more substantial blocks of text onto a plot. For this purpose, it can be useful to use the latex <tt class="tt">parbox</tt> or <tt class="tt">minipage</tt> environments<a href="#a0000001011" class="footnote"><sup class="footnotemark">1</sup></a>. For example: </p><p><tt class="ttfamily">text r’<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />parbox[t]{6cm}{<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />setlength{<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />parindent}{1cm} <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily"><img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />noindent There once was a lady from Hyde, <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily">Who ate a green apple and died, <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily"><img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />indent While her lover lamented, <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily"><img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />indent The apple fermented, <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily">and made cider inside her inside.}’</tt> </p><center> <span style="width:" class="fbox"><img src="images/img-0616.png" alt="\includegraphics{examples/eps/ex_text1}" style="width:249px; height:92px" />
</span> </center><p>If unusual mathematical symbols are required, for example those in the <tt class="tt">amsmath</tt> package<a name="a0000001012" id="a0000001012"></a>, such a package can be loaded using the <tt class="tt">set preamble</tt> command<a name="a0000001013" id="a0000001013"></a>. For example: </p><p><tt class="ttfamily">set preamble <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />usepackage{marvosym}</tt><br /><tt class="ttfamily">text r"{<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />Huge<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />Dontwash<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /> <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />NoIroning<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /> <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />NoTumbler}$<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />;$ Do not <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="ttfamily">wash, iron or tumble-dry this plot."</tt> </p><center> <span style="width:" class="fbox"><img src="images/img-0623.png" alt="\includegraphics{examples/eps/ex_text2}" style="width:476px; height:35px" />
</span> </center></div>
<div id="footnotes">
<p><b>Footnotes</b></p>
<ol>
<li id="a0000001011">Remember, any valid latex string can be passed to the <tt class="tt">text</tt> command<a name="a0000001014" id="a0000001014"></a> and <tt class="tt">set label</tt> command<a name="a0000001015" id="a0000001015"></a>.</li>
</ol>
</div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sec-piechart.html" title="The piechart command"><img alt="Previous: The piechart command" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Up: Producing vector graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0089.html" title="Reference Manual"><img alt="Next: Reference Manual" 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="sect0288.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>
|