在 texmaker 中生成 pdf 时出现的问题

在 texmaker 中生成 pdf 时出现的问题

我正在尝试在 Mac OS Catalia 10.15.6 中的 texmaker 5.0.4 上编译 latex 文件。我拥有所有必需的 MacTex 文件,并且我已确保 texmaker 中的首选项设置正常。当我编译时,它总是给我两个错误,并且没有生成 pdf 文件:

  • 将数据写入 PDF 文件后,PDF 版本无法更改。
  • 发生致命错误,未生成输出 PDF 文件!我尝试在序言开头添加 \RequirePackage{pdf14} 并关闭 Acrobat Reader。但都不起作用。这只是我上周使用的新 Mac 中的一个问题。在我的旧 Mac 上,使用 texmaker 5.0.3 和 Mac OS Catalia 10.15.6,编译在完全相同的设置下运行良好。

任何帮助都将受到高度赞赏。

我的序言如下:

%\RequirePackage{pdf14}
\documentclass[11pt,english]{article} %by Mehmet
%\documentclass[opre,nonblindrev,copyedit]{informs3} %by Han
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
\usepackage{color}
\usepackage{array}
\usepackage{float}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage[authoryear]{natbib}
%\usepackage{ulem} %%the effect of deleteing words/sentences
\usepackage{graphicx}%for subfigure added by Han
\usepackage{subfigure}%for subfigure added by Han
\usepackage{booktabs}%for table cmidrule command added by Han
\setstretch{1.6}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\setlength{\textwidth}{6.6in}\setlength{\textheight}{9.0in}\setlength{\topmargin}{-0.5in}\usepackage{babel}
\usepackage{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}

\theoremstyle{plain}
\newtheorem{mypred}{Prediction}

\@ifundefined{showcaptionsetup}{}{%
 \PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother

\usepackage{babel}

\usepackage{tabu}
\usepackage{url}
\usepackage{array}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage{enumerate}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{geometry}
\geometry{verbose,tmargin=2.3cm,bmargin=2.4cm,lmargin=2.2cm,rmargin=2.2cm}
% Natbib setup for author-year style
\usepackage{natbib}
\usepackage[final]{changes}
\definechangesauthor[name=Mehmet, color=purple]{MG}
\definechangesauthor[name=Saibal, color=red]{SR}
\definechangesauthor[name=Han, color=blue]{HZ}
 \bibpunct[, ]{(}{)}{,}{a}{}{,}%
 \def\bibfont{\small}%
 \def\bibsep{\smallskipamount}%
 \def\bibhang{24pt}%
 \def\newblock{\ }%
 \def\ep{\epsilon}%%%added by Han
 \def\uep{\underline{\ep}}%%%added by Han
 \def\oep{\overline{\epsilon}}%%%added by Han
 \def\bc{\bar{c}}%%%added by Han
 \def\BIBand{and}%
\pdfminorversion 3
%% Setup of theorem styles. Outcomment only one.
%% Preferred default is the first option.

\usepackage[pagewise]{lineno}
\usepackage{soul}

% Theorem environments
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem*{main}{Main~Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{assumption}{Assumption}
\newtheorem{example}{Example}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{observation}{Observation}%%added by Han
\theoremstyle{remark}
\newtheorem*{notation}{Notation}
\numberwithin{equation}{section}
\newtheorem{hypothesis}{Hypothesis}%%%added by Han
\newcommand{\thmref}[1]{Theorem~\ref{#1}}
\newcommand{\secref}[1]{\S\ref{#1}}
\newcommand{\lemref}[1]{Lemma~\ref{#1}}
\newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,}
\newcommand{\hlcyan}[1]{{\sethlcolor{cyan}\hl{#1}}}
\newcommand{\hlred}[1]{{\sethlcolor{red}\hl{#1}}}

相关内容