# Importing Visio document in latex

I created some pdf files in Visio which includes some figures as well as text. I need to import those PDF files in Latex, what I want is to match the syntax and font of text in PDF files with syntax and font in latex. Is that possible ? and how can I proceed?

Do you want to adjust fonts in Latex or in Visio? If you want to use the same fonts in Latex that you used in Visio then you can accomplish this easily in Lualatex or XeLatex, provided that you have these fonts installed on your system. Just look at the documentation on how to load fonts. See e.g. System fonts with LaTeX? (OS X)

• Actually, i want to adjust in Latex. I m using Lmodern font in latex. – Engr Ali Jul 22 '17 at 13:48
• What font are you using in Visio? – JPi Jul 22 '17 at 15:19
• Times new roman. – Engr Ali Jul 22 '17 at 16:14
• But I want to match Time new roman in pdf to Latin Modern in Latex. – Engr Ali Jul 23 '17 at 19:07

you have to check what font you are using and tell us if it's a truetype or other... LaTeX does not work with all fonts. There are different types of TeX systems to do that, like XeLaTeX.

Edit: Ok thats the easyest way, lmodern is a package and avalable in most installations like this:

\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={1,3,6},scale=.8,pagecommand={}]{path/to/file}
\end{document}


Then you can include your pdf per page or all with pages={-} I'm mostly glad to have the scale prepared becase visio aims to be landscape and have frames or ledgends in it. There is even a crop function in this package. Have a look here: https://stackoverflow.com/questions/2739159/inserting-a-pdf-file-in-latex

• I'm using Latin Modern. – Engr Ali Jul 22 '17 at 14:00
• I'm doing the same, but the font in the pdf is still the parent Times New Roman, it doesn't match with the font in Latex. – Engr Ali Jul 24 '17 at 18:35