TeX-PDF模式在Emacs中始终不起作用。

时间:2016-08-24 14:22:37

标签: emacs latex auctex

我在Mac上使用Emacs(Aquamacs)作为我的LaTex文件。

我总是想使用LaTex(不是Tex)并且总是生成PDF文件。 .emacs文件包含

(setq TeX-PDF-mode t) 

除了其他一些东西。

通常一切正常,但有些文件让我发疯。

如果我打开它们:

  1. 未启用TeX-PDF模式并创建“.dvi”文件。
  2. View命令打开TeXShop而不是Skim。
  3. 我认为其他文件没有任何区别,为什么会这样?

    \documentclass{article}   
    
    \usepackage{graphicx}
    \usepackage{epsfig,psfrag,mathrsfs,amsmath,amsfonts,amssymb}
    \usepackage{color}
    \usepackage{multirow}
    \usepackage{authblk}
    \usepackage{hyperref}
    \usepackage{pgf}
    \usepackage{tikz}
    
    \providecommand{\keywords}[1]{\textbf{\textit{Keywords:}} #1}
    %\providecommand{\preprint}[1]{{\small  #1}}
    \newtheorem{remark}{Remark}
    \newtheorem{example}{Example}
    \newcommand\preprint[1]{
      \begingroup
      \renewcommand\thefootnote{}\footnote{\\#1}
      \addtocounter{footnote}{-1}
      \endgroup
    }
    \begin{document}
    \title{Some title}
    \author{some one}
    \date{January 29, 2014}
    \maketitle 
    \preprint{Preprint submitted to {\em  Journal of Scientific Computing}.}
    
    \begin{abstract}
    some text
    \end{abstract}
    
    
    \section{Introduction}
    More text.\cite{article:BS2000}
    
    \begin{thebibliography}{10}
    
    \bibitem{article:BS2000}
    No one.
    \newblock foo foo.
    \newblock {\em J.\ Comput.\ Phys.}.
    
    \end{thebibliography}
    
    \end{document}
    
    %%% Local Variables: 
    %%% mode: latex
    %%% TeX-master: t
    %%% End: 
    

0 个答案:

没有答案
相关问题