Skip to content

How to run Bibtex with pdfLatex in StatEt/MikTex on Windows ?

6 messages · syrvn, Duncan Murdoch

#
Hello,

I have exactly the same problem that bibtex is not being called and so the
bibliography is not being processed...

Did you find any solution for that?

Many thanks
syrvn

--
View this message in context: http://r.789695.n4.nabble.com/How-to-run-Bibtex-with-pdfLatex-in-StatEt-MikTex-on-Windows-tp2271396p3867625.html
Sent from the R help mailing list archive at Nabble.com.
#
On 03/10/2011 10:12 AM, syrvn wrote:
That sounds like a StatET question.  You should get bibtex if you run R 
CMD texi2dvi --pdf (or R CMD texi2pdf in the upcoming R 2.14).

But you can always just run bibtex manually...

Duncan Murdoch
#
Hi Duncan,

you were right. texi2dvi does latex + bibtex. Unfortunately I cannot get it
running.

When I run texi2dvi(file = "path/to/tex/file", pdf=TRUE, quiet=FALSE) then I
get the following error message:

___________________________________________________________________________
Error in texi2dvi(file = "/Users/XXX/Desktop/test/body.tex", texinputs =
"/Library/Frameworks/R.framework/Resources/share/texmf/tex/latex/tex",  : 
  Running 'texi2dvi' on '/Users/XXX/Desktop/test/body.tex' failed.
Output:
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://www.tug.org.  If
you happen to be using Debian, you can get it with this command:
  apt-get install tetex-bin
__________________________________________________________________________


So the output tells us it cannot find a a tex binary file. If I open my
terminal and type in:

/Library/Frameworks/R.framework/Resources/share/texmf/tex/latex/tex

I get the following output:

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
**

which means the tex binary is there.


--
View this message in context: http://r.789695.n4.nabble.com/How-to-run-Bibtex-with-pdfLatex-in-StatEt-MikTex-on-Windows-tp2271396p3868063.html
Sent from the R help mailing list archive at Nabble.com.
#
I am a bit confused...

I wrote a little shell script called tex2pdf which just calls: texi2pdf
body.tex and when I execute it
in a terminal it runs smoothly. If I type into R: system("/Path/to/tex2pdf")
I get the same error message:


You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://www.tug.org.  If
you happen to be using Debian, you can get it with this command:
  apt-get install tetex-bin


How can this happen? I originally thought it's a problem with the texi2dvi
function in R but it seems to be something else...

--
View this message in context: http://r.789695.n4.nabble.com/How-to-run-Bibtex-with-pdfLatex-in-StatEt-MikTex-on-Windows-tp2271396p3868123.html
Sent from the R help mailing list archive at Nabble.com.
#
Hi,

I know now why it did not work. See here:

http://www.mail-archive.com/r-help at r-project.org/msg19682.html

I started R via the terminal with open -a R and then called the script again
as well as the texi2dvi function.
Both worked. The problem now is I use R within Eclipse and I don't know how
to start R in that way so that
the paths are set correct.


--
View this message in context: http://r.789695.n4.nabble.com/How-to-run-Bibtex-with-pdfLatex-in-StatEt-MikTex-on-Windows-tp2271396p3868226.html
Sent from the R help mailing list archive at Nabble.com.
#
Your subject line says Windows, but your error message suggests MacOS.  
I think you need to post questions that are answerable if you want an 
answer.

Duncan Murdoch
On 03/10/2011 12:48 PM, syrvn wrote: