[ESS] Help with latex mode and weave files

Shawn Boles shawn at ori.org
Fri Jul 29 23:21:57 CEST 2005

Hi All:

This may not be an ess question but I am hoping for some help using
latex with weave files.

On a windows xp machine I have installed:

MikTex 2.4.1667 
emacs 21.3.1
ess 5.2.7 
R 2.1.0

I use Sweave to process a Test.Rnw file and have no trouble using
pdflatex with the output file via ' system("pdflatex Test.tex")' in R.
Compilation occurs in the R process buffer.

But if I try latex -

A: with bash shell: 

1. Using C-c C-b (tex-buffer)or C-c C-r (tex-region)in a LaTeX mode
buffer, produces the Backtrace message below.  The tex shell is created
but is empty.

Debugger entered--Lisp error: (file-error "Spawning child process"
"invalid argument")
  start-process("tex-shell" #<buffer *tex-shell*>
  apply(start-process "tex-shell" #<buffer *tex-shell*>
"\\cygwin\\bin\\bash.exe" nil)
  comint-exec-1("tex-shell" #<buffer *tex-shell*>
"\\cygwin\\bin\\bash.exe" nil)
  comint-exec(#<buffer *tex-shell*> "tex-shell"
"\\cygwin\\bin\\bash.exe" nil nil)
  make-comint-in-buffer("tex-shell" nil "\\cygwin\\bin\\bash.exe" nil)
  apply(make-comint-in-buffer "tex-shell" nil "\\cygwin\\bin\\bash.exe"
nil nil)
  make-comint("tex-shell" "\\cygwin\\bin\\bash.exe" nil)
  tex-region(10487 10582)
* call-interactively(tex-region)

2. Executing the function again creates a  tmp file:
_TZ_-1-SHAWNBXP.tex. This file has an incorrect tex-trailer (
\end\s-*{document}) instead of \end{document}. 

3. The tex shell now contains:
latex "\nonstopmode\input" _TZ_-1-SHAWNBXP.tex

The mini-buffer shows:
Wrong type argument,markerp nil.


If I try step A 1 under the cmd shell, emacs hangs and must be killed.

Obviously I have done something wrong in the installation.

Thanks in advance for any help with this.

- Shawn Boles

More information about the ESS-help mailing list