How to export Visio graphic for Tex document?
I was searching for a solution for some time so it's probably usefull for someone else.
You have to do the following in the same order:
In Visio:
- Go to options and open Customize Ribbon
- Add the developertools to the menu
- Go to the developer tab and open Show ShapeSheet -> Print Properties
- Edit PageLeftMargin, PageRightMargin, PageTopMargin and PageBottomMargin to 1
- Fit to Drawing using Design-->Size-->Fit to Drawing
- Export PDF
- options -> current page & don't show background
- Save PDF file
In Tex as usual:
\begin{figure}
\centering
\includegraphics{graphic.pdf}
\caption{graphic} \label{fig:graphic}
\end{figure}
I hope this helps someone else struggling with this problem.
I had the same problem.
I found a simple way to deal with it.
- Save the chart as svg file by Visio.
- open the svg file by Inkscape.
- Save as the .pdf format
- On the next pop up window:
- Embed Fonts
- Use exported object's size
- Margin 0.1
- click ok
Next the generated pdf file will be imported by latex easily as same as png or eps.
But some times inkscape does not read the svg file properly and some mistakes are occurred. In this case the solution which works great and mentioned above is:
save the pdf file by visio
include the pdf file in latex
use trim for cropping the figure in latex
for example:
\includegraphics[width=0.8\textwidth, trim={1cm 3cm 1cm 8cm},clip]{Fig.pdf}