pstricks pspicture psgrid - 輸出上不顯示任何內容

pstricks pspicture psgrid - 輸出上不顯示任何內容

早上,我嘗試製作一個簡單的網格並畫一條線(方便)。我的台詞很基礎。我將 MikTex 與 TexStudio 一起使用。編譯正常,PDF 已完成,但除了頁碼之外什麼都沒有 - 在本例中為“1”。我已經沒有線索了...

這是我的程式碼:

\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pstricks-add} %for the handy line

\begin{document}
    
    \begin{pspicture}(-1,-1)(2,1)
        \psgrid(-1,-1)(2,1)
    \end{pspicture}

    \begin{pspicture}(0,-0.5)(3,0.5)
        \pslineByHand(0,0)(3,0)
    \end{pspicture}

\end{document}

以及編譯時來自系統的訊息:

Process started: latex -src -interaction=nonstopmode "untitled-1".tex
Process exited normally

鈦酸化。

答案1

好的。我的錯。這是我使用的編譯方法。正如評論所說其他用戶上面,我嘗試了 DVI / PS / PDF,現在工作正常。我認為 TeXStudio 中的過程並不像看起來那麼容易。安裝後我還沒有配置該應用程序,也許這是問題所在。感謝大家的幫忙。

相關內容