Many domestic journals still using outdated CCT way to support Chinese, these templates are very similar, it seems that the Department homologous. Because these templates in a modern TeX distributions can not be compiled properly, causing distress to many contributors, so I wrote this article, I hope to have some help contributor.
Templates feature
Introduction The area code for these templates is as follows:
1
2
3
4
5
6
7
8
|
\documentclass
[twoside]{cctart}
\usepackage
{headrule,vatola,amssymb}
\usepackage
{graphicx,multirow,bm}
\usepackage
{booktabs,dcolumn}
\newcolumntype
{z}[1]{D{.}{.}{#1}}
\usepackage
{tabularx}
\usepackage
{slashbox}
%\usepackage{footmisc,perpage}
|
The following few features are extracted:
-
\documentclass
Loaded incctart
the document class; -
Loaded
vatola
packages; -
Loaded
headrule
packages; -
Loaded
slashbox
packages.
If your hand meets these features templates, then this article will help you.
List
Here is a list of journals record the use of such templates. If you find that your submission journals also use this template (in line with the above characteristics), please leave a message to tell me; I will promptly added to the list, to facilitate newcomers.
problem analysis
These documents using a class template cctart
is part of CCT system. CCT system is supported by a Chinese way early, now obsolete. Although CTeX CCT was also retained, but the version at the time of writing templates and these have been different; as for TeX Live there, there is no CCT system. Therefore, the compiler error that is a natural thing.
Use the template vatola
and headrule
two packages. Both packages are LaTeX 2.09 times the old packages; their functions have been replaced by other packages. Therefore, the modern distributions ( TeX Live , CTeX 2.9.2.164 ) no longer contains these packages; then, when compiling packages will be suggested that the lack of errors.
In addition, although slashbox
the macro package LaTeX 2e for the current design, but its license agreement with TeX Live conflict, and therefore are not included in the TeX Live packages. So, if your release is a TeX TeX Live, it will prompt compile time error.
solution
Old conflict between the template and modern TeX distributions irreconcilable, so there must be a party need to compromise.
If you do not insist on changes to the template, then we had to use TeX release template contemporaries. Of course, you must use the Windows operating system.
You can go to download CTeX 2.4.6 and install it. CTeX 2.4.6 WinEdt where there is a CCTLaTeX button, then click on it, you can get the right to compile .dvi
and .ps
file, if required .pdf
files can be used ps2pdf
tool to convert.
If you insist on using modern release, it will need some fine-tuning of the template. Here provides two methods, both methods are applicable to each operating system.
use ctexart
-
The
\documentclass
inside loaded document classes, fromcctart
replacingctexart
; -
Download site provides
vatola.sty
andheadrule.sty
two macro package file (2014-12-17 update); -
CTAN to download
slashbox
packages and install; -
The above three packages mounted to TEXMFLOCAL, and then execute
texhash
the command; or directly placing them in the template file folder inside the same; -
Use pdfLaTeX compilation, you can get almost exactly the same result with the original template;
-
Formal submission, simply
ctexart
exchangecctart
can be.
Install the new CCT systems (2014-12-21 update)
-
Download the CCT TDS installation package ;
-
The TDS content installation package, extract combined to TEXMFLOCAL appropriate directory;
-
Will be
\documentclass
in the document class options, fromtwoside
replacingtwoside, CJK
; -
In
\documentclass
after loadingifpdf
packages:\usepackage{ifpdf}
; -
Download site provides vatola.sty and headrule.sty two macro package file (2014-12-17 update);
-
CTAN to download slashbox packages and install;
-
The above three packages mounted to TEXMFLOCAL, and then execute
texhash
the command; -
Points of discussion:
-
If you are using a Windows system, then
\begin{document}
before adding the command line\AtBeginDvi{\input{zhwinfonts}}
; -
If you are using Mac OS X or Linux system, you need to install the Windows Easy font, and then
\begin{document}
add a line command before\AtBeginDvi{\input{zhwinfonts}}
; -
If you are using Mac OS X or Linux system, you can also install these fonts, then
\begin{document}
add a line command before\AtBeginDvi{\input{zhfzfonts}}
; -
Founder of Song Dynasty GBK: FZSSK.TTF
-
Founder italics GBK: FZKTK.TTF
-
Founder blackbody GBK: FZHTK.TTF
-
Founder italics GBK: FZFSK.TTF
-
Chinese official script: STLITI.ttf
-
Chinese Amber: STHUPO.TTF
-
Use pdfLaTeX compilation, you can get exactly the same result with the original template;
-
Formal submission, only need to add the
CJK
options andifpdf
macros and\AtBeginDvi{}
commands can be deleted.
to sum up
Overall CCT is an outdated way of Chinese support, very much like the system engineering theory and practice of the Times editorial department can use the new way to support Chinese for the convenience of all the authors. For the majority of LaTeX users, unless special needs, do not use the old TeX distribution, in order to enhance the compatibility of the document.
But also of hope that the journal editors to reflect this problem as soon as possible out of these templates.
Download Area
Involved in the text file download: CCT-full.zip
Selected from: https://liam.page/2013/10/15/LaTeX-CCT-template/