<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog::Log &#187; latex</title>
	<atom:link href="http://www.stpe.se/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stpe.se</link>
	<description>Not a blog, more a log.</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:01:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Visio figures in LaTeX</title>
		<link>http://www.stpe.se/2008/07/visio-figures-in-latex/</link>
		<comments>http://www.stpe.se/2008/07/visio-figures-in-latex/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 07:18:44 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://www.stpe.se/?p=54</guid>
		<description><![CDATA[This is one way to use figures made in Microsoft Visio in your latex (pdfLatex) document. The first step is to get the figure as a PDF file. If you are using Visio 2007 you may use the PDF add-in from Microsoft. Another option is using Adobe Acrobat or the free PDFCreator. When printing, select [...]]]></description>
			<content:encoded><![CDATA[<p>This is one way to use figures made in Microsoft Visio in your latex (pdfLatex) document.</p>
<p>The first step is to get the figure as a PDF file. If you are using Visio 2007 you may use the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=F1FC413C-6D89-4F15-991B-63B07BA5F2E5&#038;displaylang=en">PDF add-in</a> from Microsoft. Another option is using Adobe Acrobat or the free <a href="http://www.pdfforge.org/products/pdfcreator">PDFCreator</a>.</p>
<p>When printing, select the figure and in the print dialog select the option to only print the current selection.</p>
<p>The problem is that the figures will use a whole page even if they&#8217;re small. You may either crop it (using a tool like <code>pdfcrop</code>) or specify a viewport when including the figure in the document.</p>
<p>To find out the viewport variables, convert the PDF to PostScript using <code>pdf2ps</code>. Now check the beginning of the file for a line like this:</p>
<p><code>%%BoundingBox: 56 368 446 551</code></p>
<p>This is the viewport variables to use when including the figure in the latex document:</p>
<p><code>\includegraphics[viewport = 56 368 446 551]{figure.pdf}</code></p>
<p>Or include it in a figure with caption that may be referenced:</p>
<pre class="brush: xml;">
\begin{figure}
	\begin{center}
		\includegraphics[viewport = 56 368 446 551]{figure.pdf}
	\end{center}
	\caption{Figure caption here}
	\label{myfigure}
\end{figure}
</pre>
<p>It may be referenced to in the text using e.g. <code>Please see figure ~\ref{figure} for details</code>. The tilde is used as a non-breaking space to avoid unfortunate linebreaks.</p>
<p>See <a href="http://www.andy-roberts.net/misc/latex/latextutorial6.html">this page</a> for more details working with figures in Latex.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stpe.se/2008/07/visio-figures-in-latex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
