Texmaker 进程已启动并挂起

Texmaker 进程已启动并挂起

当我尝试在 Texmaker 中运行我的脚本时,Texmaker 会向我显示“进程已启动”消息,但会一直挂起,并且实际上从未完成编译。我知道这些是很长的方程式,但 Texmaker 应该能够处理整篇论文。此外,我需要使用 breqn,因为我需要将方程式拆分到多行,尽管它们有组(有时我需要在不同的行上使用 \left( 和 \right))。如果相关的话,我还在使用 Texmaker PDFLaTeX。无论如何,我是 Texmaker 和 LaTeX 的新手,任何帮助都将不胜感激!这是我尝试运行的:

\documentclass[fleqn,12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{times, amsmath, setspace, breqn}

\doublespace

\begin{document}

\noindent

\setlength{\mathindent}{0pt}

\begin{dmath}[style={\mathindent=0pt}]
\left((-1-n) \left(-1/((-2+n) \sigma_{i} )k^2 x_{\alpha,i,j}  \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^{-1+k} \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \\
\times \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi ^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \\
\times \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \left(1+\frac{2 tan^{-1}[\phi_{i} ] sgn[y_{i} -\mu_{i} ]}{\pi}\right)^{-k} \sgn\left[\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right] \\
+1/((-2+n) \pi )2 k^2 x_{\alpha,i,j}  \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^k tan^{-1}[\phi_{i} ] \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\
\times \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\
/\left(k\left(1+1/(-2+n)k \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^k \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\
\times \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}}    \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\
\times \left(1+\frac{2 tan^{-1}[\phi_{i} ] sgn[y_{i} -\mu_{i} ]}{\pi }\right)^{-k}\right)\right)
\end{dmath}

\end{document}

请注意,breqn 允许你跨行换行。例如,下面的代码运行正常:

\documentclass[fleqn,12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{times, amsmath, amssymb, graphics, setspace, breqn}

\doublespace

\begin{document}

\noindent

\setlength{\mathindent}{0pt}

\begin{dmath}[style={\mathindent=0pt}]
-\text{Log}[2]+\text{Log}[k]-\text{Log}[\beta  \psi ]-\frac{3}{2}\text{Log}\left[\text{Beta}\left[\frac{1}{k},\frac{n}{k}\right]\right]+\frac{1}{2} \text{Log}\left[1+\frac{12 \text{ArcTan}[\gamma  \omega ]^2}{\pi ^2}-\frac{16 \text{ArcTan}[\gamma  \omega ]^2 \text{Beta}\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 \text{Beta}\left[\frac{1}{k},\frac{n}{k}\right] \text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right]+\frac{1}{2} \text{Log}\left[\text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]\right]+\frac{1}{k}(-1-n) \text{Log}\left[1+1/(-2+n)k \text{Abs}\left[\frac{x-\alpha  \chi }{\beta  \psi }\right]^k \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{\text{Beta}\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\ 
\left(\sqrt{1+\frac{12 \text{ArcTan}[\gamma  \omega ]^2}{\pi ^2}-\frac{16 \text{ArcTan}[\gamma  \omega ]^2 \text{Beta}\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 \text{Beta}\left[\frac{1}{k},\frac{n}{k}\right] \text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \sqrt{\text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\
\left(1+\frac{2 \text{ArcTan}[\gamma  \omega ] \text{Sign}[x-\alpha  \chi ]}{\pi }\right)^{-k}\right]
\end{dmath}
Alpha
\end{document}

输出为:

这看起来正是我需要的

答案1

尝试使用“pdflatex”命令从终端编译源代码。该命令不应挂起,然后,您可以看到错误。我在使用 TexMaker 时也遇到过类似的问题。希望这种情况不经常发生。

相关内容