I am loading one page pdf as an image, using \includegraphics
. This page has some math in it. When I compile the Latex file, and use the TeXStudio viewer, I see the math font is not correct (from the included graphics pdf file!). The pdf image file is fine, and the generated pdf file is fine also, when I look at it using external PDF reader such as adobe.
It only shows wrong inside TeXStudio.
MWE
\documentclass[12pt]{report}%
\usepackage{graphicx}
\pdfminorversion=6 %needed since graphics pdf is 1.6.
\begin{document}
\includegraphics[width=0.8\textwidth]{a}
\end{document}
This is how the pdf looks like in Texstudio viewer:
This is how the same compiled PDF looks like inside external adobe pdf reader:
The image pdf file included is one page PDF file. Here is a link to this file if you like to reproduce the problem: a.pdf
I compiled the above MWE both in TL 2015 on linux and on windows using MiKTex 2.9 and in both cases, there is no problem. It is only a TeXStudio viewer issue. Looks like it is not loading some fonts and I have no idea how to fix this.
specs:
TexStudio: TeXstudio 2.10.4 (hg 5633:150614dcede6) Using Qt Version 5.5.1, compiled with Qt 5.5.1 R.
Any idea how to make TexStudio show the same thing as what is actually in the PDF file?
This is the pdfinfo
on the a.pdf
(the image pdf file included)
pdfinfo a.pdf
Creator: TeX
Producer: pdfTeX-1.40.16
CreationDate: Sat Dec 19 00:17:35 2015
ModDate: Sat Dec 19 00:17:35 2015
Tagged: no
Form: none
Pages: 1
Encrypted: no
Page size: 365 x 622 pts
Page rot: 0
File size: 19737 bytes
Optimized: no
PDF version: 1.6
Thanks to hint by cfr below, here it output from pdffonts
applied on the image pdf file included.
pdffonts a.pdf
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Times-Roman Type 1 Custom no no no 19 0
Times-Italic Type 1 Custom no no no 20 0
Symbol Type 1 Symbol no no no 21 0
Times-Bold Type 1 Standard no no no 22 0
ADWCRP+rsfs10 Type 1C WinAnsi yes yes no 23 0
EGYAWT+CMR10 Type 1C WinAnsi yes yes no 24 0
Helvetica-Bold Type 1 Custom no no no 25 0
GNWMUE+CMSY10 Type 1C Custom yes yes yes 26 0
IQWWFY+CMMI10 Type 1C Custom yes yes yes 27 0
And here is pdffonts
for the main pdf file which included the above pdf file as includegraphics
>pdffonts foo.pdf
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
ZJXPIR+CMR12 Type 1 Builtin yes yes no 5 0
Times-Roman Type 1 Custom no no no 21 0
Times-Italic Type 1 Custom no no no 22 0
Symbol Type 1 Symbol no no no 23 0
Times-Bold Type 1 Standard no no no 24 0
ADWCRP+rsfs10 Type 1C WinAnsi yes yes no 25 0
EGYAWT+CMR10 Type 1C WinAnsi yes yes no 26 0
Helvetica-Bold Type 1 Custom no no no 27 0
GNWMUE+CMSY10 Type 1C Custom yes yes yes 28 0
IQWWFY+CMMI10 Type 1C Custom yes yes yes 29 0
Related question may be texstudio-internal-embedded-pdf-viewer-shows-different-figure-than-external-pd
pdfcrop
. This is nightmare if one has to also make sure fonts are supposed to be inside pdf file or not. I assumed this is all taken care of when the pdf files are created.pdffonts
.pdfinfo
does something different.