数学建模社区-数学中国
标题:
请问缺少的.sty文件如何安装?
[打印本页]
作者:
zyzx
时间:
2014-1-24 09:37
标题:
请问缺少的.sty文件如何安装?
本帖最后由 zyzx 于 2014-1-24 09:50 编辑
; K! o6 I; m: s$ |$ S
+ Q) x7 |) h) K
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
5 n4 A( N+ |* D, q0 m+ k
“
; ^5 G! z" `9 l% i
! 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:
”
4 a# C( i6 `! g( \: k7 z9 u" M
4 h' ?2 |8 M0 Y* ^' M
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
' z& `1 h5 o" v- p; C
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
/ j6 F; J# Z9 o1 s0 j0 H) t9 ~
其中readme里面有文件列表和安装方法:
( T, G6 C* l' ^% ~2 W6 q
“
2 N1 x8 f* c$ W4 n+ \
FILES IN DISTRIBUTION
3 J; ?7 @5 _, [/ _
=====================
6 G5 K+ z" f7 q1 ?5 t, L2 ~
BASE DISTRIBUTION:
6 b3 |9 }3 p8 t+ K' r- L5 W) Y' V6 P
README This file.
9 p9 F2 h) K! y, S3 V3 G0 L
booktabs.ins Package installation file.
! c, g( n% {- G$ a
booktabs.dtx Package source file.
; S" @0 Y7 [/ O' `7 h
COPYING GPL license file.
5 U! C/ _9 m' h' [+ e9 _! X
booktabs.sty Package style file. It was produced by
executing "latex booktabs.ins"
.
- e g8 W/ h, N2 H! `
DOCUMENTATION:
- @- u. w- X4 L9 I, j6 j0 G [
booktabs.pdf
User manual for booktabs package. It was produced by
executing:
2 E: E5 Y3 j" R/ Z$ S7 |( B
pdflatex booktabs.dtx
' n, G' r2 W: b# Q( a2 x% c
pdflatex booktabs.dtx
& H: Q ?5 S- b* v c9 q
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
( O, C3 Z- c9 j4 L& c( @0 Y3 U! {
makeindex -s gind.ist -o booktabs.ind booktabs.idx
- @" p5 t: h; v9 i5 Q' {
pdflatex booktabs.dtx
9 o2 H8 t3 L, O$ q e) g _
pdflatex booktabs.dtx
# ]: A* _0 Q, ^% f" q
BASIC INSTALLATION
! g8 |1 |5 X1 V V9 _' k
====================
$ S ]: o& P& H* R
The minimum requirement to use the package is the to have
booktabs.sty in a directory where TeX can find it.
! ?6 x/ F- I$ t
For a basic installation on a TDS compliant system, move the
following files to the following directories:
0 t9 E4 X8 Z+ G: p! k7 @
<texmf>/tex/latex/booktabs/
. f' l6 R3 k& X& ?: X" p& o
booktabs.sty
8 S) S* ?$ \% }' \
<texmf>/source/latex/booktabs/
* @& |6 B" t; ]$ v% o; ]% R
booktabs.ins
; K5 k/ l: r( c) w7 \. R- q- `
booktabs.dtx
: v6 Z( K1 i9 d' ?3 {, w
COPY
, ?( H2 q& Q0 r5 a& H9 c) t5 z
<texmf>/doc/latex/booktabs/
. a, m$ u4 ]( l
README
" X; N* k& y! ?' a9 Y2 `- g+ p
booktabs.pdf
; M8 U% K2 y% m7 k: ^% F
”
) G! N2 n6 n9 ?1 m' O
4 B& A( ]( x% |$ C5 U
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到
,怎么办呢?请大家帮忙!
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5