\usepackage{subfigure} 编译出现命令已被定义错误 - 数学工具(MathTools)版 - 北大未名BBS
返回本版
1
/ 1
跳转

\usepackage{subfigure} 编译出现命令已被定义错误

[复制链接]
楼主

zhangh [离线]

灰灰

1.2一般站友

发帖数:26 原创分:0
<ASCIIArt> 1楼

想把两幅图拼成一个大图,单独有小序号,调用了\usepackage{subfigure},出现以下错误。

使用了命令\subfigure

求解决!

 最后修改于2017-03-07 22:52:52 来自219.223.195.253
  • 发表于2017-03-07 22:47:41 来自219.223.195.253

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 2楼

pkuthss 加载的 tocloft 宏包和 subfigure 冲突。

建议用 pkuthss 已加载的 subcaption 宏包。


zhangh (灰灰) 在 ta 的帖子中提到:

想把两幅图拼成一个大图,单独有小序号,调用了\usepackage{subfigure},出现以下错误。求解决!


签名档

    Programmers have very well-honed senses of justice. Code either works, or

it doesn't. There's no sense in arguing whether a bug exists, since you can

test the code and find out. The world of programming is very just and very

strictly ordered and a heck of a lot of people go into programming in the

first place because they prefer to spend their time in a just, orderly place,

a strict meritocracy where you can win any debate simply by being right.

发表于2017-03-07 22:59:01 来自159.226.35.165
楼主

zhangh [离线]

灰灰

1.2一般站友

发帖数:26 原创分:0
<ASCIIArt> 3楼



Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

pkuthss 加载的 tocloft 宏包和 subfigure 冲突。

建议用 pkuthss 已加载的 subcaption 宏包。



换用宏包 \usepackage{ subcaption }之后又出现了这个,在thesis开头加了\usepackage{subcaption},如果不加会报!undefined control sequence

 最后修改于2017-03-07 23:44:31 来自219.223.195.253
  • 发表于2017-03-07 23:37:06 来自219.223.195.253

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 4楼

呃那看来你用的 pkuthss 版本比较旧了。

如果实在不想升级 pkuthss 的话,也可以临时用旧版加载的 subfig 宏包。


zhangh (灰灰) 在 ta 的帖子中提到:

换用宏包 \usepackage{ subcaption }之后又出现了这个,在thesis开头加了\usepackage{subcaption},如果不加会报!undefined control sequence


签名档


发表于2017-03-08 00:24:20 来自159.226.35.165

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 5楼

可是用最新的1.7.4版本里subcaption也是出现如上所述的问题啊。。。是不是跟pkuspace有关啊。。。

或者是因为texlive2015太老的原因吗?

Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

呃那看来你用的 pkuthss 版本比较旧了。

如果实在不想升级 pkuthss 的话,也可以临时用旧版加载的 subfig 宏包。

 最后修改于2017-04-21 18:56:25 来自10.128.191.120
  • 发表于2017-04-21 17:56:15 来自222.29.111.42

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 6楼

TL 2015 的确是旧了点。


aWesley (the way is long) 在 ta 的帖子中提到:

可是用最新的1.7.4版本里subcaption也是出现如上所述的问题啊。。。是不是跟pkuspace有关啊。。。

或者是因为texlive2015太老的原因吗?


签名档

    Programmers have very well-honed senses of justice. Code either works, or

it doesn't. There's no sense in arguing whether a bug exists, since you can

test the code and find out. The world of programming is very just and very

strictly ordered and a heck of a lot of people go into programming in the

first place because they prefer to spend their time in a just, orderly place,

a strict meritocracy where you can win any debate simply by being right.

 最后修改于2017-04-21 19:56:46 来自159.226.35.165
  • 发表于2017-04-21 19:56:25 来自159.226.35.165

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 7楼

我感觉是不是os x系统下的问题啊…我更新到mactex2016+pkuthss1.7.4仍然有这个问题…

Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

TL 2015 的确是旧了点。


发表于2017-04-22 01:01:06 来自10.128.191.120

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 8楼

贴 log 看看。


aWesley (the way is long) 在 ta 的帖子中提到:

我感觉是不是os x系统下的问题啊…

我更新到mactex2016+pkuthss1.7.4仍然有这个问题…


签名档


发表于2017-04-22 13:24:57 来自159.226.35.165

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 9楼

TraditionalBuilder: Engine: xelatex. Invoking latexmk... done.


