From 8f8a9f01909ba29e2b781310baeeaaddc3f15f0d Mon Sep 17 00:00:00 2001 From: "Gerald W. Carter" Date: Tue, 22 Apr 2008 10:09:40 -0500 Subject: Moving docs tree to docs-xml to make room for generated docs in the release tarball. (This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14) --- docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl | 350 +++++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl (limited to 'docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl') diff --git a/docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl b/docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl new file mode 100644 index 0000000000..b0a0bc5bd4 --- /dev/null +++ b/docs-xml/xslt/db2latex-xsl/xsl/mediaobject.mod.xsl @@ -0,0 +1,350 @@ + + %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; + + + + + + + -- cgit