Questions tagged [ctex]

Usually related to Chinese documents.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 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
49 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
  • 1,801
0 votes
2 answers
47 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
1 vote
1 answer
41 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
59 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,121
0 votes
0 answers
30 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
40 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
8 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
26 views

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

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
  • 1,801
0 votes
0 answers
126 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
  • 179
0 votes
0 answers
32 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
  • 1,801
1 vote
0 answers
38 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
114 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
73 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,023
0 votes
0 answers
27 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
124 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
  • 1,801
0 votes
1 answer
69 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
  • 1,801
5 votes
1 answer
235 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
61 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
  • 17.8k
1 vote
1 answer
202 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
  • 247
1 vote
2 answers
190 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
50 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
908 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,121
1 vote
1 answer
57 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
  • 5,864
0 votes
1 answer
203 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
272 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,092
0 votes
1 answer
179 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
488 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
754 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
4 votes
1 answer
157 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,092
5 votes
1 answer
172 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,092
1 vote
1 answer
320 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
725 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
42 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
  • 805
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,167
0 votes
0 answers
289 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
0 answers
98 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 ...
thone's user avatar
  • 256
1 vote
0 answers
216 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
  • 649
3 votes
4 answers
746 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,167
5 votes
1 answer
326 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
115 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
102 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
879 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,121
8 votes
3 answers
12k 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 ...
jxhyc's user avatar
  • 1,121
0 votes
0 answers
98 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 ...
Superman's user avatar
  • 1,615
1 vote
1 answer
214 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 ...
ZYX's user avatar
  • 717
1 vote
1 answer
557 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 ...
gamebm's user avatar
  • 180
1 vote
1 answer
569 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 ...
Vincent Yin's user avatar
4 votes
1 answer
339 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 ...
zyy's user avatar
  • 2,116
1 vote
1 answer
221 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} \...
WButter's user avatar
  • 31