1

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?

Waiting for helpful replies.

5

2 Answers 2

2

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)

5
2

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

Here is the manual: http://mirror.switch.ch/ftp/mirror/tex/macros/latex/contrib/pdfpages/pdfpages.pdf

2
  • I'm using Latin Modern. Jul 22, 2017 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. Jul 24, 2017 at 18:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .