Debian Codegraph @

en/refpages/elements/graphic/refentry.xml

raw symbols SCIP
1 <refentry id="graphic.element">
2 <?dbhtml filename="graphic.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>graphic</secondary></indexterm>
11 <refentrytitle>graphic</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>graphic</refname>
16 <refpurpose>&graphic.purpose;</refpurpose>
17 </refnamediv>
18
19 &graphic.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 This element contains graphical data, or a pointer to an
24 external entity containing graphical data. One of the
25 deficiencies of the DocBook <sgmltag>Graphic</sgmltag> element is that
26 there is no way to specify an alternate text description of the
27 graphic. This has been rectified by the introduction of
28 <sgmltag>MediaObject</sgmltag>.
29 </para>
30
31 <refsect2 id="dbreproc.graphic"><title>Processing expectations</title>
32 <para>
33 &format.block;
34 </para>
35 <para>
36 There are several ways to provide content for a
37 <sgmltag>Graphic</sgmltag>. It is best to use only one of these
38 methods. However, if multiple graphic sources are provided, the
39 processing expectations are as follows: element content should be used
40 in favor of either <sgmltag class='attribute'>EntityRef</sgmltag> or <sgmltag
41 class='attribute'>FileRef</sgmltag> and <sgmltag class='attribute'>EntityRef</sgmltag>
42 should be used in favor of <sgmltag class='attribute'>FileRef</sgmltag>.
43 </para>
44 </refsect2>
45
46 <refsect2 role='fu' revision="4.0"><title>&FutureChanges;</title>
47 <para>
48 <indexterm><primary>DocBook DTD</primary><secondary>Changes for <acronym>V4.0</acronym></secondary>
49 </indexterm>
50 In DocBook <acronym>V4.0</acronym>, <sgmltag>Graphic</sgmltag> will be declared <literal>EMPTY</literal>.
51 This change will require that any embedded graphic content be stored outside the
52 &SGML; source and pointed to with an
53 <sgmltag class='attribute'>EntityRef</sgmltag> or
54 <sgmltag class='attribute'>FileRef</sgmltag> attribute.
55 </para>
56 </refsect2>
57
58 <refsect2 role='fu' revision="5.0"><title>&FutureChanges;</title>
59 <para>
60 <indexterm><primary>DocBook DTD</primary><secondary>Changes for <acronym>V5.0</acronym></secondary>
61 </indexterm>
62 In DocBook <acronym>V5.0</acronym>, <sgmltag>Graphic</sgmltag> will be discarded. At that
63 time, graphics will have to be incorporated using
64 <sgmltag>MediaObject</sgmltag> or <sgmltag>InlineMediaObject</sgmltag>.
65 </para>
66 </refsect2>
67
68
69
70 &graphic.parents.gen;
71 </refsect1>
72 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
73 <variablelist>
74 <varlistentry><term>align</term>
75 <listitem>
76 <para>
77 <sgmltag class="attribute">Align</sgmltag> specifies the horizontal alignment
78 of the graphic on the page or within the element that frames it.
79 </para>
80 </listitem>
81 </varlistentry>
82 <varlistentry><term>depth</term>
83 <listitem>
84 <para>
85 <sgmltag class="attribute">Depth</sgmltag> specifies the desired depth (vertical
86 distance, at least in horizontal writing systems) of the
87 image.
88 </para>
89 </listitem>
90 </varlistentry>
91 <varlistentry><term>entityref</term>
92 <listitem>
93 <para>
94 <sgmltag class="attribute">EntityRef</sgmltag> identifies the general entity
95 which contains (or points to) the content of the graphic.
96 </para>
97 </listitem>
98 </varlistentry>
99 <varlistentry><term>fileref</term>
100 <listitem>
101 <para>
102 <sgmltag class="attribute">FileRef</sgmltag> specifies the name of the file
103 which contains the content of the graphic.
104 </para>
105 </listitem>
106 </varlistentry>
107 <varlistentry><term>format</term>
108 <listitem>
109 <para>
110 <sgmltag class="attribute">Format</sgmltag> identifies the format of the graphic
111 content. The <sgmltag class="attribute">Format</sgmltag> must be a defined
112 notation.
113 </para>
114 </listitem>
115 </varlistentry>
116 <varlistentry><term>scale</term>
117 <listitem>
118 <para>
119 <sgmltag class="attribute">Scale</sgmltag> specifies integer representing a
120 percentage scaling factor (retaining the relative dimensions of the
121 original graphic). If unspecified, the value 100 (100&percnt;) is assumed.
122 </para>
123 </listitem>
124 </varlistentry>
125 <varlistentry><term>scalefit</term>
126 <listitem>
127 <para>
128 If <sgmltag class="attribute">ScaleFit</sgmltag> has the value 1 (true), then
129 the graphic is to be scaled (uniformly) to the specified width or depth.
130 The default value of 0 (false) indicates that the image will not be
131 scaled to fit (although it may still be scaled by the
132 <sgmltag class="attribute">Scale</sgmltag> attribute).
133 </para>
134 </listitem>
135 </varlistentry>
136 <varlistentry><term>srccredit</term>
137 <listitem>
138 <para>
139 <sgmltag class="attribute">SrcCredit</sgmltag> contains details about the source
140 of the <sgmltag>Graphic</sgmltag>.
141 </para>
142 </listitem>
143 </varlistentry>
144 <varlistentry><term>width</term>
145 <listitem>
146 <para>
147 <sgmltag class="attribute">Width</sgmltag> indicates the width of the graphic.
148 </para>
149 </listitem>
150 </varlistentry>
151 </variablelist>
152 </refsect1>
153 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
154 &graphic.seealso.gen;
155 </refsect1>
156 <refsect1><title>Examples</title>
157
158 <informalexample role="example-source">
159 <programlisting>&graphic.example.1.txt;</programlisting>
160 </informalexample>
161
162 <anchor id="ex.os.graphic.1" role="HACK-ex.out.start"/>
163 &graphic.example.1.gen;
164 <anchor id="ex.oe.graphic.1" role="HACK-ex.out.end"/>
165
166 &graphic.example.seealso.gen;
167 </refsect1>
168 </refentry>
169