TeXnicCenter 使用 MikTeX 2.9 Windows 7 编译时出现的问题

TeXnicCenter 使用 MikTeX 2.9 Windows 7 编译时出现的问题

由于 PC 格式操作,我正在安装 Latex。我安装了 AcrobatPro 11;MiKTeX 2.9;和 TeXnicCenter (TXCSetup_2.02Stable_Win32);Ghostscript 9.11win32;gsview5.0

我通常像这样编译 LaTeX=>DVI=>PDF。但现在它挂了!我必须关闭 TXC 并重新启动。

所以现在我用的是 LaTeX=>PDF。但是我仍然遇到软件包问题texdraw。软件包安装正确,但是引入命令时出现问题。

\begin{figure}[h]
\begin{minipage}[t]{0.5\textwidth}
\centertexdraw{
    \drawdim cm
    \arrowheadtype t:F
    \move(0 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (2 -1.2){$P_1$}
    \move(2 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (4 -1.2){$P_2$} 
    \move(4 0) \fcir f:0 r:0.05  \lpatt(0.067 0.1)\rlvec (2 0) \lpatt()\fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (6 -1.2){$P_\textnormal{n}$}
    \move (0 0) \textref h:C v:T \htext (0 -.2){$O$}
    \move (2 0) \textref h:L v:T \htext (2 -.2){$\underline{I_1}$}
    \move (4 0) \textref h:L v:T \htext (4 -.2){$\underline{I_2}$}
    \move (6 0) \textref h:L v:T \htext (6 -.2){$\underline{I_\textnormal{n}}$}
    \move (.5 0) \lvec (.6 .1)      \move (.5 0) \lvec (.4 -.1) 
    \move (.6 0) \lvec (.7 .1)      \move (.6 0) \lvec (.5 -.1)
    \move (0 0) \rlvec (0 .6) \move (2 0) \lvec (2 .6) \move (1 0) \textref h:C v:B \htext (1 0.1){$L_1$}
    \move (0 0.5)       \arrowheadtype t:V \avec (2 0.5)
    \move (0 0.5) \rlvec (0 0.6) \move (4 0) \lvec (4 1.2) \move (3 0) \textref h:C v:B \htext (3 0.6){$L_2$}
    \move (0 1)         \arrowheadtype t:V \avec (4 1)
    \move (0 1) \rlvec (0 0.6) \move (6 0) \lvec (6 1.6) \move (5 0) \textref h:C v:B \htext (5 1.1){$L_\textnormal{n}$}
    \move (0 1.5)       \arrowheadtype t:V \avec (6 1.5)
    \move (0 2) \move (0 -2) %Para hacer sitio
    }       
\caption{Monofásica. Esquema unifilar.}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centertexdraw{
    \drawdim cm
    \arrowheadtype t:F
    \move(0 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (2 -1.2){$P_1$}
    \move(2 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (4 -1.2){$P_2$} 
    \move(4 0) \fcir f:0 r:0.05  \lpatt(0.067 0.1)\rlvec (2 0) \lpatt()\fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (6 -1.2){$P_\textnormal{n}$}
    \move (0 0) \textref h:C v:T \htext (0 -.2){$O$}
    \move (2 0) \textref h:L v:T \htext (2 -.2){$\underline{I_1}$}
    \move (4 0) \textref h:L v:T \htext (4 -.2){$\underline{I_2}$}
    \move (6 0) \textref h:L v:T \htext (6 -.2){$\underline{I_\textnormal{n}}$}
    \move (.5 0) \lvec (.6 .1)      \move (.5 0) \lvec (.4 -.1) 
    \move (.6 0) \lvec (.7 .1)      \move (.6 0) \lvec (.5 -.1)
    \move (.7 0) \lvec (.8 .1)      \move (.7 0) \lvec (.6 -.1)
    \move (.8 0) \lvec (.9 .1)      \move (.8 0) \lvec (.7 -.1)     
    \move (0 0) \rlvec (0 .6) \move (2 0) \lvec (2 .6) \move (1 0) \textref h:C v:B \htext (1 0.1){$L_1$}
    \move (0 0.5)       \arrowheadtype t:V \avec (2 0.5)
    \move (0 0.5) \rlvec (0 0.6) \move (4 0) \lvec (4 1.2) \move (3 0) \textref h:C v:B \htext (3 0.6){$L_2$}
    \move (0 1)         \arrowheadtype t:V \avec (4 1)
    \move (0 1) \rlvec (0 0.6) \move (6 0) \lvec (6 1.6) \move (5 0) \textref h:C v:B \htext (5 1.1){$L_\textnormal{n}$}
    \move (0 1.5)       \arrowheadtype t:V \avec (6 1.5)
    \move (0 2) \move (0 -2) %Para hacer sitio
    }   
\caption{Trifásica. Esquema unifilar.}
\end{minipage}
\end{figure}

这个错误指向了句子结尾的括号$\centertexdraw{ }$

错误日志表明以下内容:

pdflatex> ! LaTeX Error: Unknown graphics extension: .ps1

如果有人知道解决方案...提前感谢!

答案1

显然你需要从 LaTeX=>DVI=>PS=>PDF 进行编译。LaTeX=>PDF 总是给出相同的错误。我在序言中使用:

\documentclass[dvips,pdf,xcolor,10pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{texdraw}
%\usepackage{auto-pst-pdf}

\begin{document}
\begin{figure}[h]
\begin{minipage}[t]{0.5\textwidth}
\centertexdraw{
    \drawdim cm
    \arrowheadtype t:F
    \move(0 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (2 -1.2){$P_1$}
    \move(2 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (4 -1.2){$P_2$} 
    \move(4 0) \fcir f:0 r:0.05  \lpatt(0.067 0.1)\rlvec (2 0) \lpatt()\fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (6 -1.2){$P_\textnormal{n}$}
    \move (0 0) \textref h:C v:T \htext (0 -.2){$O$}
    \move (2 0) \textref h:L v:T \htext (2 -.2){$\underline{I_1}$}
    \move (4 0) \textref h:L v:T \htext (4 -.2){$\underline{I_2}$}
    \move (6 0) \textref h:L v:T \htext (6 -.2){$\underline{I_\textnormal{n}}$}
    \move (.5 0) \lvec (.6 .1)      \move (.5 0) \lvec (.4 -.1) 
    \move (.6 0) \lvec (.7 .1)      \move (.6 0) \lvec (.5 -.1)
    \move (0 0) \rlvec (0 .6) \move (2 0) \lvec (2 .6) \move (1 0) \textref h:C v:B \htext (1 0.1){$L_1$}
    \move (0 0.5)       \arrowheadtype t:V \avec (2 0.5)
    \move (0 0.5) \rlvec (0 0.6) \move (4 0) \lvec (4 1.2) \move (3 0) \textref h:C v:B \htext (3 0.6){$L_2$}
    \move (0 1)         \arrowheadtype t:V \avec (4 1)
    \move (0 1) \rlvec (0 0.6) \move (6 0) \lvec (6 1.6) \move (5 0) \textref h:C v:B \htext (5 1.1){$L_\textnormal{n}$}
    \move (0 1.5)       \arrowheadtype t:V \avec (6 1.5)
    \move (0 2) \move (0 -2) %Para hacer sitio
    }       
\caption{Monofásica. Esquema unifilar.}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centertexdraw{
    \drawdim cm
    \arrowheadtype t:F
    \move(0 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (2 -1.2){$P_1$}
    \move(2 0) \fcir f:0 r:0.05 \rlvec (2 0) \fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (4 -1.2){$P_2$} 
    \move(4 0) \fcir f:0 r:0.05  \lpatt(0.067 0.1)\rlvec (2 0) \lpatt()\fcir f:0 r:0.05 \ravec (0 -1) \textref h:C v:T \htext (6 -1.2){$P_\textnormal{n}$}
    \move (0 0) \textref h:C v:T \htext (0 -.2){$O$}
    \move (2 0) \textref h:L v:T \htext (2 -.2){$\underline{I_1}$}
    \move (4 0) \textref h:L v:T \htext (4 -.2){$\underline{I_2}$}
    \move (6 0) \textref h:L v:T \htext (6 -.2){$\underline{I_\textnormal{n}}$}
    \move (.5 0) \lvec (.6 .1)      \move (.5 0) \lvec (.4 -.1) 
    \move (.6 0) \lvec (.7 .1)      \move (.6 0) \lvec (.5 -.1)
    \move (.7 0) \lvec (.8 .1)      \move (.7 0) \lvec (.6 -.1)
    \move (.8 0) \lvec (.9 .1)      \move (.8 0) \lvec (.7 -.1)     
    \move (0 0) \rlvec (0 .6) \move (2 0) \lvec (2 .6) \move (1 0) \textref h:C v:B \htext (1 0.1){$L_1$}
    \move (0 0.5)       \arrowheadtype t:V \avec (2 0.5)
    \move (0 0.5) \rlvec (0 0.6) \move (4 0) \lvec (4 1.2) \move (3 0) \textref h:C v:B \htext (3 0.6){$L_2$}
    \move (0 1)         \arrowheadtype t:V \avec (4 1)
    \move (0 1) \rlvec (0 0.6) \move (6 0) \lvec (6 1.6) \move (5 0) \textref h:C v:B \htext (5 1.1){$L_\textnormal{n}$}
    \move (0 1.5)       \arrowheadtype t:V \avec (6 1.5)
    \move (0 2) \move (0 -2) %Para hacer sitio
    }   
\caption{Trifásica. Esquema unifilar.}
\end{minipage}
\end{figure}
\end{document}

在此处输入图片描述

相关内容