QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 16099|回复: 0
打印 上一主题 下一主题

请问缺少的.sty文件如何安装?

[复制链接]
字体大小: 正常 放大
zyzx        

1

主题

5

听众

18

积分

升级  13.68%

  • TA的每日心情

    2014-2-5 13:49
  • 签到天数: 6 天

    [LV.2]偶尔看看I

    自我介绍
    跳转到指定楼层
    1#
    发表于 2014-1-24 09:37 |只看该作者 |倒序浏览
    |招呼Ta 关注Ta
    本帖最后由 zyzx 于 2014-1-24 09:50 编辑
    # Z5 o5 m& ^( u/ Z+ b( ?: P9 l! ?8 o* f* e; j& T0 V( e
    在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:: \9 S) ]- N1 Q0 H
    $ x8 R1 c  B- |7 G. o5 g' ]( \' y6 ^6 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:

    2 F9 j- h5 M/ {
    3 ~- X6 |7 y7 ~) Q1 {1 D/ Z然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
      E; M% k- F9 _8 Q4 hbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme" Q& g) J2 d; i; H3 ?
    其中readme里面有文件列表和安装方法:! m, I* ?2 O# Z! b6 r( k

    4 ~4 }# Z  z4 G2 t, \! o$ B( X. j
    FILES IN DISTRIBUTION
    / n) U, _" t" c8 g) s9 A2 u; w5 S" M=====================
    2 C' F; b* ~' |0 K& l" ?/ h   BASE DISTRIBUTION:
    4 ]$ i/ r+ j9 ]2 |! A      README        This file.& h" f2 q1 C3 v% m
          booktabs.ins  Package installation file.4 ~) m8 L. Q; @5 p
          booktabs.dtx  Package source file.  i; K/ r3 f2 S! K
          COPYING       GPL license file.) d& ~0 u' p4 e7 y: P8 x
          booktabs.sty  Package style file. It was produced by executing "latex booktabs.ins".
    : Z; L& i3 ~+ Y" u4 j) e   DOCUMENTATION:1 a. r+ Z! e! v7 C$ T3 V. q
          booktabs.pdf  User manual for booktabs package. It was produced by executing:
    2 O, _. v8 a1 ~                       pdflatex booktabs.dtx- o2 P/ t6 {( ^6 R! C: [
                           pdflatex booktabs.dtx
    2 F! N4 Y8 M+ x2 I5 w                       makeindex -s gglo.ist -o booktabs.gls booktabs.glo
      f8 F( i9 [  I  k- r! O                       makeindex -s gind.ist -o booktabs.ind booktabs.idx7 l: ?% n& e  v& w: n3 L! A
                           pdflatex booktabs.dtx
    5 B4 H! g2 Z2 Z                       pdflatex booktabs.dtx6 Y, T( N. n! T  ?" e& X9 \/ y3 }
    BASIC INSTALLATION
    ( X+ y0 [( Z) C' i& A1 A* q; a% a====================7 P" z$ L( L- o2 K" n+ w
       The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
    , }# n  r+ R7 T+ x. X% Q' ~   For a basic installation on a TDS compliant system, move the following files to the following directories:
    * o1 s: B+ T5 Z- f8 r, W8 S     <texmf>/tex/latex/booktabs/
    + S2 x: n; ?8 V. g  c        booktabs.sty) e. ?% p8 C* n+ b; I! R
         <texmf>/source/latex/booktabs/
    ( o" Y, U7 F4 t% U* u/ O         booktabs.ins
    0 K0 J* g4 ?& F         booktabs.dtx
    , ?9 T, x9 s# j9 e" ~) g" l# O8 j2 h         COPY  U3 j+ ~& {/ J, @
         <texmf>/doc/latex/booktabs/6 O: ?8 k: _' @4 r  r" T3 b& \; s
             README
    ; r  w+ z! G+ m         booktabs.pdf
    + g3 t* `' l) U$ z4 ~1 P" T
    ( T5 h9 q  I: `4 K: P
    1 r! `* Z' Z' V) X( ]+ g. f4 c2 D8 o2 h; f我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙!
    zan
    转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

    关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

    手机版|Archiver| |繁體中文 手机客户端  

    蒙公网安备 15010502000194号

    Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

    GMT+8, 2026-4-17 04:16 , Processed in 0.414679 second(s), 53 queries .

    回顶部