2022 Developer Survey is open! Take survey.

Questions tagged [ctex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

Getting wrong math formula with CTEX?

When I use \usepackage[UTF8]{ctex} and input the formula like this: \begin{equation} y = \frac{\gamma}{\sqrt{Var[x] + \varepsilon } } \cdot x + (\beta - \frac{\gamma E[x]}{\sqrt{Var[x] + \varepsilon }...
user avatar
0 votes
0 answers
30 views

I am using "ctexrep.cls" package. But I am facing a problem that my chapter title and chapter number present in different line

I am using "ctexrep.cls" package. But i am facing a problem that my chapter title and chapter number are present in a different lines. The question I ask before in which someone suggests me ...
user avatar
0 votes
0 answers
192 views

package fontspec errors: the font "FandolSong-Regular"cannot be found when trying to use a latex template

I am trying to use Latex to write my resume. In order to do that, I downloaded a template from here. Since I would like to write a Chinese resume, usually what I do is I add \usepackage{ctex} before ...
user avatar
  • 1,023
1 vote
1 answer
41 views

How to avoid the vertical spacing dispersion in the whole document?

I found that LaTeX automatically disperses the spacing in the vertical direction, which is similar to the vertical version of Justify or Distributed in word. This will lead to a problem, that is, ...
user avatar
  • 409
0 votes
1 answer
78 views

The connector between multiple authors

Now I need to cite Chinese and English literature meanwhile in one document. However, I can not use the proper connector between two authors according to different languages. I need to use a connector ...
user avatar
  • 27
4 votes
1 answer
219 views

LuaLaTeX: ctex and microtype together produce errors when using "\scshape"

Consider the following MWE, to compile with LuaLaTeX: %! TEX program = lualatex \documentclass{article} \RequirePackage[fontset=fandol]{ctex} \usepackage{microtype} \begin{document} {\scshape Some ...
user avatar
  • 5,009
0 votes
1 answer
105 views

LaTeX suddenly fails to compile

''' Command \iint already defined. ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} ''' The main errors are asamath.sty, ctex.sty, ctexbook.sty enter link description here Since I am using Chinese, there ...
user avatar
0 votes
0 answers
29 views

Bug in recent update for ctex package? [duplicate]

\documentclass[12pt, UTF8]{ctexart} %\documentclass[12pt, UTF8, scheme = plain]{ctexart} %\documentclass[12pt, UTF8]{article} \begin{document} This is \textit{a test}. \end{document} \textit{} ...
user avatar
  • 489
2 votes
1 answer
295 views

Cannot install ctex via tlmgr: "Unknown option: status-file" when running fmtutil-sys

I am trying to install ctex through tlmgr. However, it fails. (For other packages, it works fine, so I guess it is not a general error.) Here is the command I run: tlmgr update --self && tlmgr ...
user avatar
  • 129
2 votes
1 answer
268 views

Redefining CJKfamily warning

\documentclass[presentation]{beamer} \usetheme{CambridgeUS} \usepackage{ctex} \setCJKmainfont{SimSun} \setCJKsansfont{Noto Sans CJK SC} \setCJKmonofont{Noto Sans Mono CJK SC} \begin{frame}{Frame ...
user avatar
4 votes
1 answer
68 views

The use of polyglossia changes Chinese font selection

I just switched from babel to polyglossia, and surprisingly found my san-serif Chinese font changes. Consider the following example: %! TEX program = xelatex \documentclass{article} \RequirePackage{...
user avatar
  • 5,009
5 votes
1 answer
80 views

polyglossia and \selectlanguage in the preamble causing Chinese characters disappear

Consider the following example (compile with xelatex): %! TEX program = xelatex \documentclass{article} \usepackage{ctex} \RequirePackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage[...
user avatar
  • 5,009
1 vote
1 answer
144 views

"Improper alphabetic constant" error when input standalone subfile

Upgrade to TexLive2020 recently, and get "Improper alphabetic constant" error when \input a subfile with the standalone pkg. There's no problem if the subfile contents are directly put in ...
user avatar
  • 13
2 votes
2 answers
220 views

Some Chinese characters can no show using ctex

I use overleaf to edit my CV, but I find a character "珅" in Chinese cannot be shown in the compiled PDF. I also try XeCJK, but it doesn't work too. Here is my code: \documentclass[a4paper]{...
user avatar
0 votes
0 answers
39 views

How to define a space command to be invisible between two Chinese chars but visible between a Chinese char and an alphabet char?

I would like to define a command which stands for a whitespace between a Chinese char and an alphabet char, such that it produces a whitespace when placed between a Chinese (CJK) char and an alphabet ...
user avatar
  • 795
0 votes
1 answer
820 views

Bold chinese characters with ctex

I am doing some document with Chinese characters and package ctex \usepackage[UTF8]{ctex} However, as soon as I try to typeset something in bold, say \begin{tikzpicture} \node at (0,0) {\textbf{固态}}; ...
user avatar
  • 5,473
0 votes
0 answers
236 views

Undefined control sequence. \ctex_gadd_hook:Nn

I am writing my Thesis and facing this problem. I am using MikTex with Texstudio. Tried to resolve the issue but failed to find the solution. I need your help. Here is the error ! Undefined control ...
user avatar
  • 1
0 votes
0 answers
57 views

My latex file is missing

I do not know whether it is proper to ask a technical question here. It made me frustrated. When I was writting the latex, something is wrong and it had no response. I restart the computure, the ...
user avatar
  • 256
1 vote
0 answers
206 views

CTeX recent update causing problem: \ctex_gadd_hook:Nn \CJKhook { \ctex_set_ignorespaces: }

It was fine by 17th Sep and the file would compile using PDFLaTeX to produce PDF. \documentclass[12pt, a4paper]{ctexrep} \usepackage{amsmath} \usepackage{adjustbox} % uses graphicx \usepackage[top=1....
user avatar
  • 489
2 votes
4 answers
488 views

How to create a node with a vertical Chinese text

I want to create a node with Chinese text written in vertical direction. Of course, I don't want the characters to be rotated! Is that possible? MWE: \documentclass[tikz]{standalone} \usepackage[...
user avatar
  • 5,473
5 votes
1 answer
186 views

Using 'ctex' and 'translations' packages together

I have numerous documents in English which will be translated into Chinese. I use ctex package for Chinese typesetting and XeLaTeX for compiling. There are some strings repeating throughout the ...
user avatar
  • 129
0 votes
1 answer
109 views

ctex will not automatically new a paragraph using a blank line

I have two computers installed ctex package while the versions are different. The versions are 2.5.2 and 2.4.16. The MWE.tex saved as GBK encoding, is shown as follows. \documentclass[GBK]{ctexbook} \...
user avatar
0 votes
0 answers
55 views

Vertical space introduced by ctex?

I have to use ctex package for typing Chinese, but it comes annoying extra space between section and equations. I tried many commands but cannot remove this space. \documentclass[a4paper,oneside,12pt]...
user avatar
  • 89
0 votes
2 answers
435 views

how to set ctex font size to \lishu

log file I probably should spend more time getting to read the documentation but I must admit it is too advanced and I have a hard time comprehending what its tring to say.I am on a deadline and need ...
user avatar
  • 1,023
6 votes
3 answers
6k views

critical package ctex error:ctex fontset"fandol" is unavailable in current

I am trying to use some Chinese characters in my Latex document(But it is not entirely in Chinese) and this is the website that I came across. According to the author, all I need is to use ctex ...
user avatar
  • 1,023
0 votes
0 answers
78 views

ctex package installation error

I just installed ctex today, and used \usepackage{ctex}, only to get these errors: Package ctex Error: Support package `fontspec' too old. ... { ctex } { package-too-old } { fontspec } } Package ...
user avatar
  • 1,427
1 vote
1 answer
160 views

How to eliminate the space after chemical formula in mhchem enviornment

It's very convenient to use mhchem to typeset chemical formulas. It works very good in English writing, but when using Chinese (ctex), every chemical formula is followed by a space, which makes the ...
user avatar
  • 697
1 vote
1 answer
463 views

It is possible to use ctex in MikTeX/TeXworks?

I have been using MikTeX/TeXworks for a while and have really enjoyed its universality and facility. I usually compile laTeX documents with XeLaTeX or pdfLaTeX. However, I was not able to input ...
user avatar
  • 170
1 vote
1 answer
500 views

How to solve the following errors in notag equation with the "amsmath" used? [closed]

Coding: \documentclass{article} \usepackage{ctex} % used for Chinese \usepackage{amsmath} % equation* \begin{document} 直角三角形有如下性质: \begin{equation*} % for notag equation a^2 ...
user avatar
4 votes
1 answer
172 views

How do I make Chinese character string to have the same length by filling blanks?

I am trying to write a document for several people to sign, their names have different numbers of characters. I would like to make them to have the same length by filling blank spaces to them. For ...
user avatar
  • 1,864
1 vote
1 answer
109 views

Missing characters in ctex

When using ctex combined with xeLatex, I found there are some missing characters in ctex, so I wonder how to solve this issue ? For example, character 祂. \documentclass[a4paper, 11pt]{article} \...
user avatar
1 vote
0 answers
44 views

CTEX renders the underscore too long [duplicate]

When using the ctex package, it seems that a single underscore (\_) will be rendered the length of two underscores. However in the rendered PDF there's nothing wrong with the text itself (meaning you ...
user avatar
  • 197
1 vote
1 answer
207 views

"LaTeX Error: Not in outer par mode." When Rotating a Table

I wanted to rotate my table using sidewaystable in LaTeX, but it turned out to be wrong with the error message LaTeX Error: Not in outer par mode., whose location is marked with %'s below. % !TEX ...
user avatar
  • 11
1 vote
1 answer
61 views

How to select a cascading set of fonts

I am writing a LaTeX document about Chinese characters decomposition. As such I need many weird and unusual characters. I have installed several fonts to cover all the CJK set and in my system all ...
user avatar
4 votes
0 answers
235 views

What are the problems for CTeX in pdfLaTeX?

While I do not produce documents in Chinese, I quote enough Chinese to be very happy that CTeX exists. I have used CJKutf8. Now simple examples in CTeX work fine for me using pdfLaTeX. The CTeX ...
user avatar
0 votes
1 answer
169 views

How to use \addCJKfontfeatures?

The ctex bundle provides Mapping = fullwidth-stop to convert ordinary Chinese periods (。) to fullwidth periods (.). (Not to be confused with halfwidth periods (.).) However, this only works for one ...
user avatar
  • 726
1 vote
0 answers
172 views

The vertical spacing before the title of TOC is inconsistent with the normal section title

I use the tocloft package to customize the format of TOC and the ctex package to support Chinese typesetting and to customize the section title format. Everything works well. But I find that the ...
user avatar
  • 105
3 votes
1 answer
514 views

How do I select a Chinese font for caption label?

I am writing a document in Chinese and would like to choose a font for the caption label, different from that is used in the main text. I know it is tricky to work with Chinese font in LaTeX, but I ...
user avatar
  • 1,864
5 votes
1 answer
558 views

Will \usepackage[UTF8]{ctex} change the appearance of my non-Chinese part LaTeX document?

I'm very new with LaTeX. I'm using it to write a document and 70% of the content is English and left is Chinese. After some research I found just by adding \usepackage[UTF8]{ctex} in the document, I ...
user avatar
1 vote
0 answers
92 views

Packages option breakall not compatible with ctex

I am having this weird issue where the option breakall of package truncate is not compatible with package ctex. Below is the code \documentclass[UTF8]{article} \usepackage{lipsum} \usepackage[UTF8]{...
user avatar
  • 1,864
3 votes
0 answers
703 views

\maketitle undefined control sequence{with ctex} [closed]

I want to type Chinese in my report but I have some problem with my code. Once I add \usepackage[UTF8]{ctex} in the file the compiler will complain with the message undefined control sequence \...
user avatar
5 votes
2 answers
663 views

How to properly scale up fonts from newtxtext and mtpro2?

Motivation For my CJK documents, I’m mixing TeX Gyre Termes (a Times clone) with Source Han Serif and TeX Gyre Heros (a Helvetica clone) with Source Han Sans. I’m also using the MathTime Professional ...
user avatar
  • 9,268
3 votes
0 answers
376 views

Customizing line spacing in ctex classes

My goal I recently started using the ctex classes to convert some of my English articles into Chinese. Regarding the line spacing, I would like to achieve the following: The body text should have a ...
user avatar
  • 9,268
3 votes
1 answer
4k views

Chinese on MacTex2018, simple example

I just installed MacTex2018 (because I was having trouble with TexLive2016). My issue is related to chinese chars. May I ask for a simple example? In the end I would like to have just some chinese ...
user avatar
  • 1,092
0 votes
0 answers
69 views

ctex and fontenc mess up the siunitx package

I am working on an article in Chinese, and I find that ctex and fontenc are interfering with the siunitx package when the detect-all switch is on. A MWE is as follows %!TEX program = xelatex \...
user avatar
  • 599