Errors:

/usr/local/texlive/2016/texmf-dist/tex/latex/caption/subcaption.sty:60: Package subcaption Error: This package can't be used in cooperation [  \endinput}{}]

/Users/song/Student/graduate 2017 thesis new/chap/chap3.tex:72: Undefined control sequence. [\subcaptionbox]

/Users/song/Student/graduate 2017 thesis new/chap/chap3.tex:79: Undefined control sequence. [\subcaption]

/Users/song/Student/graduate 2017 thesis new/chap/chap3.tex:86: Undefined control sequence. [\subcaption]

/Users/song/Student/graduate 2017 thesis new/chap/chap3.tex:93: Undefined control sequence. [\subcaption]


然后subcaption.sty:55~60 显示:

\@ifpackageloaded{subfig}{%

  \PackageError{subcaption}%

    {This package can't be used in cooperation\MessageBreak

     with the subfig package}%

    {RTFM}%

  \endinput}{}%



我google搜到一个人说是.cls文件里有\RequirePackage{subfig}之类的导致冲突,但是/example里面是没有cls文件之类的;

而且另外看到pkuthss/tex/pkuthss.cls 里面有一行是\RequirePackage{caption, subcaption},但是不知道把pkuthss/doc/example里的拷出来之后为啥好像没按这个套路来……


Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

贴 log 看看。



发表于2017-04-22 14:33:54 来自222.29.111.117

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 10楼

在工作目录运行 make,然后贴 thesis.log……


aWesley (the way is long) 在 ta 的帖子中提到:

TraditionalBuilder: Engine: xelatex. Invoking latexmk... done.

Errors:

/usr/local/texlive/2016/texmf-dist/tex/latex/caption/subcaption.sty:60: Package subcaption Error: This package can't be used in cooperation [  \endinput}{}]

……


签名档

For a successful technology, reality must take precedence over public

relations, for nature cannot be fooled.

                                                   --- Richard Feynman

发表于2017-04-22 15:03:35 来自159.226.35.165

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 11楼

不好意思,刚刚帖的是在编辑器里面编译的部分错误代码,

下面是make的全部log:

xelatex thesis

This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xelatex)

 restricted \write18 enabled.

entering extended mode

(./thesis.tex

LaTeX2e <2016/03/31>

Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.

(/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/pkuthss.cls

Document Class: pkuthss 2016/03/22 v1.7.2 Peking University dissertation docume

nt class

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/ctexbook.cls

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))

Document Class: ctexbook 2016/05/16 v2.4.2 Chinese adapter for class book (CTEX

)

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/ctexhook.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/ctexpatch.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fix-cm.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))

(/usr/local/texlive/2016/texmf-dist/tex/latex/ms/everysel.sty) (./ctexopts.cfg)


*************************************************

* ctex warning: "deprecated-option"

* Option `hyperref' is deprecated.

* `hyperref' package will be loaded.

*************************************************

*************************************************

* ctex warning: "deprecated-option"

* Option `cs4size' is deprecated.

* Option `zihao=-4' is set.

*************************************************

*************************************************

* ctex warning: "deprecated-option"

* Option `fntef' is deprecated.

* `(xe)CJKfntef' package is always loaded.

*************************************************

*************************************************

* ctex warning: "deprecated-option"

* Option `fancyhdr' is deprecated.

* `fancyhdr' package is loaded.

*************************************************

(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/book.cls

Document Class: book 2014/09/29 v1.4h Standard LaTeX document class

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/bk12.clo))

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xeCJK.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.st

y) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1enc.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmr.fd))

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xunicode/xunicode.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3enc.def

(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmss.fd))

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xetex-def/xetex.def

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))))

(/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.cfg)))

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty)

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xunicode/xunicode.sty

*** Reloading Xunicode for encoding 'EU1' ***

) (/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def)

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))

(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/ulem/ulem.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/cjk/texinput/CJKfntef.sty)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/zhnumber/zhnumber.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-b

ook.def

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/ctex-cs4size.clo)

(./ctex-fontset-pkuthss.def))

(/usr/local/texlive/2016/texmf-dist/tex/latex/ctex/config/ctex.cfg)

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)

(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/puenc.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))


Package hyperref Message: Driver (autodetected): hxetex.


