数学建模社区-数学中国
标题:
请问缺少的.sty文件如何安装?
[打印本页]
作者:
zyzx
时间:
2014-1-24 09:37
标题:
请问缺少的.sty文件如何安装?
本帖最后由 zyzx 于 2014-1-24 09:50 编辑
/ l, Z3 ]/ Z; k% a8 t x/ h
W. ] | a0 l% f) Y ]3 [7 f% V
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
$ U/ W- d8 C E7 K. l
“
0 m5 i' i1 @: z
! 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:
”
/ F/ _; Y, Q- U3 c# w2 i
/ E0 R) F# e6 ?+ {' b' {0 j' M
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
% X* J8 O" ^/ Z* i' \
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
5 ]5 R; ?: e3 B- z2 ~0 z X
其中readme里面有文件列表和安装方法:
# ~4 i" f3 d* Q8 U7 m$ k
“
- z7 `& z& T, ~/ M2 ?8 [! C+ n7 b
FILES IN DISTRIBUTION
& q* G+ s* O ?4 K. ^
=====================
6 ]/ |. C0 S! s# o' k
BASE DISTRIBUTION:
' ^' Y3 m- j$ p
README This file.
; R$ y$ t7 X7 [; m' c
booktabs.ins Package installation file.
1 a" L, |8 {& n0 Q6 _
booktabs.dtx Package source file.
$ X: P1 w( s+ Y2 d) V7 m
COPYING GPL license file.
( v$ V$ G) h, \* w, A- A" r/ g9 u
booktabs.sty Package style file. It was produced by
executing "latex booktabs.ins"
.
( U" b# T6 l0 R# P1 X6 H
DOCUMENTATION:
z* m- M! k3 v3 n" |: u) p
booktabs.pdf
User manual for booktabs package. It was produced by
executing:
! Z' M: u2 _! ]' T; d
pdflatex booktabs.dtx
4 G2 r7 @. X; v: @+ ~- x+ L/ m
pdflatex booktabs.dtx
/ e* I* b' T4 j# ^. K4 Y, w/ w
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
# F5 y; O7 M# {+ d4 S
makeindex -s gind.ist -o booktabs.ind booktabs.idx
& j6 M& J6 Y: R" J" {
pdflatex booktabs.dtx
4 C/ n k9 Y) F, L, I6 J& a
pdflatex booktabs.dtx
9 d W( S7 x2 U4 t" }4 J
BASIC INSTALLATION
9 X+ E2 H* j8 m8 q
====================
; P1 m# a u6 i$ L
The minimum requirement to use the package is the to have
booktabs.sty in a directory where TeX can find it.
3 y$ D, W8 F& p! B. r4 c7 @
For a basic installation on a TDS compliant system, move the
following files to the following directories:
( c: u$ N2 n- {* `5 q- t
<texmf>/tex/latex/booktabs/
" e/ U7 Y" q+ w2 ^0 T4 g, J3 d
booktabs.sty
. k9 ]+ }# H$ B5 J
<texmf>/source/latex/booktabs/
; v/ J& d/ f$ e' G" Z& A
booktabs.ins
( P7 j, J; q* H$ j" B
booktabs.dtx
& k1 }4 @4 B" |/ R
COPY
: t# b: D0 {* M+ ?0 a8 {$ ^
<texmf>/doc/latex/booktabs/
, T7 ~: A5 S' Z% B, p
README
- Q1 m% T! i# Y4 v1 Z; J$ J
booktabs.pdf
: N- e$ Y n' ?! D# i4 A
”
4 q1 a0 C7 e" ?8 @
M, |- [3 m& j8 e2 _
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到
,怎么办呢?请大家帮忙!
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5