Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文摘要第一页不显示页码 #153

Closed
yanghaoxie opened this issue Mar 20, 2021 · 5 comments
Closed

中文摘要第一页不显示页码 #153

yanghaoxie opened this issue Mar 20, 2021 · 5 comments

Comments

@yanghaoxie
Copy link

坏境:5.11.6-arch1-1 texlive-core 2020.57066-1
现象:中文摘要第一页不显示页码。
看了一下thesis-uestc.cls文件,发现如下代码

\AddEverypageHook{\stepcounter{pseudopage}}

猜测可能这个Hook的地方出了问题,手动添加代码\stepcounter{pseudopage}chineseabstract坏境定义的第一行解决问题,如下所示:

\newenvironment{chineseabstract}{
  \stepcounter{pseudopage}
...

这个BUG应该有更好的方式解决,特此提出。
非常感谢。

@sikouhjw
Copy link
Contributor

先确保你「多次编译」过了

@yanghaoxie
Copy link
Author

先确保你「多次编译」过了

非常感谢你的回复。

我使用的latexmk编译,应该编译次数够多了的。

我开始以为是我那里引入了BUG,让后使用官方原始的例子,并使用latexmk编译,还是这样的问题。

@sikouhjw
Copy link
Contributor

从警告就能看出问题所在

Functionality similar to this package has recently
(everypage)	been implemented in LaTeX. This package is now in
(everypage)	legacy status.
(everypage)	Please, don't use it in new documents and packages.
You appear to be running a version of LaTeX
(everypage)	providing the new functionality.
(everypage)	Doing the best to deliver the original `everypage`
(everypage)	interface on top of it. Strict equivalence is
(everypage)	not possible, breakage may occur.
(everypage)	If truly needed, Use `everypage-1x` to force the
(everypage)	loading of an older code base.

\RequirePackage{everypage} 换成 \RequirePackage{everypage-1x} 即可。

MWE:

\documentclass[master]{thesis-uestc}
\begin{document}
\makecover
\begin{chineseabstract}
  test
\end{chineseabstract}
\begin{englishabstract}
  test
\end{englishabstract}

宏包版本:

 *File List*
thesis-uestc.cls    
    book.cls    2020/04/10 v1.4m Standard LaTeX document class
    bk12.clo    2020/04/10 v1.4m Standard LaTeX file (size option)
 ifxetex.sty    2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
   iftex.sty    2020/03/06 v1.0d TeX engine tests
  xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)
   color.cfg    2016/01/02 v1.6 sample color configuration
   xetex.def    2020/08/26 v5.0i Graphics/color driver for xetex
colortbl.sty    2020/01/04 v1.0e Color table columns (DPC)
   array.sty    2020/10/01 v2.5c Tabular extension package (FMi)
dvipsnam.def    2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)
  svgnam.def    2016/05/11 v2.12 Predefined colors according to SVG 1.1 (UK)
graphicx.sty    2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
 caption.sty    2020/10/26 v3.5g Customizing captions (AR)
caption3.sty    2020/10/21 v2.2e caption3 kernel (AR)
booktabs.sty    2020/01/12 v1.61803398 Publication quality tables
setspace.sty    2011/12/19 v6.7a set line spacing
multirow.sty    2021/01/29 v2.7 Span multiple rows of a table
 amsmath.sty    2020/09/23 v2.17i AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
  amsthm.sty    2020/05/29 v2.20.6
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
glossaries.sty    2020/03/19 v4.46 (NLCT)
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
 xkeyval.sty    2020/11/20 v2.8 package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
mfirstuc.sty    2017/11/14 v2.06 (NLCT)
etoolbox.sty    2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
textcase.sty    2019/09/14 v1.00 Text only upper/lower case changing (DPC)
    xfor.sty    2009/02/05 v1.05 (NLCT)
datatool-base.sty    2019/09/27 v2.32 (NLCT)
  substr.sty    2009/10/20 v1.2 Handle substrings
datatool-fp.sty    2019/09/27 v2.32 (NLCT)
      fp.sty    1995/04/02
defpattern.sty    1994/10/12
fp-basic.sty    1996/05/13
fp-addons.sty    1995/03/15
 fp-snap.sty    1995/04/05
  fp-exp.sty    1995/04/03
fp-trigo.sty    1995/04/14
  fp-pas.sty    1994/08/29
fp-random.sty    1995/02/23
  fp-eqn.sty    1995/04/03
  fp-upn.sty    1996/10/21
 fp-eval.sty    1995/04/03
glossaries-compatible-307.sty    2020/03/19 v4.46 (NLCT)
glossary-hypernav.sty    2020/03/19 v4.46 (NLCT)
glossary-list.sty    2020/03/19 v4.46 (NLCT)
glossary-long.sty    2020/03/19 v4.46 (NLCT)
longtable.sty    2020/01/07 v4.13 Multi-page Table package (DPC)
glossary-super.sty    2020/03/19 v4.46 (NLCT)
supertabular.sty    2020/02/02 v4.1g the supertabular environment
glossary-tree.sty    2020/03/19 v4.46 (NLCT)
mathspec.sty    2016/12/22 v0.2b LaTeX Package (Mathematics font selection for XeLaTeX)
fontspec.sty    2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
  xparse.sty    2021-01-09 L3 Experimental document command parser
   expl3.sty    2021-02-18 L3 programming layer (loader) 
l3backend-xetex.def    2021-03-02 L3 backend support: XeTeX
xparse-2020-10-01.sty    
fontspec-xetex.sty    2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
fontspec.cfg
   xeCJK.sty    2020/10/19 v3.8.6 Typesetting CJK scripts with XeLaTeX
