数学建模社区-数学中国
标题:
请问缺少的.sty文件如何安装?
[打印本页]
作者:
zyzx
时间:
2014-1-24 09:37
标题:
请问缺少的.sty文件如何安装?
本帖最后由 zyzx 于 2014-1-24 09:50 编辑
8 y: B, M; D9 {4 g: x: C/ U% Z
0 E, E4 p- z) L- N& A
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
3 a0 A N+ k' T1 p
“
j/ I; ` g; U0 l
! 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:
”
( x( T, W1 I7 H- m& x0 \# {7 {
5 G; q- J5 P$ g/ ]( P
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
8 f% l4 A6 p' ^* b: _, y
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
- ~# |" l, |( o5 ~# @; I
其中readme里面有文件列表和安装方法:
. h+ H% ^, Y2 h3 @& ^" A% w* O
“
4 ]% g1 g5 c$ B6 Z
FILES IN DISTRIBUTION
9 y5 o1 ^3 k! ^# g6 i8 U3 x
=====================
8 T6 G+ H0 D0 Q) N; z @
BASE DISTRIBUTION:
$ d, y- c+ ~7 F+ B, w
README This file.
' V9 g2 Q+ H' g3 W! }0 A
booktabs.ins Package installation file.
3 W+ ^- u" b6 Q2 D7 n- A$ j" f
booktabs.dtx Package source file.
) j4 R$ ^; b, X2 f9 `
COPYING GPL license file.
# P; c" T: N ^$ X# v8 I h' n
booktabs.sty Package style file. It was produced by
executing "latex booktabs.ins"
.
# c) F0 R" X) N& U. D: R
DOCUMENTATION:
- C( p$ Z- Y# l4 a( F
booktabs.pdf
User manual for booktabs package. It was produced by
executing:
$ o: I; B9 {) J) U m
pdflatex booktabs.dtx
7 |5 Z$ Y/ ?1 X; O9 ]
pdflatex booktabs.dtx
+ r; W9 w/ U7 ]4 q: l: C2 C) n
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
* B& l' D; ?3 y: E$ F
makeindex -s gind.ist -o booktabs.ind booktabs.idx
' t, S( }1 t* P6 B
pdflatex booktabs.dtx
( d* i, f0 X8 [ H9 P
pdflatex booktabs.dtx
3 h5 s2 n [, s/ j2 L
BASIC INSTALLATION
4 m6 G7 X6 {7 T8 @
====================
: u$ G5 M0 N+ s- E% q5 ?
The minimum requirement to use the package is the to have
booktabs.sty in a directory where TeX can find it.
* D. @/ c. d+ e# ~* e+ ^; [
For a basic installation on a TDS compliant system, move the
following files to the following directories:
/ C( \7 n" @- o) ^1 n
<texmf>/tex/latex/booktabs/
' R E4 r! A& f7 b$ f9 v
booktabs.sty
9 a5 F9 @! _; E b
<texmf>/source/latex/booktabs/
% c7 b# p0 W5 Q; N% P
booktabs.ins
% Q: M y7 V7 U
booktabs.dtx
! i7 d3 K! @( D; W: l
COPY
9 h1 B! r' n! C. a9 H& i( ~7 L( Z
<texmf>/doc/latex/booktabs/
7 _4 ^2 { k+ L
README
' x% a8 H' X7 M' i1 V1 b, G& u
booktabs.pdf
7 e8 J, r' i+ |3 x0 l$ G; `' ~
”
$ O; z& {2 Q7 |$ n
% `4 K# x3 s2 i: U' [! g% j
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到
,怎么办呢?请大家帮忙!
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5