数学建模社区-数学中国
标题:
请问缺少的.sty文件如何安装?
[打印本页]
作者:
zyzx
时间:
2014-1-24 09:37
标题:
请问缺少的.sty文件如何安装?
本帖最后由 zyzx 于 2014-1-24 09:50 编辑
# y$ @3 u+ q% b! g
/ N" \0 m8 t5 Q( ?
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
$ E/ `3 b5 D9 d* k
“
9 X& G/ x+ |# ~! f
! 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:
”
. F0 H" v) i- x% W) z7 U
% a- v$ P% O/ n: |
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
d1 m( u5 Y# [% N
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
+ i, n; C8 a2 }- p) c4 B
其中readme里面有文件列表和安装方法:
. X1 T0 E+ e) F1 h. x" x
“
/ K! P2 H3 Q. q* A( t
FILES IN DISTRIBUTION
* U7 `2 {& v+ T$ t, E$ l
=====================
; N8 N9 G0 `7 a1 u/ c, S3 T) t
BASE DISTRIBUTION:
7 Q1 i4 q7 r/ J/ q
README This file.
) n k- N- W, e& b7 W& p# z3 N: A' E
booktabs.ins Package installation file.
7 U( m% d# N" p' [; y$ T" l. M& S
booktabs.dtx Package source file.
! e8 ~8 y& ~; M' C; t9 \4 G! u! [
COPYING GPL license file.
: S& B+ @$ y5 ]4 ?: @; g4 y
booktabs.sty Package style file. It was produced by
executing "latex booktabs.ins"
.
5 u/ _. ?4 X; f4 X+ u2 }- w* f0 I
DOCUMENTATION:
, K( q6 I& w' ~
booktabs.pdf
User manual for booktabs package. It was produced by
executing:
9 W: I9 ~ V5 W7 S$ U
pdflatex booktabs.dtx
9 v) K9 V8 D0 J2 V
pdflatex booktabs.dtx
/ C) N9 W. H# s% m# r- s
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
+ Z8 A* f" n3 U
makeindex -s gind.ist -o booktabs.ind booktabs.idx
) r- I( j; y7 n, T1 C1 d6 Y
pdflatex booktabs.dtx
% s3 O0 Y: {3 u7 J i3 Z
pdflatex booktabs.dtx
$ ?$ m4 I8 e' n. a8 X: y8 |$ l
BASIC INSTALLATION
% Y3 J" z! [' {* @
====================
: G1 N; M8 t/ z! U* G3 y& l
The minimum requirement to use the package is the to have
booktabs.sty in a directory where TeX can find it.
3 ^1 g j+ n2 L( l: @
For a basic installation on a TDS compliant system, move the
following files to the following directories:
! a$ t* z* X* O& C) s. [% d
<texmf>/tex/latex/booktabs/
# s: L9 @3 Z2 w+ k
booktabs.sty
5 Y" E: X2 [% r6 z4 {
<texmf>/source/latex/booktabs/
2 R- n( R. D0 o a4 c- }; x x
booktabs.ins
, \5 n! q; C b0 U) ?: B% q
booktabs.dtx
5 {6 S" p0 i% ^
COPY
6 v, N3 k7 {4 V! n+ E* g9 _
<texmf>/doc/latex/booktabs/
0 P$ A. S' C. K
README
( T; @/ e3 I; Y6 O8 [/ a3 t/ w1 m. m! J
booktabs.pdf
! k1 r9 ^! H+ }. n
”
| [5 B" I$ i( N( `
2 S/ Q5 j6 k0 A: z, F
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到
,怎么办呢?请大家帮忙!
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5