(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hxetex.def

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/stringenc.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/pkuthss-utf8.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/newtxtext.sty

`newtxtext' v1.466, 2016/03/27 Text macros taking advantage of TeX-Gyre Termes 

fonts (msharpe)

(/usr/local/texlive/2016/texmf-dist/tex/latex/fontaxes/fontaxes.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/xkeyval/xkeyval.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval/xkeyval.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/lm/t1lmr.fd))

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def)) 

Babel

(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/t1ntxtlf.fd))

(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/newtxmath.sty

`newtxmath' v1.466, 2016/03/27 Math macros based on txfonts (msharpe)

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty

For additional information on amsmath, use the `?' option.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))

(/usr/local/texlive/2016/texmf-dist/tex/generic/kastrup/binhex.tex))

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te

x

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-li

sts.tex))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def

(/usr/local/texlive/2016/texmf-dist/tex/latex/ms/everyshi.sty))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c

ode.tex))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-xetex.de

f

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx

.def

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p

df.def))))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.

code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.

code.tex)) (/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex

)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.

tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic

.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo

nometric.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando

m.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa

rison.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.

code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round

.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.

code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ

erarithmetics.code.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)

)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.co

de.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconst

ruct.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage

.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.co

de.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicst

ate.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransform

ations.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.cod

e.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.c

ode.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathproce

ssing.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.co

de.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.cod

e.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.cod

e.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.

code.tex))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.co

de.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretranspare

ncy.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.

code.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.cod

e.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.

tex)

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version

-0-65.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version

-1-18.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/utilities/pgffor.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)

) (/usr/local/texlive/2016/texmf-dist/tex/latex/pgf/math/pgfmath.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod

e.tex

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan

dlers.code.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.cod

e.tex)

(/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie

s/tikzlibrarytopaths.code.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/koma-script/scrextend.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/koma-script/scrkbase.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/koma-script/scrbase.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/koma-script/scrlfile.sty

Package scrlfile, 2016/05/10 v3.20 KOMA-Script package (loading files)

                  Copyright (C) Markus Kohm


)))


LaTeX Warning: Command \@footnotemark  has changed.

               Check if current package is valid.


) (/usr/local/texlive/2016/texmf-dist/tex/latex/subfig/subfig.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/caption.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/caption3.sty)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/tocloft/tocloft.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/setspace/setspace.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/enumitem/enumitem.sty)

*************************************************

* ctex warning: "deprecated-command"

* Command \CTEXsetup is deprecated.

* \ctexset { chapter = {  nameformat = {\zihao {-2}\bfseries }, titleformat =

* {\zihao {-2}\bfseries }, beforeskip = {0bp}, afterskip = {18bp}  } } is set.

*************************************************

*************************************************

* ctex warning: "deprecated-command"

* Command \CTEXsetup is deprecated.

* \ctexset { section = {  format = {\zihao {-3}\bfseries }, beforeskip = {20bp

* plus 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}  } } is set.

*************************************************

*************************************************

* ctex warning: "deprecated-command"

* Command \CTEXsetup is deprecated.

* \ctexset { subsection = {  format = {\zihao {4}\bfseries }, beforeskip =

* {12bp plus 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}  } } is set.

*************************************************

*************************************************

* ctex warning: "deprecated-command"

* Command \CTEXsetup is deprecated.

* \ctexset { subsubsection = {  format = {\bfseries }, beforeskip = {12bp plus

* 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}  } } is set.

*************************************************

) (/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/iftex/iftex.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/logreq/logreq.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/logreq/logreq.def))

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ifthen.sty)

(/usr/local/texlive/2016/texmf-dist/tex/generic/xstring/xstring.sty

(/usr/local/texlive/2016/texmf-dist/tex/generic/xstring/xstring.tex))

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/blx-dm.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/blx-compat.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex-caspervector/caspervecto

r.bbx (/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex-caspervector/caspervecto

r.cbx

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/cbx/numeric-comp.cbx))

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.cfg))

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex-caspervector/biblatex-ca

spervector-utf8.def)

(/usr/local/texlive/2016/texmf-dist/tex/latex/base/latexsym.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/siunitx/siunitx.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/beamer/translator/translator.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/beamer/translator/translator-lang

uage-mappings.tex)))

(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/verbatim.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/subcaption.sty


! Package subcaption Error: This package can't be used in cooperation

(subcaption)                with the subfig package.


See the subcaption package documentation for explanation.

Type  H <return>  for immediate help.

 ...                                              

                                                  

l.60   \endinput}{}

                   %

?  


Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

在工作目录运行 make,然后贴 thesis.log……


发表于2017-04-22 15:14:38 来自222.29.111.117

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 12楼

这下明白了,subfig -> subcaption 的变更是在 v1.7.3 引入的,抱歉之前没发现。不

过 v1.7.2 至今的变化不太剧烈,你可以直接升级 pkuthss 到最新发布的版本,然后就

不需要手动载入 subcaption 了。


aWesley (the way is long) 在 ta 的帖子中提到:

不好意思,刚刚帖的是在编辑器里面编译的部分错误代码,

下面是make的全部log:

xelatex thesis

……


签名档

我爱北京敏感词,敏感词上太阳升;伟大领袖敏感词,指引我们向前进。

党的政策牙克西,党的方针斯密达;党的路线亚拉索,党的思想巴扎嘿。

 最后修改于2017-04-22 15:44:22 来自159.226.35.165
  • 发表于2017-04-22 15:43:25 来自159.226.35.165

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 13楼

哦这样啊,我现在在个人文档目录下编辑的文件其实就是github上最新的pkuthss 1.7.4,但编辑、编译之后log里发现还是会调用

/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/的文件,而这个是1.7.2,所以我应该用下载的pkuthss覆盖掉/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/是吗??


PS(修改后):

把1.7.4版本的 pkuthss/tex/pkuthss.cls 覆盖掉/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/pkuthss.cls即可,亲测可以解决subcaption的问题。

谢谢Casper大神!!

Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

这下明白了,subfig -> subcaption 的变更是在 v1.7.3 引入的,抱歉之前没发现。不

过 v1.7.2 至今的变化不太剧烈,你可以直接升级 pkuthss 到最新发布的版本,然后就

不需要手动载入 subcaption 了。

 最后修改于2017-04-22 16:49:58 来自222.29.111.117
  • 发表于2017-04-22 15:57:00 来自222.29.111.117

Casper [离线]

311.5: Es ist vollbracht!

4.9维尼熊

发帖数:6518 原创分:13
<ASCIIArt> 14楼

1. 你应该用 tlmgr update 之类的更新 TeXLive。

2. 如果不想更新 TeXLive 的话,可以把新版 pkuthss.cls 放到被编译的主文件所在的

   目录,因为当前目录的文件会被优先载入。


aWesley (the way is long) 在 ta 的帖子中提到:

覆盖掉/usr/local/texlive/2016/texmf-dist/tex/latex/pkuthss/pkuthss.cls即可


签名档

Life is complex: it has both real and imaginary parts.

发表于2017-04-22 18:20:59 来自222.29.43.38

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 15楼

soga…我看到过这个命令但是忽视了[捂脸],直接删了2015版然后下载2016版装的…招式2学到了~~

Casper (311.5: Es ist vollbracht!) 在 ta 的帖子中提到:

1. 你应该用 tlmgr update 之类的更新 TeXLive。

2. 如果不想更新 TeXLive 的话,可以把新版 pkuthss.cls 放到被编译的主文件所在的

   目录,因为当前目录的文件会被优先载入。


发表于2017-04-22 18:39:04 来自10.128.191.120

ilemach [离线]

封刀挂剑

4.0剑侠

发帖数:1660 原创分:0
<ASCIIArt> 16楼

或者试试 minipage ?

zhangh (灰灰) 在 ta 的帖子中提到:

想把两幅图拼成一个大图,单独有小序号,调用了\usepackage{subfigure},出现以下错误。

使用了命令\subfigure

求解决!

签名档


发表于2017-04-22 20:00:45 来自162.105.13.145

aWesley [离线]

the way is long

3.5中级站友

发帖数:589 原创分:0
<ASCIIArt> 17楼

用minipage图的编号是3.2  3.3 3.4这种,互相独立编号,用subcaption就会是3.2(a) 3.2(b)。。。这种

ilemach (封刀挂剑) 在 ta 的帖子中提到:

或者试试 minipage ?

 最后修改于2017-04-22 22:19:03 来自10.128.191.120
  • 发表于2017-04-22 22:18:33 来自10.128.191.120
返回本版
1
/ 1
跳转

请您先 登录 再进行发帖

快速回复楼主
标题
建议:≤ 24个字
签名档
发布(Ctrl+回车)

您输入的密码有误,请重新输入