l3keys2e.sty    2021-03-12 LaTeX2e option processing using LaTeX3 keys
xtemplate.sty    2021-03-12 L3 Experimental prototype document functions
ctexhook.sty    2020/10/19 v2.5.5 Document and package hooks (CTEX)
   xeCJK.cfg    2020/10/19 v3.8.6 Configuration file for xeCJK package
ifplatform.sty    2017/10/13 v0.4a Testing for the operating system
shellesc.sty    2019/11/08 v1.0c unified shell escape interface for LaTeX
pdftexcmds.sty    2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2019/12/03 v1.5 Providing info/warning/error messages (HO)
 ltxcmds.sty    2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
catchfile.sty    2019/12/09 v1.8 Catch the contents of a file (HO)
etexcmds.sty    2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
ifluatex.sty    2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
zhnumber.sty    2020/05/01 v2.8 Typesetting numbers with Chinese glyphs
zhnumber-utf8.cfg    2020/05/01 v2.8 Chinese numerals with UTF8 encoding
  pifont.sty    2020/03/25 PSNFSS-v9.3 Pi font support (SPQR) 
    upzd.fd    2001/06/04 font definitions for U/pzd.
    upsy.fd    2001/06/04 font definitions for U/psy.
    xurl.sty    2020/12/30 v 0.09a modify URL breaks
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
hyperref.sty    2021-02-27 v7.00k Hypertext links for LaTeX
kvsetkeys.sty    2019/12/15 v1.18 Key value parser (HO)
kvdefinekeys.sty    2019-12-19 v1.6 Define keys (HO)
pdfescape.sty    2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
 hycolor.sty    2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
letltxmacro.sty    2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
 auxhook.sty    2019-12-17 v1.6 Hooks for auxiliary files (HO)
kvoptions.sty    2020-10-07 v3.14 Key value format for package options (HO)
  pd1enc.def    2021-02-27 v7.00k Hyperref: PDFDocEncoding definition (HO)
hyperref-langpatches.def    2021-02-27 v7.00k Hyperref: patches for babel languages
 intcalc.sty    2019/12/15 v1.3 Expandable calculations with integers (HO)
   puenc.def    2021-02-27 v7.00k Hyperref: PDF Unicode definition (HO)
  bitset.sty    2019/12/09 v1.3 Handle bit-vector datatype (HO)
bigintcalc.sty    2019/12/15 v1.5 Expandable calculations on big integers (HO)
atbegshi-ltx.sty    2020/08/17 v1.0a Emulation of the original atbegshi package
with kernel methods
  hxetex.def    2021-02-27 v7.00k Hyperref driver for XeTeX
stringenc.sty    2019/11/29 v1.12 Convert strings between diff. encodings (HO)
rerunfilecheck.sty    2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
atveryend-ltx.sty    2020/08/19 v1.0a Emulation of the original atvery package
with kernel methods
uniquecounter.sty    2019/12/15 v1.4 Provide unlimited unique counter (HO)
indentfirst.sty    1995/11/23 v1.03 Indent first paragraph (DPC)
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
fancyvrb.sty    2021/01/20 v3.7 verbatim text (tvz,hv)
fancyhdr.sty    2021/01/28 v4.0.1 Extensive control of page headers and footers
titlesec.sty    2019/10/16 v2.13 Sectioning titles
appendix.sty    2020/02/08 v1.2c extra appendix facilities
    cite.sty    2015/02/27  v 5.5
    ulem.sty    2019/11/18
enumitem.sty    2019/06/20 v3.9 Customized lists
algorithm2e.sty    2017/07/18 v5.2 algorithms environments
ifoddpage.sty    2016/04/23 v1.1 Conditionals for odd/even page detection
  xspace.sty    2014/10/28 v1.13 Space after command names (DPC,MH)
 relsize.sty    2013/03/29 ver 4.1
newfloat.sty    2019/09/02 v1.1l Defining new floating environments (AR)
multibib.sty    2008/12/10 v1.4 Multiple bibliographies for one document.
tocbibind.sty    2010/10/13 v1.5k extra ToC listings
everypage.sty    2020/10/17 R2.0b Hooks to run on every page
pdfpages.sty    2021/03/06 v0.5t Insert pages of external PDF documents (AM)
    calc.sty    2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
 eso-pic.sty    2020/10/14 v3.0a eso-pic (RN)
 ppxetex.def    2021/03/06 v0.5t Pdfpages driver for XeTeX (AM)
 tocloft.sty    2017/08/31 v2.3i parameterised ToC, etc., typesetting
  subfig.sty    2005/06/28 ver: 1.3 subfig package
geometry.sty    2020/01/02 v5.9 Page Geometry
  ifvtex.sty    2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
footmisc.sty    2011/06/06 v5.5b a miscellany of footnote facilities
accomplish.aux
  ts1cmr.fd    2019/12/16 v2.5j Standard LaTeX font definitions
ltcaption.sty    2020/05/30 v1.4b longtable captions (AR)
 nameref.sty    2021-04-02 v2.47 Cross-referencing by name of section
refcount.sty    2019/12/15 v3.6 Data extraction from label references (HO)
gettitlestring.sty    2019/12/15 v1.6 Cleanup title references (HO)
    main.out
    main.out
pdflscape.sty    2019/12/05 v0.12 Display of landscape pages in PDF (HO)
  lscape.sty    2020/05/28 v3.02 Landscape Pages (DPC)
./pic//logo.pdf
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern
    umsa.fd    2013/01/14 v3.01 AMS symbols A
    umsb.fd    2013/01/14 v3.01 AMS symbols B
 ***********

@yanghaoxie
Copy link
Author

@sikouhjw 非常感谢。

@FrostMonarch95
Copy link

解决了,不过我需要重启软件然后用管理员运行才可以顺利编译,大家假如编译错误也可以试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants