Skip to main content

Questions tagged [ctex]

Usually related to Chinese documents.

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

Beamer: Latexmk Warnning about Package CTex for Package hyperref

When I try to compile my own tex file by latexmk, this warnning in topic has occured. I use the following configuration: \documentclass[11pt]{beamer} \usepackage{lmodern} \usepackage{multicol} \...
Jing Kong's user avatar
0 votes
1 answer
41 views

How to resolve LaTeX Error: Unicode character if Package CJK is forbbidden?

In the offical AAAI Latex package, it explicitly claims the CJK package is forbidden. Therefore, the following error appears when the content of the paper contains such charaters. LaTeX Error: Unicode ...
VisualJoyce's user avatar
0 votes
1 answer
34 views

"\renewcommand{\tilde}{\widetilde}" doesn't take affect in ctexbook class

I want to redeifne \tilde to \widetilde. However, it doesn't take affect. \documentclass{ctexbook} \renewcommand{\tilde}{\widetilde} \begin{document} $\tilde{A}\widetilde{A}$ \end{document}...
gaoqiang's user avatar
  • 155
0 votes
0 answers
38 views

A CTEX problem, a package is not recognized

The red dot in the picture below says: Package fontspec Error: The font "KaiTi" cannot be found. I think the problem is from the package ctex, and some commands are not recognized.
jason's user avatar
  • 145
0 votes
2 answers
182 views

Italic font in chinese

\documentclass{ctexart} \begin{document} \textit{这是中文斜体, 文字是楷体, (括号是斜体的)}. \end{document} In Chinese, we seldom use true italic font. As shown in the above example, italic font in Chinese are ...
gaoqiang's user avatar
  • 155
2 votes
1 answer
80 views

newtx package interferes with ctex (fontspec option clash)

The latest version of newtx interferes with ctex, here's an MWE: \documentclass{ctexart} \usepackage{newtxtext} \begin{document} Hello, 你好. \end{document} I have upgraded to the latest version of ...
NemoYuan2008's user avatar
1 vote
1 answer
53 views

how to tweak the indent length

I want to indent some text in latex, this is my latex code look like: \documentclass[a4paper]{article} \usepackage{ctex} \begin{document} (Sex:Female\indent{}Age:55) \end{document} the indent ...
Dolphin's user avatar
  • 895
0 votes
1 answer
55 views

A problem about the format of section title

I want to get the format of the title of each section as shown in the picture below (labeled "Figure Example_CTeX"): This format is from the Package documentation (online PDF) of CTeX and ...
GL_n's user avatar
  • 193
1 vote
1 answer
96 views

How to break author name at the end of the line?

By author-year format, sometimes author's name is too long at the end of the line, the name will extend to the right blank of the page. So, how to break it for all the cases in the paper and how to ...
Y. zeng's user avatar
  • 2,105
1 vote
3 answers
70 views

Inserting ties in Chinese documents

