Journal of Statistical Software 클래스가 AUCTeX의 미리보기를 중단합니다.

Journal of Statistical Software 클래스가 AUCTeX의 미리보기를 중단합니다.

저는 AUCTeX 11.86-11데비안 안정 버전을 사용하고 있습니다.

jss.sty에 포함된 스타일 파일JSS 스타일 파일 zip 아카이브간단한 파일을 사용해도 AUCTeX 미리보기가 깨집니다. 참고: jsslogo.jpg파일도 필요합니다. 예를 들어, 다음 파일

\documentclass[article]{jss} 
\begin{document} 
$x$ 
\end{document}

오류가 발생합니다

LaTeX에서 미리보기 이미지를 찾을 수 없습니다.

더 자세한 오류는 다음과 같습니다.

ERROR: Illegal parameter number in definition of \MYLATEXline.

--- TeX said ---
<to be read again> 
                   1
l.386   \gdef\FV@BeginScanning#1^^M
                                   {%

AUCTeX 사용자라면 누구나 할 수 있나요?

  1. 이것을 확인하다
  2. 문제가 무엇인지 말해주세요.

또한 AUCTeX 목록을 시도해보고 해결책이 발견되면 여기에서 업데이트하겠습니다.

답변1

사이트에서 이 작업을 허용하는지 모르겠습니다. 로고가 LaTeX 경로에 있어야 한다는 점을 제외하면 위 클래스에는 아무런 문제가 없었습니다. 요청하시면 답변을 삭제할 수 있습니다.

업데이트

pdfTeX 또는 AUCTeX의 기본 엔진으로 Preview LaTeX를 실행하면 다음 오류가 발생합니다.

  l.386   \gdef\FV@BeginScanning#1^^M
                                     {%
  ! Illegal parameter number in definition of \MYLATEXline.
  <to be read again> 
                     1
  l.389 \endgroup
                 
  ! Illegal parameter number in definition of \MYLATEXline.
  <to be read again> 
                     1
  l.395 ...be discarded. Hit <return> to continue.}}
                                                    
  ! Illegal parameter number in definition of \MYLATEXline.
  <to be read again> 
                     1
  l.402 \gdef\FancyVerbGetLine#1^^M 

적어도 Faheem Mitha가 언급한 오류 중 일부는 확인되었습니다. 그러나 TeX-engine-set를 으로 설정 하자마자 XeTeXPreview LaTeX는 문서의 편집되지 않은 첫 번째 출력에서 ​​아래와 같이 추가 오류 없이 완벽하게 컴파일됩니다.

