MiKTeX / miktex

the MiKTeX source code

Home Page:https://miktex.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ugly Rendering of the output visualization of TeXworks

SSebastiano opened this issue · comments

I have installed a updated version of MikTeX but the rendering of TeXworks is ugly (see the figure)
cU5Q3
The pdf output instead is perfect.

Related Rendering issue in TeXworks

Please can you fix the problem? Thanks.

I have had almost the same problem for over a month (most obvious on diagonal lines in graphics), and have attempted unsuccessfully to solve it a few times. (See an earlier post on this topic: #1389, including a link to others with this problem on Physics Stack Exchange.) I tried again this evening: 1) uninstalled MikTex via MikTex Console, 2) manually removed registry inputs and Windows folders not removed by the uninstaller, 3) installed latest MikTex release for Windows, ver. 0.6.8 (MikTex 23.12), 4) installed all updates at the end of the installation, 5) left all defaults in place and opened a clean Tex file as the first action taken; but TexWorks still rendered pdf graphics poorly (and some characters as well). The triangle below shows the problem. The first image is from the TexWorks pdf viewer, the second is from the same pdf opened in another viewer (SumatraPDF) on the same computer (Windows 10), so the poor quality shows up only in the TexWorks viewer.

TexWorks:
TexWorks Rendering

SumatraPDF:
image

About TexWorks:
image

Thank you for your help!

Sorry, I cannot fix this problem. Maybe it will fixed in a future release.

In TeXlive 2023 the rendering in the TeXworks previewer is much better. TeXlive has as TeXworks with the following version info (sorry but I can't copy the version info, so it has to be a screenshot)

image

Thank you edocevoli and u-fischer for your responses. After u-fischer's comment, I looked into TexLive, but I am so used to MikTex (with minor customizations, e.g. my own spell-check file), that I am reluctant to switch. I have two old installer files for MikTex, one from 2016 and one from 2020 (basic-miktex-2.9.6069.exe and basic-miktex-20.6.29-x64.exe respectively), and will try to install one of those next on my current computer. The 2016 installation runs on an older computer (updated and perhaps overwritten by the 20.6.29 installer) and does not have the PDF rendering problem. I'll try that first and post results here. My current work-around isn't bad, just inconvenient (open PDFs in SumatraPDF for correct visuals). Thank you both for your comments and for your valuable contributions to the scientific community! Best wishes...

Thanks again guys. As @SSebastiano points out, the problem appears robust. I am currently using an improved work-around. The problem does not appear when using a 2022 version of TeXWorks (0.6.7), held in a separate directory (C:\Program Files) from the main MiKTeX 0.6.8 installation, which is in my C:\Users\MyAccount\AppData\Local directory. I can still run updates via the 0.6.8 MiKTeX console, since it updates a different directory, as long as I leave TeXworks.exe 0.6.7 in C:\Program Files. Here are the steps I followed for the work-around (awkward as they are):

  1. I removed MiKTeX and its accompanying folders, then reinstalled it from an old 2020 MiKTeX installer file. However, I suspect my results below would be the same had I used the current 0.6.8 installer (available for download) because I then ran updates from the console to update all packages (including TeXworks) to version 0.6.8.
  2. Next, I opened and processed a tex file with graphics, downloading the necessary packages on the fly, to verify the PDF rendering problem, which occurred again, as expected.
  3. I then closed TeXworks 0.6.8, leaving everything unchanged, and downloaded and installed TeXworks 0.6.7 into C:\Program Files, a separate folder from my main MiKTeX installation in C:\Users\MyAccount\AppData\Local.
  4. Then I opened TeXworks.exe 0.6.7, and it apparently found my main MiKTeX installation automatically.
  5. Finally, I opened the same tex file with graphics, processed it in 0.6.7, and the PDF rendering was error-free. I have since opened and closed other graphics-laden tex files and the rendering issue does not appear as long as I'm using 0.6.7 TeXworks installed separately, in Program Files.

This is the link I used to download the windows installer for 0.6.7 TeXworks:
https://github.com/microsoft/winget-pkgs/blob/master/manifests/t/TUG/TeXworks/0.6.7/TUG.TeXworks.installer.yaml

It is possible that downloading and installing a stand-alone 0.6.8 TeXworks.exe from TUG would also work, meaning the important element would be having TeXworks in a separate folder, not the version number, but I haven't tried that.

Thank you again for your help!

@SpinHalfLight @u-fischer @edocevoli The pdf file generate by TeXworks is perfect. But the (DVI) window of TeXworks given to me a bad rendering. I have open an issue also for TeXworks at the link: TeXworks/texworks#1037.
I hope in a solution of the problem. Best regards to everyone.