1
\documentclass[border=15pt,pstricks,12pt]{standalone}
\usepackage{pst-node,amsmath}
\begin{document}
\begin{pspicture}[showgrid,linejoin=1]
\pnodes(2,3){A}(6,6){C}(6,3){B}(10,6){D}

\pcline(A)(C) \bput{:0}(.4){\text{$\dfrac{\sqrt{20}}{4}$}}
\pcline(A)(C) \naput[nrot=:U]{$\dfrac{\sqrt{12}}{4}+\sqrt[3]{ab}$}
\pcline(A)(C) \lput*{80}(.8){$\dfrac{\sqrt{20}}{4}$}

\pcline(B)(D) \bput(.4){$\dfrac{\sqrt{20}}{4}$}
\pcline(B)(D) \naput{$\dfrac{\sqrt{12}}{4}+\sqrt[3]{ab}$}
\pcline(B)(D) \lput*{90}(.8){$\dfrac{\sqrt{20}}{4}$}
\end{pspicture}
\end{document}

enter image description here

Question: The math labels look jagged on Adobe Acrobat Reader DC. How can I fix it?

enter image description here

  • 1
    I get far better resolution in the output and therefore less jaggedness. Perhaps see if you get bad results in the printing, or when using a different viewer (I used SumatraPDF). You can also attempt to use \rotatebox from graphicx. – Werner Mar 04 '19 at 05:56
  • @Werner Oh, thanks for your comment but I am using Acrobat Reader DC. –  Mar 04 '19 at 06:17
  • 2
    \rotatebox does the same. However, you should use a correct question! You do not want to know how nrot works, you want to know why you get such ugly root lines! And this has nothing to do with nrot! –  Mar 04 '19 at 06:37
  • Example compiled with TeXLive on linux, displayed using Adobe Acrobat DC in a Win10 VM, no issues. I had issues with Evince, but they went away when zoomin in. What kind of display settings do you have in your DC? – daleif Mar 04 '19 at 10:01
  • @daleif I do not have the knowledge about it. I think my DC get by default. –  Mar 04 '19 at 10:04
  • You can check it under Edit -> preferences -> Page display – daleif Mar 04 '19 at 10:08
  • @daleif See edited question. How can I do? –  Mar 04 '19 at 10:12
  • Settings look ok, in particular since "smooth line art" is enabled. – AlexG Mar 04 '19 at 10:18
  • @chishimutoji I also have the same problem with Acrobat Reader. Don't worry, if I use the built-in viewer of VS Code or use Google Chrome to view PDF, there are no problems. Therefore, the problem is about the viewer, so the question is off-topic here, I'm afraid. You should contact the developer for a solution instead. –  Mar 04 '19 at 10:18

1 Answers1

3

It is a problem with the viewer.

\documentclass[border=15pt,pstricks,12pt]{standalone}
\usepackage{pstricks,pst-node,amsmath}
\begin{document}
    \begin{pspicture}[showgrid,linejoin=1]
    \pnodes(2,3){A}(6,6){C}(6,3){B}(10,6){D}    
    \pcline(A)(C) \bput{:0}(.4){\text{$\dfrac{\sqrt{20}}{4}$}}
                  \naput[nrot=:U]{$\dfrac{\sqrt{12}}{4}+\sqrt[3]{ab}$}
                  \lput*{80}(.8){$\dfrac{\sqrt{20}}{4}$}

    \end{pspicture}
\end{document}

The output with macOS viewer:

enter image description here

  • Do you use Windows system? –  Mar 04 '19 at 09:08
  • @chishimutoji The answer says Mac OS – Dr. Manuel Kuehner Mar 04 '19 at 09:24
  • @Dr.ManuelKuehner Yes, I see but I am using Windows. Sob! I do not know anyone get also the same output as me. –  Mar 04 '19 at 09:27
  • 2
    Compare it with an output of a printer and it should be ok. It depends to your viewer and the resolution of your monitor. –  Mar 04 '19 at 09:34
  • What does " Compare it with an output of a printer " mean ? I do not understand it clearly. –  Mar 04 '19 at 09:55
  • 1
    @chishimutoji print the pdf file on paper. If the output is ok, then the problem is the viewer in combination with the screen resolution. Herbert is an expert on this topic, I have read more than one book of him. I would trust his advice. – Dr. Manuel Kuehner Mar 04 '19 at 09:57