QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 16092|回复: 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 编辑 ! q6 `6 l7 f, C) f; n
    ) D/ ?( `( M  X' C# U" W
    在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:2 i: ~5 t' D8 e6 }
    : h" K8 L, h' c7 o# K, a8 b# {
    ! 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:

    0 \6 P, g$ e4 u. Y: u
    * J# @4 ?' i! `2 b3 E. V! v然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
    7 C3 j9 Z7 H  g$ j" ^booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme0 v) {: q, X9 s
    其中readme里面有文件列表和安装方法:
    * Z: t6 M, f" v( V; D  `- W
    : w  b8 u" C, N0 z8 L  n& Q* {. }- h! d
    FILES IN DISTRIBUTION* Y' ~0 g/ ^' B7 a
    =====================' x9 |; M2 S1 a; S2 t
       BASE DISTRIBUTION:
    9 t1 w" m1 S8 T      README        This file., U+ b, H" ?- B  P" @# Q
          booktabs.ins  Package installation file./ d8 g3 q% j) r5 q& e9 Y
          booktabs.dtx  Package source file.4 w+ s- Q. o% ]1 w* V% V- h$ t
          COPYING       GPL license file.
    5 Z# G* Q- O/ e6 |2 i& Z/ r- N      booktabs.sty  Package style file. It was produced by executing "latex booktabs.ins".1 t# {1 F! N( D) X
       DOCUMENTATION:5 w$ m5 P" r# n, \" A% A
          booktabs.pdf  User manual for booktabs package. It was produced by executing:( X  u* l! [2 y( B. i! u* r+ _
                           pdflatex booktabs.dtx
    # ?- ?4 @6 a9 z: c& u, B% D- Y                       pdflatex booktabs.dtx
    0 x' N# V* |$ V% i                       makeindex -s gglo.ist -o booktabs.gls booktabs.glo
    : v% S' o& a# f+ o3 W7 h) G: R                       makeindex -s gind.ist -o booktabs.ind booktabs.idx
    * [7 v# y4 j8 v& R: ?. }! n                       pdflatex booktabs.dtx8 c5 `) B, ?) O
                           pdflatex booktabs.dtx! I6 w1 l' w8 w% _8 i
    BASIC INSTALLATION
    & e! q, H9 L7 u7 ?$ o====================- n. X! ]; e9 S2 F: @
       The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
    ( l: K' v9 r% `0 @   For a basic installation on a TDS compliant system, move the following files to the following directories:
    9 y7 |2 E1 s. |  x( Y: a     <texmf>/tex/latex/booktabs/
    3 X3 g0 \; v9 i# ^9 a1 c7 m& O, y5 h& Y        booktabs.sty  p- f, W' s( ~1 D- I& K
         <texmf>/source/latex/booktabs/
    * P) j; H) \7 f4 f  R$ |3 v         booktabs.ins( U6 H) S+ P- K5 t% `
             booktabs.dtx( u* }, o$ w' `) Z" B2 ?
             COPY
    2 ^! t; g. h' i# i6 _' W9 }     <texmf>/doc/latex/booktabs/
    5 J, g( |- j, b9 q& @* t$ U         README) x. N7 j  L/ X' L
             booktabs.pdf, X5 Q+ }3 q, i1 R+ F, {
    ; T# l- y* O! x% I5 h
    ( v' Z1 H& a1 q  l+ F( j
    我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙!
    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-15 03:52 , Processed in 0.485193 second(s), 54 queries .

    回顶部