%xsldoc.ent; ]> $Id: mediaobject.mod.xsl,v 1.22 2004/01/12 13:52:30 j-devenish Exp $ &ramon; &james; 20002001200220032004 Ramon Casellas &rev_2003_05; MediaObjects <filename>mediaobject.mod.xsl</filename> Process textobject elements Applies templates. &no_var; Process mediaobject elements Calls . &no_var; &test_subfig; Process a para's mediaobject elements Formats a mediaobject as a block surrounded by paragraph text. &no_var; Inserts newline characters around the output of . Process inlinemediaobject elements Applies templates. &no_var; Process media and inline media Formats image media. Would be good to be able to include text media, too, so that mixed-content figures look proper. &no_var; The template first attempts to obtain a count of the number of media within this figure, if this is within a figure. If the number of objects is greater than one, a subfigure command will be invoked with the contents of any caption. If there are no imageobjects, textobjects will be selected. Otherwise, the following algorithm will be used: If is set and there is an imageobject with a role equal to the current then that object will be used. Otherwise, if is set and there is an imageobject with a role of latex or tex, that object will be used. Otherwise, if is set and there are imagedata with non-empty format attributes, and at least one of them has a matching format, then the first one of those objects is used. If none match, then the first imagedata with an empty format is used. Otherwise, the first textobject is used. Otherwise, the first imageobject is used regardless. \subfigure[ ] { } Process imageobject elements Applies templates. &no_var; Process imagedata elements Formats a picture using includegraphics. &no_var; filename The file path to be passsed to includegraphics. By default, the name of the graphics file is gathered from the entityref attribute, if it is present, or otherwise from the fileref attribute. Often with &LaTeX;, the fileref attribute need not end with any filename extension (see ). If both @width and @scale are given but @scalefit='0', whitespace is added to the left and right in order to match the specified width. If @width is given and either @scalefit=1 or no @scale is given, then the image is scale to @width. Otherwise, @scale is used, if it is present. If this is not the only imagedata within the figure, this will be rendered as a 'subfigure', including the caption of its enclosing mediaobject. For widths, those containing a percent symbol (%) will be taken relative to the textwidth. The PRN value of the format attribute is honoured. &mapping; \textwidth \makebox[] {\begin{overpic}[ {\includegraphics[ scale= width= height= ,angle=270 ]{ } \calsscale \end{overpic}} }} Process caption elements Applies templates. &no_var;