如何解决 PdfLatex 中的错误“进程因错误而退出”?

如何解决 PdfLatex 中的错误“进程因错误而退出”?

我正在准备一张海报(a0尺寸,横向)用于演示特克斯工作室。这是海报的代码

\documentclass[final,hyperref={pdfpagelabels=false}]{beamer}
\usepackage{grffile}
\mode<presentation>{\usetheme{drexel}}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{amsmath,amsthm,amssymb,latexsym}
\usefonttheme[onlymath]{serif}

\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}

\usepackage{array,booktabs,tabularx}
\newcolumntype{Z}{>{\centering\arraybackslash}X} % centered tabularx columns
\newcommand{\pphantom}{\textcolor{ta3aluminium}} % phantom introduces a vertical space in p formatted table columns??!!

\title{\huge Drexel University Poster Template\\An Example}
\author{\href{http://www.cs.drexel.edu/~eas28/}{Evan A.~Sultanik}}
\email{\href{mailto:[email protected]}{\texttt{[email protected]}}}
\institute[Drexel University]{Department of Computer Science, Drexel University, Philadelphia, PA, USA}
\date[April 16th, 2010]{April 16th, 2010}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\columnheight}
\setlength{\columnheight}{105cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}
\noindent\begin{columns}
% ---------------------------------------------------------%
% Set up a column 
\begin{column}{.49\textwidth}
  \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}
    \begin{minipage}[T]{.95\textwidth}  % tweaks the width, makes a new \textwidth
      \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously
        % Since all columns are the same length, it is all nice and tidy.  You have to get the height empirically
        % ---------------------------------------------------------%
        % fill each column with content            
        \begin{block}{Introduction}

                       non dolor.

        \end{block}
        \vfill
        \begin{block}{Problem Description}

                        nisl aliquam condimentum.

        \end{block}
        \vfill
        \begin{block}{Related Work}

                      et urna tempor bibendum.

        \end{block}
        \vfill
        \begin{block}{Approach}

                        neque dictum.

        \end{block}
      }
    \end{minipage}
  \end{beamercolorbox}
\end{column}
% ---------------------------------------------------------%
% end the column

% ---------------------------------------------------------%
% Set up a column 
\begin{column}{.49\textwidth}
  \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}
    \begin{minipage}[T]{.95\textwidth} % tweaks the width, makes a new \textwidth
      \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously
        % Since all columns are the same length, it is all nice and tidy.  You have to get the height empirically
        % ---------------------------------------------------------%
        % fill each column with content

        \begin{block}{The Algorithm}

                       potenti. Vestibulum vel urna vitae neque tincidunt
          pellentesque.

        \end{block}
        \vfill
        \begin{block}{Empirical Analysis}
          elem

        \end{block}
        \vfill
        \begin{block}{Future Work}

                        ultricies nunc.

        \end{block}
        \vfill
        \begin{block}{Conclusions}

                        adipiscing sapien risus a leo.

        \end{block}
      }
      % ---------------------------------------------------------%
      % end the column
    \end{minipage}
  \end{beamercolorbox}
\end{column}
% ---------------------------------------------------------%
% end the column
  \end{columns}
\end{frame}
\end{document}

我收到错误

进程因错误而退出

任何有助于消除错误的帮助。

答案1

TeXStudio 的错误报告似乎有问题。如果我编译你的文档并注释掉该\usetheme行(我没有该主题),仍然会出现\email未定义的错误。但是,如下图所示

picture of texstudio output

Undefined control sequence未报告错误信息。

使用 TeXworks 编译器会停止:

enter image description here

您可以在此处找到主题和一些相关文件GitHub 页面。然而,这似乎并不完整,因为在聊天中讨论

无论如何,检查日志文件是查找和修复错误的唯一可靠方法。

答案2

我最初安装软件时也遇到了同样的错误。错误以“进程因错误退出”结尾。解决方案是打开 texmaker 并转到选项-->设置文件-->重置设置。这将重新启动 Texmaker,之后您应该会没事的。

相关内容