Menu

#1782 internal viewer does not show some elements of PDF figures on MAC OS X

None
fixed
nobody
None
1
2018-04-18
2016-05-27
Mast B.
No

The attached PDF figure colorbar-crop.pdf shows two numbers 0 and 1 next to the colorbar. When compiling on MAC OS X 10.11.5, the internal viewer of TexStudio 2.10.8 does not show the numbers. Opening the compiled document.pdf using Acrobat or OSX's Preview, they show just fine.

Also, on Windows the internal viewer there shows the numbers just fine. It seems this is an issue on the Mac version ...

\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
.
\begin{figure}
  \centering
  \includegraphics[height=0.31\linewidth]{colorbar-crop}
  \caption{Numbers 0 and 1 should be visible next to the colorbar.}
\end{figure} 
\end{document}
1 Attachments

Discussion

  • Mast B.

    Mast B. - 2016-05-27

    I attached a screenshot of what I see in 2.10.8. I'll try the download you suggested.

     

    Last edit: Mast B. 2016-05-27
  • Mast B.

    Mast B. - 2016-05-27

    Ok, I tried 2.10.10 form your link and it does the same thing. See attached. Let me know if you want other specific info (config?)

    Are there any config options for the viewer?

     
  • Mast B.

    Mast B. - 2016-05-27

    I also atatched the compiled PDF. Could you try to open this in your TS internal viewer (I see it can open external files) to check if you see the number 0 and 1? If you don't then maybe it's something to do with my latex distro and the internal viewer (I use MacTex 2015, compile with pdflatex)

     

    Last edit: Mast B. 2016-05-27
  • Mast B.

    Mast B. - 2016-05-27

    I think it's a fonts issue. Looks like the Texstudio viewer is not loading some fonts, or substitutes of those fonts ... in this case it's Helvetica, which is not embedded int he PDF image (and it doesn't need to be). Check out the attached screenshot, the internal viewer shows that Helvetica is not embeded, and it's that that it's missing. Curious that in your case it's working though.

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-05-28

    Apparently txs uses fonts from X11-install (which is to be expected from a original linux library poppler)
    No idea, how and to where change the font search path ...!

     
  • Mast B.

    Mast B. - 2016-05-28

    That shouldn't be required on OSX, though. Helvetica is available natively in OSX and txs should be able to use fonts available in the os. I don't have /usr/X11R6 on my OSX 10.11.5 like you seem to do according to your screenshot, and I don't think it should be required since Acrobat and Preview show those chars just fine. The txs viewer must be looking in the wrong place for fonts. Can that be configured? If not, perhaps it's worth checking the source code.

     

    Last edit: Mast B. 2016-05-28
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-05-28

    can you place the attached file in ~/.config/fontconfig/ and try again ?

     
  • Mast B.

    Mast B. - 2016-05-28

    Thanks. I did ... still no joy. Any debug options I can use to help you?

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-05-28

    can you check that your fonts are storde in /Library/Fonts ?

     
  • Mast B.

    Mast B. - 2016-05-28

    Yep, all there, see attached.

     

    Last edit: Mast B. 2016-05-28
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-05-28

    then it should work ...

     
  • Mast B.

    Mast B. - 2016-05-28

    And yet it clearly doesn't ...

     
  • Mast B.

    Mast B. - 2016-06-18

    Yes! This is working as expected, thanks.

    p.s. Unrelated: there is definitely another bug in the internal viewer to do with reverse search on double-column documents which include huge images that were resized using \includegraphics[width=0.2\linewidth]{...}... ctrl-click/cmd-click on text in the other column goes to the figure code instead of the clicked text. It looks like the ctrl-click captures the bounding box of the original image, which overlaps both columns. Using SumatraPDF with reverse search works fine.

    I'll submit a new bug for it after I can reproduce it with a different document ... right now reverse search on this document I'm writing is completely unreliable with the internal editor.

     

    Last edit: Mast B. 2016-06-18
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-06-19
    • status: open --> fixed
    • Group: -->
     
  • Marcel B

    Marcel B - 2017-08-31

    Hi, i have the same issue, but with a newer Version of TeXstudio.
    I use MAC OS 10.12.6 and TeXstudio 2.12.6.
    Only in the internal viewer i cant see the axis titles or scales.
    In Preview is everything ok.

     
  • Kristian Sørensen

    I can confirm that the issue persists using the versions mentioned by Marcel B. I am reluctant to downgrade to the development-version of 2.11.1 linked above, which seems to fix the issue, as it is unclear whether that version is stable. If the patch could be applied to the current version, I too would quite appreciate it!

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-10-23

    can you try out latest version on https://bintray.com/sunderme/texstudio/texstudio

     
    • Kristian Sørensen

      I would like to, but it is not clear to me how to compile for testing. Do you have a link with instructions?

       
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-10-27

    the link leads to already compiled development sanpshots for osx.
    https://bintray.com/package/files/sunderme/texstudio/texstudio
    Take the one at the bottom ...

     
  • Yang Chen

    Yang Chen - 2018-04-18

    I met the same problem on MAC. Could u tell me what is the solution now?

     

Log in to post a comment.