<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Images &amp; Graphics on speedata Publisher</title>
    <link>/en/manual/imagesandgraphics/</link>
    <description>Recent content in Images &amp; Graphics on speedata Publisher</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/en/manual/imagesandgraphics/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Wrap around images</title>
      <link>/en/manual/imagesandgraphics/wrappingaroundobjects/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/manual/imagesandgraphics/wrappingaroundobjects/</guid>
      <description>&lt;p&gt;Text that is output using the &lt;code&gt;&amp;lt;Output allocate=&amp;quot;auto&amp;quot;&amp;gt;&lt;/code&gt; command flows around previously placed objects. It is therefore useful to place objects that are to be flowed around on future pages first. This can be achieved with the page attribute in the command &lt;PlaceObject&gt;. In the attribute you must specify either a concrete page number or next for the next page. To avoid the cursor being changed during output, it is recommended to set the attribute keepposition to yes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Rotation of contents</title>
      <link>/en/manual/imagesandgraphics/rotatingthings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/manual/imagesandgraphics/rotatingthings/</guid>
      <description>&lt;p&gt;Objects that are output with &lt;code&gt;&amp;lt;PlaceObject&amp;gt;&lt;/code&gt; can be rotated.&#xA;For this purpose, there is the attribute &lt;code&gt;rotate&lt;/code&gt;, which expects an angle (in degrees), whereas positive values cause a clockwise rotation.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;PlaceObject&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rotate=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;10&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;Image&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;file=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;_sampleb.pdf&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;3&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/PlaceObject&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When an object is rotated, you need to specify the point around which it should rotate.&#xA;The default setting is the upper left corner.&#xA;With the attributes &lt;code&gt;origin-x&lt;/code&gt; (&lt;code&gt;left&lt;/code&gt;, &lt;code&gt;center&lt;/code&gt; and &lt;code&gt;right&lt;/code&gt;) and &lt;code&gt;origin-y&lt;/code&gt; (&lt;code&gt;top&lt;/code&gt;, &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;bottom&lt;/code&gt;) you can define the axis of rotation.&#xA;In addition to these values, numbers from 0 to 100 are also possible, the upper left corner is 0, 0 and the lower right corner is 100, 100.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Embed multipage PDF files</title>
      <link>/en/manual/imagesandgraphics/multipagepdf/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/manual/imagesandgraphics/multipagepdf/</guid>
      <description>&lt;p&gt;Embedding multiple pages of a PDF file is easy. You can use the layout function &lt;code&gt;sd:number-of-pages()&lt;/code&gt; to determine how many pages a PDF file has.&#xA;With the &lt;code&gt;&amp;lt;Image&amp;gt;&lt;/code&gt; command to include an image, you can specify the desired number of pages. So the pattern for including all pages of a PDF file is as follows:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Layout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata.de:2009/publisher/en&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;na&#34;&gt;xmlns:sd=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata:2009/publisher/functions/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;element=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;data&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;SetVariable&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;variable=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;myfile&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&amp;#39;multipage.pdf&amp;#39;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;&amp;lt;!--1--&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Loop&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;sd:number-of-pages($myfile)&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;variable=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;page&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;&amp;lt;!--2--&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;PlaceObject&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;column=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;0mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;row=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;0mm&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;Image&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;file=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{$myfile}&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;210mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;page=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{$page}&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;/PlaceObject&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;ClearPage/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Loop&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Record&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Layout&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol&gt;&#xA;&lt;li&gt;First the file name is saved in the variable &lt;code&gt;myfile&lt;/code&gt;. This is not absolutely necessary. Important are the single quotation marks within the double quotation marks of &lt;code&gt;select&lt;/code&gt;, this will save the string &lt;code&gt;multipage.pdf&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;The loop (&lt;code&gt;&amp;lt;Loop&amp;gt;&lt;/code&gt;) is passed through exactly as often as the PDF file has pages, the number of the loop pass is saved in the variable &lt;code&gt;page&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;To access the variables you need the curly brackets, because neither &lt;code&gt;file&lt;/code&gt; nor &lt;code&gt;page&lt;/code&gt; expects an XPath expression, but a fixed value.&#xA;In order to access the variables, you must temporarily switch to XPath mode.&#xA;This is how&lt;/p&gt;</description>
    </item>
    <item>
      <title>Create images with MetaPost</title>
      <link>/en/manual/imagesandgraphics/metapostgraphics/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/manual/imagesandgraphics/metapostgraphics/</guid>
      <description>&lt;p&gt;MetaPost is a programming language that can be used to create graphics.&#xA;For example, one creates from the following program code:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;beginfig(1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    for a=0 upto 9:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      draw (0,0){dir 45}..{dir -10a}(6cm,0);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    endfor&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;endfig;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;this graphic:&lt;/p&gt;&#xA;&lt;p&gt;&lt;figure&gt;&#xA;  &lt;img src=&#34;/img/mp-first.png&#34; alt=&#34;mp-first.png&#34;  loading=&#34;lazy&#34; /&gt;&#xA;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;h2&gt;MetaPost and the speedata Publisher&lt;span id=&#34;metapost-and-the-speedata-publisher&#34; style=&#34;position:absolute;margin-top:-5rem;&#34;&gt;&lt;/span&gt;&#xA;    &lt;a href=&#34;#metapost-and-the-speedata-publisher&#34; class=&#34;heading-anchor&#34; aria-hidden=&#34;true&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The idea now is to be able to use these images in the speedata Publisher as well.&#xA;To do this, you first define a graphic and then use it later in the box command:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
