zepinglee / gbt7714-bibtex-style

GB/T 7714-2015 BibTeX Style
LaTeX Project Public License v1.3c
1.16k stars 197 forks source link

Undefined control sequence "GenericError" #75

Closed pcmagic closed 3 years ago

pcmagic commented 3 years ago

Hi, I'm trying the example of this style for my thesis.

I found the following two errors repeat hundreds of times.

Undefined control sequence.
\GenericError  ...            

Undefined control sequence.
\CJK@@@ignorespaces ->\futurelet \CJK@next@token 

image

What should I do?

Thanks.

zepinglee commented 3 years ago

These are not likely related to gbt7714. You may provide a MWE along with your compiling engine, platform, and TeX distribution.

pcmagic commented 3 years ago

the following is the output.

[19:50:57] RECIPES command invoked.
[19:50:57] BUILD command invoked.
[19:50:57] The document of the active editor: output:extension-output-%232
[19:50:57] The languageId of the document: Log
[19:50:57] Cannot find LaTeX root file.
[19:50:58] Current workspace folders: ["file:///c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master"]
[19:50:58] Current workspaceRootDir: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master
[19:50:58] Found root file from active editor: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:50:58] Keep using the same root file: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:14] File watcher - file changed: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:15] Parsing a file and its subfiles: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:15] Found .bib file: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\standard.bib
[19:51:15] Parse fls file.
[19:51:15] Cannot find fls file: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.fls
[19:51:15] Auto build started detecting the change of a file: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:15] BUILD command invoked.
[19:51:15] The document of the active editor: file:///c%3A/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.tex
[19:51:15] The languageId of the document: latex
[19:51:15] Building root file: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:15] Build root file c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex
[19:51:15] Checking for duplicate labels: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex.
[19:51:15] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master,c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples
[19:51:15] Recipe step env: {}
[19:51:15] cwd: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master
[19:51:15] LaTeX build process spawned. PID: 24740.
[19:51:19] LaTeX log parsed with 12 messages.
[19:51:19] Recipe returns with error: 12/null. PID: 24740. message: Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55.
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master"  "c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex"'
------------
Latexmk: Non-existent bbl file 'gbt7714-2015-examples.bbl'
 No file gbt7714-2015-examples.bbl.
Latexmk: Log file says output to 'gbt7714-2015-examples.pdf'
Latexmk: ===For rule 'pdflatex', actual output 'gbt7714-2015-examples.pdf'
       ======appears not to match expected output 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.pdf'
Latexmk: Found bibliography file(s) [standard.bib]
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
C:\texlive\2018\bin\win32\runscript.tlu:790: command failed with exit code 12:
perl.exe c:\texlive\2018\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples
.
[19:51:19] The environment variable $PATH: undefined
[19:51:19] The environment variable $SHELL: undefined
[19:51:19] Cleaning auxiliary files and retrying build after toolchain error.
[19:51:19] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.log
[19:51:19] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.fdb_latexmk
[19:51:19] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.fls
[19:51:19] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master,c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples
[19:51:19] Recipe step env: {}
[19:51:19] cwd: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master
[19:51:19] LaTeX build process spawned. PID: 26224.
[19:51:24] LaTeX log parsed with 12 messages.
[19:51:24] Recipe returns with error: 12/null. PID: 26224. message: Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55.
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master"  "c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex"'
------------
Latexmk: Non-existent bbl file 'gbt7714-2015-examples.bbl'
 No file gbt7714-2015-examples.bbl.
Latexmk: Log file says output to 'gbt7714-2015-examples.pdf'
Latexmk: ===For rule 'pdflatex', actual output 'gbt7714-2015-examples.pdf'
       ======appears not to match expected output 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.pdf'
Latexmk: Found bibliography file(s) [standard.bib]
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
C:\texlive\2018\bin\win32\runscript.tlu:790: command failed with exit code 12:
perl.exe c:\texlive\2018\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples
.
[19:51:24] The environment variable $PATH: undefined
[19:51:24] The environment variable $SHELL: undefined
[19:51:24] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.fls
[19:51:24] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.fdb_latexmk
[19:51:24] File cleaned: c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.log
pcmagic commented 3 years ago

