/usr/share/doc/texinfo/html/Image-Syntax.html is in texinfo-doc-nonfree 5.2.0-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 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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Texinfo (version 5.2, 26 September 2013),
a documentation system that can produce both online information and a
printed manual from a single source using semantic markup.
Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 1999, 2001, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with the Front-Cover Texts being "A GNU Manual",
and with the Back-Cover Texts as in (a) below. A copy of the license
is included in the section entitled "GNU Free Documentation
License".
(a) The FSF's Back-Cover Text is: "You have the freedom to copy and
modify this GNU manual. Buying copies from the FSF supports it in
developing GNU and promoting software freedom." -->
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU Texinfo 5.2: Image Syntax</title>
<meta name="description" content="GNU Texinfo 5.2: Image Syntax">
<meta name="keywords" content="GNU Texinfo 5.2: Image Syntax">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Command-and-Variable-Index.html#Command-and-Variable-Index" rel="index" title="Command and Variable Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Images.html#Images" rel="up" title="Images">
<link href="Image-Scaling.html#Image-Scaling" rel="next" title="Image Scaling">
<link href="Images.html#Images" rel="previous" title="Images">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Image-Syntax"></a>
<div class="header">
<p>
Next: <a href="Image-Scaling.html#Image-Scaling" accesskey="n" rel="next">Image Scaling</a>, Up: <a href="Images.html#Images" accesskey="u" rel="up">Images</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Image-Syntax-1"></a>
<h4 class="subsection">12.2.1 Image Syntax</h4>
<p>Here is the synopsis of the <code>@image</code> command:
</p>
<div class="example">
<pre class="example">@image{<var>filename</var><span class="roman">[,</span> <var>width</var><span class="roman">[,</span> <var>height</var><span class="roman">[,</span> <var>alttext</var><span class="roman">[, </span><var>extension</var><span class="roman">]]]]</span>}
</pre></div>
<a name="index-Formats-for-images"></a>
<a name="index-Image-formats"></a>
<p>The <var>filename</var> argument is mandatory, and must not have an
extension, because the different processors support different formats:
</p>
<ul>
<li> <a name="index-eps-image-format"></a>
TeX (DVI output) reads the file <samp><var>filename</var>.eps</samp>
(Encapsulated PostScript format).
</li><li> <a name="index-pdftex_002c-and-images"></a>
<a name="index-png-image-format"></a>
<a name="index-jpeg-image-format"></a>
<a name="index-pdf-image-inclusions"></a>
pdfTeX reads <samp><var>filename</var>.pdf</samp>, <samp><var>filename</var>.png</samp>,
<samp><var>filename</var>.jpg</samp>, or <samp><var>filename</var>.jpeg</samp> (in that
order). It also tries uppercase versions of the extensions. The PDF
format does not support EPS images, so such must be converted first.
</li><li> For Info, <code>makeinfo</code> includes <samp><var>filename</var>.txt</samp> verbatim
(more or less as if it were in <code>@verbatim</code>). The Info output
may also include a reference to <samp><var>filename</var>.png</samp> or
<samp><var>filename</var>.jpg</samp>. (See below.)
</li><li> For HTML, <code>makeinfo</code> outputs a reference to
<samp><var>filename</var>.png</samp>, <samp><var>filename</var>.jpg</samp>,
<samp><var>filename</var>.jpeg</samp> or <samp><var>filename</var>.gif</samp> (in that
order). If none of those exist, it gives an error, and outputs a
reference to <samp><var>filename</var>.jpg</samp> anyway.
</li><li> <a name="index-SVG-images_002c-used-in-Docbook"></a>
For Docbook, <code>makeinfo</code> outputs references to
<samp><var>filename</var>.eps</samp>, <samp><var>filename</var>.gif</samp>
<samp><var>filename</var>.jpeg</samp>, <samp><var>filename</var>.jpg</samp>,
<samp><var>filename</var>.pdf</samp>, <samp><var>filename</var>.png</samp> and
<samp><var>filename</var>.svg</samp>, for every file found. Also,
<samp><var>filename</var>.txt</samp> is included verbatim, if present. (The
subsequent Docbook processor is supposed to choose the appropriate one.)
</li><li> For Info and HTML output, <code>makeinfo</code> uses the optional fifth
argument <var>extension</var> to <code>@image</code> for the filename extension,
if it is specified and the file is found. Any leading period should
be included in <var>extension</var>. For example:
<a name="index-XPM-image-format"></a>
<div class="example">
<pre class="example">@image{foo,,,,.xpm}
</pre></div>
</li></ul>
<p>If you want to install image files for use by Info readers too, we
recommend putting them in a subdirectory like ‘<samp><var>foo</var>-figures</samp>’
for a package <var>foo</var>. Copying the files into
<code>$(infodir)/<var>foo</var>-figures/</code> should be done in your
<code>Makefile</code>.
</p>
<p>The <var>width</var> and <var>height</var> arguments are described in the next
section.
</p>
<p>For TeX output, if an image is the only thing in a paragraph it
will ordinarily be displayed on a line by itself, respecting the
current environment indentation, but without the normal paragraph
indentation. If you want it centered, use <code>@center</code>
(see <a href="_0040titlefont-_0040center-_0040sp.html#g_t_0040titlefont-_0040center-_0040sp"><tt>@titlefont @center @sp</tt></a>).
</p>
<a name="index-Alt-attribute-for-images"></a>
<a name="index-Images_002c-alternate-text-for"></a>
<a name="index-_002d-_0028in-image-alt-string_0029"></a>
<p>For HTML output, <code>makeinfo</code> sets the <em>alt attribute</em> for
inline images to the optional <var>alttext</var> (fourth) argument to
<code>@image</code>, if supplied. If not supplied, <code>makeinfo</code> uses
the full file name of the image being displayed. The <var>alttext</var> is
processed as Texinfo text, so special characters such as ‘<samp>"</samp>’ and
‘<samp><</samp>’ and ‘<samp>&</samp>’ are escaped in the HTML output; also, you can
get an empty <code>alt</code> string with <code>@-</code> (a command that
produces no output; see <a href="_0040_002d-_0040hyphenation.html#g_t_0040_002d-_0040hyphenation"><tt>@- @hyphenation</tt></a>).
</p>
<p>For Info output, the <code>alt</code> string is also processed as Texinfo
text and output. In this case, ‘<samp>\</samp>’ is escaped as ‘<samp>\\</samp>’ and
‘<samp>"</samp>’ as ‘<samp>\"</samp>’; no other escapes are done.
</p>
<p>In Info output, <code>makeinfo</code> writes a reference to the binary image
file (trying <var>filename</var> suffixed with <samp><var>extension</var></samp>,
<samp><var>.extension</var></samp>, <samp>.png</samp>, or <samp>.jpg</samp>, in that order)
if one exists. It also literally includes the <samp>.txt</samp> file if one
exists. This way, Info readers which can display images (such as the
Emacs Info browser, running under X) can do so, whereas Info readers
which can only use text (such as the standalone Info reader) can
display the textual version.
</p>
<a name="index-_005e_0040_005eH-for-images-in-Info"></a>
<p>The implementation of this is to put the following construct into the
Info output:
</p>
<div class="example">
<pre class="example">^@^H[image src="<var>binaryfile</var>" text="<var>txtfile</var>"
alt="<var>alttext</var> ... ^@^H]
</pre></div>
<p>where ‘<samp>^@</samp>’ and ‘<samp>^H</samp>’ stand for the actual null and
backspace control characters. If one of the files is not present, the
corresponding argument is omitted.
</p>
<p>The reason for mentioning this here is that older Info browsers (this
feature was introduced in Texinfo version 4.6) will display the above
literally, which, although not pretty, should not be harmful.
</p>
<hr>
<div class="header">
<p>
Next: <a href="Image-Scaling.html#Image-Scaling" accesskey="n" rel="next">Image Scaling</a>, Up: <a href="Images.html#Images" accesskey="u" rel="up">Images</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|