또한 엔진에 관계없이 필요한 파일 *.jpg가 LaTeX 경로에서 제거되면 다음을 수행합니다.

 ! LaTeX Error: File `jsslogo' not found.
 ...
 LaTeX exited abnormally with code 1 

문서가 컴파일되지 않습니다.

수정되지 않은 상태로 남아 있음

불행하게도 제가 얻은 결과는 질문에 대한 답변에 실패했습니다. 첫째, Faheem Mitha가 경험한 AUCTeX에서 Preview LaTeX의 오류를 확인할 수 없고, 이를 재현할 수도 없고, 문제에 대한 설명은커녕, 나에게는 아무것도 없었기 때문입니다. 또한 Sean Allred와 같은 다른 알려진 멤버가 AUCTeX에서 Preview LaTeX의 문제를 확인하고 jss.cls그 중 일부를 재현할 수도 있었기 때문에 내 답변이 질문에 비해 너무 현지화되어 있다는 결론에 도달해야 합니다.

Faheem Mitha는 답변을 삭제하지 말고 얻은 결과에 대한 세부 정보를 제공하도록 요청했습니다.

파일의 압축이 풀리고 그에 따라 TDS에 포함되었으며 나중에 mktexlsr. 컴파일하는 동안 내가 직면한 유일한 오류는 op에서 언급한 것처럼 클래스 파일의 요구 사항인 누락된 로고 파일에 관한 것이었습니다. 이 사소한 문제는 나중에 로고를 포함함으로써 해결되었습니다 jpg.

다음은 문서의 컴파일된 출력에서 ​​클래스에 의해 로드된 패키지에 대한 자세한 설명입니다.

  Running `Preview-LaTeX' on `_region_' with ``xelatex  "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" _region_.tex''
  This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
   restricted \write18 enabled.
  entering extended mode
  LaTeX2e <2011/06/27>
  Babel <3.9g> and hyphenation patterns for 78 languages loaded.
  
  No auxiliary output files.
  
  (./_region_.tex  !name(jssauctexsample.tex)
  (~/texmf/tex/latex/jss/jss.cls
  Document Class: jss 2013/04/06 2.2 jss class by Achim Zeileis
  (~/texmf-dist/tex/latex/base/article.cls
  Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
  (~/texmf-dist/tex/latex/base/size11.clo))
  (~/texmf-dist/tex/latex/graphics/graphicx.sty
  (~/texmf-dist/tex/latex/graphics/keyval.sty)
  (~/texmf-dist/tex/latex/graphics/graphics.sty
  (~/texmf-dist/tex/latex/graphics/trig.sty)
  (~/texmf-dist/tex/latex/latexconfig/graphics.cfg)
  (~/texmf-dist/tex/xelatex/xetex-def/xetex.def)))
  (~/texmf-dist/tex/latex/graphics/color.sty
  (~/texmf-dist/tex/latex/latexconfig/color.cfg))
  (~/texmf-dist/tex/latex/ae/ae.sty
  (~/texmf-dist/tex/latex/base/fontenc.sty
  (~/texmf-dist/tex/latex/base/t1enc.def)
  (~/texmf-dist/tex/latex/ae/t1aer.fd)))
  (~/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
  Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix 
  <2008/02/07> (tvz)) (~/texmf-dist/tex/latex/base/fontenc.sty
  (~/texmf-dist/tex/latex/base/t1enc.def))
  (~/texmf-dist/tex/latex/upquote/upquote.sty
  (~/texmf-dist/tex/latex/base/textcomp.sty
  (~/texmf-dist/tex/latex/base/ts1enc.def)))
  (~/texmf-dist/tex/latex/natbib/natbib.sty
  
  ! LaTeX Error: \makeindex undefined.
  
  See the LaTeX manual or LaTeX Companion for explanation.
  Type  H <return>  for immediate help.
   ...                                              
                                                    
  l.795 \renewcommand\makeindex
                               {\NAT@makeindex
  ) (~/texmf-dist/tex/latex/hyperref/hyperref.sty
  (~/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
  (~/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
  (~/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
  (~/texmf-dist/tex/latex/oberdiek/auxhook.sty)
  (~/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
  (~/texmf-dist/tex/latex/hyperref/pd1enc.def)
  (~/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
  (~/texmf-dist/tex/latex/url/url.sty))
  
  Package hyperref Message: Driver (autodetected): hxetex.
  
  (~/texmf-dist/tex/latex/hyperref/hxetex.def
  (~/texmf-dist/tex/latex/hyperref/puenc.def)
  (~/texmf-dist/tex/generic/oberdiek/stringenc.sty)
  (~/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
  
  Package hyperref Warning: Option `hyperindex' has already been used,
  (hyperref)                setting the option has no effect on input line 444.
  
  ) (./_region_.aux) (~/texmf-dist/tex/latex/base/ts1cmr.fd)
  (~/texmf-local/tex/latex/preview/preview.sty
  (~/texmf-local/tex/latex/preview/prtightpage.def)
  (~/texmf-local/tex/latex/preview/prauctex.def
  No auxiliary output files.
  
  
  (~/texmf-local/tex/latex/preview/prauctex.cfg))
  (~/texmf-local/tex/latex/preview/prfootnotes.def)
  Preview: Fontsize 10.95pt
  Preview: PDFoutput 1
  ) (~/texmf-dist/tex/latex/hyperref/nameref.sty
  (~/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
  
  Package hyperref Warning: Rerun to get /PageLabels entry.
  
  
  Package hyperref Warning: Token not allowed in a PDF string (Unicode):
  (hyperref)                removing `\\' on input line 5.
  
  (~/texmf-dist/tex/generic/oberdiek/se-ascii-print.def)
  ! Preview: Snippet 1 started.
  <-><->
        
  l.5            \begin{document}
                                 
  <use  "jsslogo.jpg" >
  Preview: Tightpage -32891 -32891 32891 32891
  ! Preview: Snippet 1 ended.(4288418+0x5885636).
  <-><->
        
  l.5            \begin{document}
                                 
  [1] (~/texmf-dist/tex/latex/psnfss/t1pzc.fd)
   !name(jssauctexsample.tex) !offset(-3) 
  ! Preview: Snippet 2 started.
  <-><->
        
  l.9            $
                  x$
  ! Preview: Snippet 2 ended.(308974+0x410139).
  <-><->
        
  l.9            $x$
                    
  [2] (~/texmf-dist/tex/latex/ae/t1aett.fd) )
  (see the transcript file for additional information)
  Output written on _region_.pdf (2 pages).
  Transcript written on _region_.log.
  
  Preview-LaTeX exited as expected with code 1 at Sun Dec 29 23:07:36
  Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf _region_.prv/tmp6152      Lva/preview.dsc''
  
  Preview-PDF2DSC finished at Sun Dec 29 23:07:36
  Running `Preview-Ghostscript' with ``gs -dOutputFile\=\(_region_.prv/tmp6152Lva/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r138.521x138.593''
  
  Preview-Ghostscript finished at Sun Dec 29 23:07:36

여기에 이미지 설명을 입력하세요

여기에 이미지 설명을 입력하세요

관련 정보