I put Rd.sty
in C:\texlive\texmf-local\tex\latex\Rd.sty
. But when I try to execute a file, say aaa.tex
then the error ! LaTeX Error: File "Rd.sty" not found.
occur. But, if I put the Rd.sty
and aaa.tex
in the same directory, then it goes well. Why??
Answer of my questions by Ulrike Fisher, I reprint here.
Put the
.sty
file, e.g.,Rd.sty
atC:\texlive\texmf-local\tex\latex\Rd.sty
Execute the code
mktexlsr
from the command prompt to reflect the change as follows:C:\Users\User>mktexlsr
Then, we no longer need to put the Rd.sty
and some tex
file in the same directory.
We confirm whether LaTeX can detect the .sty
file or not via the code kpsewhich style_file_name
in the command prompt,
C:\Users\User> kpsewhich Rd.sty
<--- Here nothing since LaTeX cannot detect the Rd.sty
C:\Users\User>mktexlsr <--- Up date
mktexlsr: Updating C:/texlive/2013/texmf-config/ls-R...
mktexlsr: Updated C:/texlive/2013/texmf-config/ls-R.
mktexlsr: Updating C:/texlive/2013/texmf-var/ls-R...
mktexlsr: Updated C:/texlive/2013/texmf-var/ls-R.
mktexlsr: Updating C:/texlive/texmf-local/ls-R...
mktexlsr: Updated C:/texlive/texmf-local/ls-R.
mktexlsr: Updating C:/texlive/2013/texmf-dist/ls-R...
mktexlsr: Updated C:/texlive/2013/texmf-dist/ls-R.
mktexlsr: Done.
> kpsewhich Rd.sty
c:/texlive/texmf-local/tex/Rd.sty <--- Here LaTeX can detect the Rd.sty
Rd.sty
is required when I make a manual for my statistical package. This package can find athttps://svn.r-project.org/R/trunk/share/texmf/tex/latex/Rd.sty
So, I copy and paste with extension.sty
. I am not sure but R users are familiar withRd.sty
?