and the output from the compiler

Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55.
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master"  "c:\Dropbox\OneDrive\PhdThesis\gbt7714-bibtex-style-master\gbt7714-2015-examples.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.tex
LaTeX2e <2018-04-01> patch level 2
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(c:/texlive/2018/texmf-dist/tex/latex/ctex/ctexart.cls (c:/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3.sty (c:/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (c:/texlive/2018/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
Document Class: ctexart 2018/01/28 v2.4.12 Chinese adapter for class article (CTEX)
(c:/texlive/2018/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (c:/texlive/2018/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty) (c:/texlive/2018/texmf-dist/tex/latex/ctex/ctexhook.sty) (c:/texlive/2018/texmf-dist/tex/latex/ctex/ctexpatch.sty) (c:/texlive/2018/texmf-dist/tex/latex/base/fix-cm.sty (c:/texlive/2018/texmf-dist/tex/latex/base/ts1enc.def (c:/texlive/2018/texmf-dist/tex/latex/base/ts1enc.dfu))) (c:/texlive/2018/texmf-dist/tex/latex/ms/everysel.sty) (c:/texlive/2018/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (c:/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/2018/texmf-dist/tex/latex/base/size10.clo)) (c:/texlive/2018/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/CJK.sty (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/mule/MULEenc.sty) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/CJK.enc)) (c:/texlive/2018/texmf-dist/tex/latex/cjkpunct/CJKpunct.sty (c:/texlive/2018/texmf-dist/tex/latex/cjkpunct/CJKpunct.spa)) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/CJKspace.sty) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/standard.bdg) (c:/texlive/2018/texmf-dist/tex/latex/ctex/ctexspa.def) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/CJKfntef.sty (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/CJKulem.sty (c:/texlive/2018/texmf-dist/tex/generic/ulem/ulem.sty)))) (c:/texlive/2018/texmf-dist/tex/latex/zhnumber/zhnumber.sty (c:/texlive/2018/texmf-dist/tex/latex/zhnumber/zhnumber-gbk.cfg)) (c:/texlive/2018/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def (c:/texlive/2018/texmf-dist/tex/latex/ctex/config/ctex-name-gbk.cfg)) (c:/texlive/2018/texmf-dist/tex/latex/ctex/ctex-c5size.clo) (c:/texlive/2018/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def (c:/texlive/2018/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windowsnew.def (c:/texlive/2018/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex{c:/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}{UGBK.sfd}{Unicode.sfd})))) (c:/texlive/2018/texmf-dist/tex/latex/ctex/config/ctex.cfg) (c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty
c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                    #4  \errhelp \@err@     ...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                  \let \@err@               ...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                  \@empty \def \MessageBreak...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                     \endgroup 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\CJK@@@ignorespaces ->\futurelet \CJK@next@token 
                                                 \CJK@check@next 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\CJK@@@ignorespaces ->\futurelet \CJK@next@token 
                                                 \CJK@check@next 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                    #4  \errhelp \@err@     ...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                  \let \@err@               ...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                  \@empty \def \MessageBreak...
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\GenericError  ...                                
                                                     \endgroup 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\CJK@@@ignorespaces ->\futurelet \CJK@next@token 
                                                 \CJK@check@next 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714.sty:25: Undefined control sequence.
\CJK@@@ignorespaces ->\futurelet \CJK@next@token 
                                                 \CJK@check@next 
l.25 .../12/17 v2.1 GB/T 7714—2015 BibTeX Style]

(c:/texlive/2018/texmf-dist/tex/latex/natbib/natbib.sty) (c:/texlive/2018/texmf-dist/tex/latex/url/url.sty)) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/extended.enc) (c:/texlive/2018/texmf-dist/tex/latex/cjk/texinput/extended.chr) (c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.aux) ABD: EverySelectfont initializing macros
No file gbt7714-2015-examples.bbl.
[1] (c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.aux) )
(see the transcript file for additional information)<c:/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.pdf (1 page, 8201 bytes).
SyncTeX written on c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.synctex.gz.
Transcript written on c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.log.
Latexmk: Non-existent bbl file 'gbt7714-2015-examples.bbl'
 No file gbt7714-2015-examples.bbl.
Latexmk: Log file says output to 'gbt7714-2015-examples.pdf'
Latexmk: ===For rule 'pdflatex', actual output 'gbt7714-2015-examples.pdf'
       ======appears not to match expected output 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.pdf'
=== TeX engine is 'pdfTeX'
Latexmk: Found bibliography file(s) [standard.bib]
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples.log' for details
Latexmk: Errors, so I did not complete making targets
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
C:\texlive\2018\bin\win32\runscript.tlu:790: command failed with exit code 12:
perl.exe c:\texlive\2018\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master c:/Dropbox/OneDrive/PhdThesis/gbt7714-bibtex-style-master/gbt7714-2015-examples
zepinglee commented 3 years ago

XeLaTeX is required to compile the example document.

pcmagic commented 3 years ago

is it possible to use pdflatex?

The Ph.D. thesis templet is built upon pdflatex and difficult to change, especially the language problem like package CJKcaption.

zepinglee commented 3 years ago

is it possible to use pdflatex?

I'm not sure. The contents of gbt7714 are encoded in UTF-8 thus the whole document requires UTF-8 encoding. You may use CJKutf8 or pass UTF8 to ctex (\usepackage[UTF8]{ctex}) but both methods are not available for testing on my Mac machine.

pcmagic commented 3 years ago

thanks a lot.

ashfaq92 commented 3 years ago

It is perfectly working on pdflatex. The problem lies somewhere else