I've been following Knuth's advice in the TeXbook about inserting ties (i.e. non-breaking spaces) between words and formulas in appropriate places. However, when I typeset a Chinese document (using ...
pzq_alex's user avatar
  • 111
1 vote
1 answer
77 views

How can I add a dot under Chinese characters and paragraph?

I'm trying to practice TeX by typing my algebra textbook, but now I have a problem when adding dot under Chinese characters. The picture shows where I encountered this problem. I tried \dot in math ...
Zequan Bear's user avatar
0 votes
0 answers
171 views

Unable to use package ctex using latexworkshop in Visual Studio Code on my mac

I am writing in Chinese so my understanding is pdflatex doesn't work for me. I have to use xelatex with the ctex package. This is my code, which worked perfectly in the TeXShop IDE that I got after ...
jxhyc's user avatar
  • 1,141
0 votes
0 answers
49 views

Progress on: CJK ctexart LuaLaTeX. Either characters shows "F" or Author has "UU" (See picture)

\documentclass[UTF8,fontset=fandol,disablejfam]{ctexart} \setCJKmainfont{ipaexm} % \setCJKsansfont{Noto Serif CJK JP} % \setCJKmonofont{Noto Serif CJK JP} \usepackage[margin=1.75in]{geometry} \...
Zhiyuan Liu's user avatar
0 votes
1 answer
49 views

CJK ctexart LuaLaTeX. Either characters shows "F" or Author has "UU" (See picture)

MWE for the first example: \documentclass[UTF8]{ctexart} \usepackage{graphicx} % Required for inserting images \usepackage{caption} \usepackage{subcaption} \usepackage{float} % Force Floats of ...
Zhiyuan Liu's user avatar
0 votes
0 answers
11 views

glstext-like command for page number in glossary list

I want to modify link texts, which are page numbers by default, in the glossary list. After some searching, I only find glstextformat which customises the link from main body to the glossary list. I ...
putianyi888's user avatar
1 vote
0 answers
41 views

Line number for two columns in "ctexbook" on the outer margins fails [duplicate]

As need to compile Chinese characters, I use the ctexbook style. When adding line numbers for two columns on the outer margins with \usepackage[switch]{lineno}, I see there are not on the outer ...
Y. zeng's user avatar
  • 2,105
1 vote
0 answers
301 views

Chinese font of CTEX

I use the package of CTEX to enbale the Chinese in beamer, but I found the font does not show in my setting. \documentclass{beamer} \usepackage{ctex} \setCJKmainfont{SimSun} \begin{document} \begin{...
Harry's user avatar
  • 199
0 votes
0 answers
80 views

Attachments that created by "attachfile2" can't be opened, but can be by "attachfile" in LaTeX, which is caused by "XeLaTeX"

With attachfile package, the PDF file can contain the attachment that can be opened by double clicking. But with attachfile2 package and ctex package, it can't. Sometimes, attachfile can't be replaced ...
Y. zeng's user avatar
  • 2,105
1 vote
0 answers
46 views

How to input CJK characters into TextField of PDF Form by using insdljs?

Recently, I'm trying to generate PDF documents with LaTeX. For some reason, I need to input CJK characters into TextField of PDF Form by using JavaScript. Numeric and alphabetic characters are shown ...
Andrew Terex's user avatar
0 votes
1 answer
256 views

In ctexbook document class, when I write a chapter, the word "chapter" is in English

I am writing a Chinese book using ctexbook, but when I used the chapter command, it does not write the word "chapter" in Chinese. Here's my code: \usepackage[a4paper, total={6in, 9in}]{...
Cheese Cake's user avatar
0 votes
1 answer
101 views

Why the CJKglue setting doesn't work in the document class of ctexart?

First an MWE is as follows. \documentclass{ctexart} \xeCJKsetup{CJKglue={\hskip 10pt plus 0.08\baselineskip}} %default value: \hskip 0pt plus 0.08\baselineskip \begin{document} 话说天下大势,分久必合,合久必分。...
M. Logic's user avatar
  • 4,333
0 votes
0 answers
36 views

\textcircled in newpxtext do not work with ctex

\textcircled in newpxtext do not work with ctex in newpx documentation, it says: if I use \documentclass{article} \usepackage{newpxtext} \usepackage{ctex} \begin{document} \textcircled{X}\textcircled{...
Firestar-Reimu's user avatar
3 votes
1 answer
133 views

\chemdelta not works with ctex in LaTeX

I find when I compile with ctex package in LaTeX, the \chemdelta is missing. For example: The code is: \documentclass{book} \usepackage{chemmacros,ctex} \begin{document} \tableofcontents \chapter{\...
Y. zeng's user avatar
  • 2,105
0 votes
2 answers
112 views

How to omit too much space of the text when refer to the chapter in \ctexset?

I define the style of the chapter with \ctexset, and it meets my requirement. But I refer to the chapter and there is too much blank between the text. For example: \documentclass{book} \usepackage[...
Y. zeng's user avatar
  • 2,105
5 votes
1 answer
242 views

Why are these two matrices not the same height

code 1 with ctex: \documentclass{article} \usepackage{ctex} \usepackage{amsmath} \begin{document} \begin{equation} A= \begin{bmatrix} x \end{bmatrix} \end{equation} \end{document} code ...
Park's user avatar
  • 53
0 votes
1 answer
67 views

Incompatibility between ctexcap and babel-arabic?

I'm trying to typeset a multilingual document with Arabic, Chinese (and a few others). In the following MWE, the Arabic word الشمس for "sun" is not shown (presumably because the babel ...
Herr K.'s user avatar
  • 18k
1 vote
1 answer
251 views

Compilation Failure of Minimal Test Chinese Document with TeX Live 2022

I have a fresh installation of TeX Live 2022 and I am trying to write documents in Chinese. But the compilation failed on the following minimal test document: \documentclass{article} \usepackage[UTF8]{...
Mr.Robot's user avatar
  • 267
1 vote
2 answers
207 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 }...
ARC wang's user avatar
0 votes
0 answers
58 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 ...
Irfan Tariq's user avatar
1 vote
0 answers
1k 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 ...
jxhyc's user avatar
  • 1,141
1 vote
1 answer
63 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, ...
Clara's user avatar
  • 6,017
0 votes
1 answer
285 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 ...
leelex's user avatar
  • 27
5 votes
1 answer
279 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 ...
Jinwen's user avatar
  • 8,618
0 votes
1 answer
207 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 ...
superlazyZhou's user avatar
2 votes
1 answer
567 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 ...
Frederik's user avatar
  • 129
3 votes
1 answer
990 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 ...
Firestar-Reimu's user avatar
5 votes
1 answer
177 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{...
Jinwen's user avatar
  • 8,618
5 votes
1 answer
205 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[...
Jinwen's user avatar
  • 8,618
1 vote
1 answer
399 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 ...
LXH's user avatar
  • 13
3 votes
2 answers
1k 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]{...
wenxi li's user avatar
0 votes
0 answers
45 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 ...
Eli4ph's user avatar
  • 815
0 votes
1 answer
2k 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{固态}}; ...
Pygmalion's user avatar
  • 6,329
0 votes
0 answers
317 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 ...
Ghouri's user avatar
  • 1
0 votes
1 answer
130 views

My latex file is missing [closed]

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 ...
thone's user avatar
  • 256
1 vote
0 answers
218 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....
CasperYC's user avatar
  • 697
3 votes
4 answers
863 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[...
Pygmalion's user avatar
  • 6,329
5 votes
1 answer
396 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 ...
f-hollow's user avatar
  • 189
0 votes
1 answer
117 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} \...
Zongxiang Yi's user avatar
1 vote
0 answers
120 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]...
John's user avatar
  • 199
0 votes
2 answers
1k 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 ...
jxhyc's user avatar
  • 1,141