
我相信,這段程式碼是正確的。我將其包含在一篇文章中,我的 DokuWiki 安裝(Miktex/Windows)渲染了它,但它只有 8x16 像素:
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (1, 3);
\draw[thick, ->] (0, 0) -- (A);
\node[above right] at (A) {$A = (1, 3)$};
\end{tikzpicture}
同時,當我刪除文字節點時,它會起作用:
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (1, 3);
\draw[thick, ->] (0, 0) -- (A);
\end{tikzpicture}
你會如何嘗試克服這個問題?
更新。
引擎生成這個 TeX:
\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\usepackage{tikz}
\pagestyle{empty}
\begin{document}
\definecolor{MyColour}{rgb}{0.50,0.00,0.00}
{\color{MyColour}
\begin{tikzpicture}
\coordinate (A) at (1, 3);
\draw[thick, ->] (0, 0) -- (A);
\node[above right] at (A) {$A = (1, 2)$};
\end{tikzpicture}
}\end{document}
第一個轉換 .tex > .dvi 看起來不錯。但第二個 .dvi > .ps 毀了它(dvips.exe -E tmp.dvi -o tmp.ps)。二進位檔案:https://yadi.sk/d/hBXNFn5tSp0NYg
答案1
看來問題出在 dvips 的命令列。它包括“嘗試創建 EPSF”鍵“-E”。不知道,這是做什麼用的。沒有它效果更好(目前)。
我並不是唯一一個遇到這個問題的人:https://github.com/marklundeberg/dokuwiki-plugin-latex/issues/10