数学建模社区-数学中国
标题:
请问缺少的.sty文件如何安装?
[打印本页]
作者:
zyzx
时间:
2014-1-24 09:37
标题:
请问缺少的.sty文件如何安装?
本帖最后由 zyzx 于 2014-1-24 09:50 编辑
3 E. x- z0 k5 t5 |% X. w- h& P
. j* j& f& m! `1 v) k; w
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
2 m; z1 w. d3 i5 {4 H2 L
“
% a! a& _; Q2 \/ a. G! J
! LaTeX Error: File `booktabs.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
”
3 s" H1 o( G" v: J* k, H. |; L+ K
. Z! t) {8 h" s4 b8 O5 J
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
* O9 M! O0 q1 {2 C6 K
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
8 C3 v) W# M+ g/ s" ^! ]; A" E! Z
其中readme里面有文件列表和安装方法:
+ S' V4 m& O% U8 \
“
# X4 a q. T) Z% K
FILES IN DISTRIBUTION
8 \7 b+ l, D- I4 T8 ]
=====================
: c# g0 u2 k- ~& s7 Y5 W% W
BASE DISTRIBUTION:
) R* V: r4 o# Z& D- z
README This file.
( i& l1 a# c0 U6 O# i( q
booktabs.ins Package installation file.
4 y- h2 \4 p p6 h
booktabs.dtx Package source file.
2 x2 b. g& S! d+ B! Z5 n
COPYING GPL license file.
9 K6 D/ ?- A! U G) D
booktabs.sty Package style file. It was produced by
executing "latex booktabs.ins"
.
# `6 @: \5 Q6 C! U
DOCUMENTATION:
1 {3 a" k( {9 ^- ^6 Y+ S
booktabs.pdf
User manual for booktabs package. It was produced by
executing:
1 [5 l8 L% y8 U
pdflatex booktabs.dtx
3 Q, p- B' B* c0 |% v
pdflatex booktabs.dtx
& _6 n: G9 x1 e& t! r% d
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
2 ~* D) D) z9 l0 {/ P
makeindex -s gind.ist -o booktabs.ind booktabs.idx
+ B; ]$ t) H' }0 O7 D+ g( I, E( k
pdflatex booktabs.dtx
( j0 a$ D0 R. c
pdflatex booktabs.dtx
( m4 {' D- B+ r/ T) ~6 m
BASIC INSTALLATION
7 @5 I4 ]0 j" U+ x/ P! T
====================
5 }4 M) Z1 H: _2 K
The minimum requirement to use the package is the to have
booktabs.sty in a directory where TeX can find it.
9 `" [* H, A$ B$ d$ P4 T
For a basic installation on a TDS compliant system, move the
following files to the following directories:
4 @" x( O6 n' t3 G4 D
<texmf>/tex/latex/booktabs/
- H' Q& T! G* {, ~! G' c' D
booktabs.sty
$ W3 L$ L$ b0 W4 w' g& @* f* t
<texmf>/source/latex/booktabs/
& `. K2 z, c& K! |# j
booktabs.ins
9 @+ T' `" ~. y& E6 y1 _, V9 H4 J
booktabs.dtx
3 a9 R# Z/ q) S; |1 u* s- T }: ~
COPY
% Z# n: ?. {6 H. o/ ?- o
<texmf>/doc/latex/booktabs/
5 ^! R3 [/ m/ S+ i
README
: X) H6 D4 m& m7 R
booktabs.pdf
a5 @7 ^$ `% q k8 y( B& t
”
0 _# ~1 R: C: {) Z f
$ B, I1 o# a8 H
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到
,怎么办呢?请大家帮忙!
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5