Skip to main content

Questions tagged [cjk]

{cjk} is about typesetting documents in Chinese/Japanese/Korean.

Filter by
Sorted by
Tagged with
1 vote
0 answers
66 views

CJK typesetting: how to list available fonts (linux)?

I'm trying to learn how to write Chinese in LaTeX (using TeXstudio on Debian Linux) - I've found this example, which works: %!TEX program = xelatex \documentclass[a4paper,10pt]{article} \usepackage{...
j4nd3r53n's user avatar
  • 509
0 votes
0 answers
16 views

Can I use the \adjustbaseline command (provided by luatexja package) for "yoko" mode?

More specifically, how can I create a command similar to \adjustbaseline in "yoko" mode?
lllllf010083's user avatar
1 vote
1 answer
60 views

LuaLaTeX strange error with Noto CJK and babel onchar=ids fonts

I am converting a multilingual project to LuaLaTeX when it gave a strange error in a chemfig command: ! LaTeX Error: Command \rmfamily invalid in math mode. See the LaTeX manual or LaTeX Companion ...
M. Zhang's user avatar
  • 113
1 vote
1 answer
101 views

ACM Paper Submission containing Chinese characters does not allow xeCJK package and does not support XeTeX Compiler

Using the ACM Template - acmsmall version 2.1 (latest version at the moment of writing), the ACM upload system does not support XeTeX compiler; only LaTeX compiler is supported. Here are my codes (...
Raptor's user avatar
  • 179
1 vote
1 answer
129 views

Where does \label write to?

Sorry this is a basic question. I do not know where does \label write the data to? In my previous installation of MikTex 2.9 I can use \CJKnumber{\ref{X}} to reference a previously defined number X ...
nana's user avatar
  • 23
3 votes
1 answer
97 views

LuaLaTeX - Pinyin over rare Chinese characters

I know that using the xpinyin package can solve this, but I need to use Lualatex, which is not supported. At first I used the following code: \documentclass{ctexart} \usepackage{amsmath} \newcommand\...
Caiyhg's user avatar
  • 73
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
0 answers
15 views

Package CJK Error: Invalid character code [duplicate]

I am writing my PhD thesis in WinEdt 10.2 with MikTex support. My thesis needs to include cover page having chinese fonts. University thesis class has all the definitions. When i compile the main text ...
Syed Ameer Ahmed Gillani'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
1 answer
430 views

LaTeX Compile Error due to CJK error

I am writing my PhD thesis in WinEdt 10.2 with MikTeX support. My thesis needs to include cover page having chinese fonts. University thesis class has all the definitions. When I compile the main text ...
Syed Ameer Ahmed Gillani's user avatar
0 votes
0 answers
66 views

How to use normal letter spacing in ruby/furigana?

See the following example, adapted from Typesetting furigana above and below original text \documentclass{report} \usepackage{xeCJK} \usepackage{ruby} \usepackage{setspace} %% \makeatletter \...
noxewa's user avatar
  • 65
0 votes
0 answers
43 views

Using CJK adaption code in R Markdown

I have limited TeX experience, so please forgive the simple question. I've tried to resolve this issue for hours to no avail. I am trying to use the code for CJK Chicago-style author-date ...
myusername's user avatar
3 votes
1 answer
61 views

tex4ebook does not render Japanese text

I'm trying to use tex4ebook to generate an epub file from a project in LaTeX. The original project, targetting pdf, uses XeLaTeX and the package xeCJK, and works fine. With tex4ebook, I get the ...
Sérgio Domingues's user avatar
3 votes
1 answer
322 views

Apostrophe for Noto CJK fonts

In my article, I would like to display Traditional Chinese characters. I'm using the following structure in Overleaf online editor: \documentclass{article} \usepackage{CJKutf8} \usepackage{fontspec} \...
Raptor's user avatar
  • 179
1 vote
1 answer
107 views

Why does kotex put \dots in the midline rather than the baseline?

I have a document which needs to include a couple of Korean characters, which I'm doing via the "kotex" package, compiling the PDF with xelatex. This package appears to be redefining \dots ...
Sara L. Uckelman's user avatar
2 votes
1 answer
514 views

Missing character: There is no 蒋 (U+848B) in font [lmsans17-regular]:mapping=tex-text;!

When I render this document in macOS 13.2: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[utf8]{inputenc} \usepackage{CJKutf8} \usepackage[scale=0....
Dolphin's user avatar
  • 895
3 votes
0 answers
102 views

How to add multiple/conditional fallbacks (fonts) using fontspec and lualatex?

MWE: \documentclass{article} \usepackage{luacode} \usepackage{fontspec} % Note that I don't use emoji in this example, % but the font for them must be present (not removed). \begin{luacode*} ...
Andrew15_5's user avatar
0 votes
0 answers
87 views

How to use Chinese characters in URLs?

If the URLs contain Chinese characters, the tex will output error. I used PdfLaTeX. Here is my situation. \begin{CJK}{UTF8}{gbsn} \begin{thebibliography}{99} \bibitem{ref1} \href{https://zh.wikipedia....
Tony Chow's user avatar
0 votes
1 answer
167 views

Pandoc CJK & Greek MWE's Greek alphabet spacing too wide

Background I'm preparing a series of simple document templates on my personal site. To allow readers who have never used pandoc to see the visual output, I added some  <object class="...
GNUSupporter 8964民主女神 地下教會's user avatar
2 votes
1 answer
210 views

Lualatex — Memory exhausted (xmalloc)

I am putting together a collection of songs from around the world. I am using fontspec in lualatex with Tex Live on Windows 11 with 16GB of RAM. I am compiling the document variously by using a latex-...
Asdfasdflkjsadkfjka's user avatar
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
0 answers
74 views

CJK "undefined" in MikTeX, running normally in TexLive

A file that uses the CJKutf8 package runs perfectly in OverLeaf (which I assume uses TexLive), however, the same exact file will not compile on my desktop using MiKTeX. I will have \documentclass[11pt,...
Guilherme Vargas's user avatar
3 votes
1 answer
94 views

Some `fontawsome` icons cause build errors when enabling Japanese support

When using moderncv, enabling some kind of Japanese support (e.g. with luatexja or babel) makes it impossible to use some certain fontawesome icons, giving build errors such as Missing font identifier....
zareami10's user avatar
  • 158
3 votes
1 answer
164 views

How to add (fake) bold feature to fallback font using luaotfload luatex

I have this in my preamble: \usepackage{luacode} \begin{luacode*} luaotfload.add_fallback("FallbackFonts", { "Noto Color Emoji:mode=harf", "Noto Sans CJK JP:" }) \end{...
Andrew15_5's user avatar
1 vote
0 answers
325 views

Bold face not working with CJK and ctex?

I had a document with a very few chinese and japonese characters. I recompiled my document recently, and noticed that bold face does not work anymore on latin characters. I tried to re-install texlive ...
Dude's user avatar
  • 33
1 vote
0 answers
77 views

How to create vertically typeset sections in a horizontally typed document in LuaLaTex for CJKV languages?

How would I go about creating vertical Chinese/Japanese sections (perhaps boxed) in a horizontally typed document. Something like the Kanbun sections in this documentation: https://mirror.ox.ac.uk/...
Alex miao's user avatar
-1 votes
1 answer
347 views

\boldsymbol and \it not work

Our project formula uses \it and \boldsymbol, but it doesn't work since we upgrade texlive from 2016 to 2022. I doubt it might be the problem of font? The formula: ${\it v} _x={\it v} _0$,$x={\it v} ...
1587795171qqcom's user avatar
1 vote
1 answer
42 views

How to use CJK environment in .dtx documentation?

This is my a.dtx file, which doesn't compile: % \GetFileInfo{a.dtx} % \iffalse %<*driver> \ProvidesFile{a.dtx} %</driver> %<class>\NeedsTeXFormat{LaTeX2e} %<class>\...
yegor256's user avatar
  • 12.2k
1 vote
0 answers
150 views

How to have both emphasis/italics and Chinese font in pdflatex

This is a pdflatex version of the question How to have both emphasis/italics and Chinese font. Consider \documentclass{amsart} \usepackage{CJK} \usepackage[utf8]{inputenc} \begin{document} A \emph{B} ...
Benjamin McKay's user avatar
1 vote
0 answers
77 views

Is there a way to prioritise fonts in xecjk? (Or how do I create a fallback font for a text)

I need help prioritizing fonts for a paper writing about a constructed script that uses a font. However I want another font that will do the thing for a specific part of the font. for example i want a ...
Adrik Ivanov's user avatar
1 vote
0 answers
55 views

How to make the flexible space discrete?

When typesetting Eastern Asian materials, positions of characters are normally relatively rigid. But there are unavoidable situations in which flexible spaces are needed, which are typically defined ...
Chih-See Hsie's user avatar
4 votes
1 answer
775 views

With CJKutf8 package, any bold or italic fonts stop working in LaTeX [closed]

I regularly have to type documents with a mix of English for the main body of the text and Chinese characters for headers, footnotes and similar parts of the document. Until a few days ago this was ...
Micha42440's user avatar
0 votes
0 answers
498 views

Package CJK Error: Invalid character code

Today, I use another computer to run my .tex. The console shows the following error. But, I can run the same file on my foemer PC. After diagnosing, I find the problem which is marked below. If I ...
Harry Wang's user avatar
2 votes
1 answer
276 views

Is there any command equivalent to the itshape of the CJK main font?

As you see, the codes \usepackage{xeCJK} \setCJKmainfont[ItalicFont={it.otf}, BoldFont={bf.otf}]{rm.otf} set the \rmfamilly of the CJK main font, the \itshape of the CJK main font and the \bfseries ...
M. Logic's user avatar
  • 4,333
1 vote
2 answers
93 views

Certain Korean glyphs are not displayed in output

I am trying to create some Korean language beginner lessons on LaTeX. I am using the CJKutf8 package for Korean font. It is working in most parts of the document. But when I try to display some random ...
FullMoon99's user avatar
0 votes
1 answer
1k views

How do I use "KaiTi" font with LuaLaTeX

I'm currently using luatexja-fontspec to input chinese into my LaTeX document but it show this error: The font "KaiTi" cannot be found. How do I use this font or another similar font to it? ...
Adrik Ivanov's user avatar
3 votes
3 answers
394 views

Ask for Chinese chess characters

I want to reproduce this image but I cant' find any information about these characters. I also don't know Chinese. cchess, xq are outdated. (I think so) So, I want to know whether there is a package ...
Nguyen Van Chi's user avatar
1 vote
1 answer
185 views

CJK names and biblatex

CJK names still pose a problem in bibliographies using biblatex: there is no built-in option to differentiate between the name in transcription and in CJK characters, which sometimes leads to ...
Philipp's user avatar
  • 1,617
4 votes
1 answer
296 views

How can I mix a CJK font and other font in ConTeXt?

In XeTex or LuaTex, we can switch sans fonts between CJK and English automatically. How can we do a similar thing in ConText? \setmainfont[]{Optima} \setsansfont[]{Optima} \ifXeTeX \usepackage{xeCJK}...
mattocci's user avatar
0 votes
0 answers
24 views

PDF/A-1u validation failure due to incorrect "CIDSet stream" from CJK fonts [duplicate]

This document... \documentclass{article} \usepackage[a-2u]{pdfx} \usepackage{babel} \babelprovide[import=zh-Hans]{chineseS} \babelfont[chineseS]{rm}{AR PL UMing CN} \begin{document} what \...
zwol's user avatar
  • 2,981
12 votes
1 answer
590 views

TeX Live 2021 CJK bug

Including CJK seems to disable the effects of \bf and \it. For instance, the picture is generated by the following code: \documentclass{article} \usepackage{CJK} \begin{document} One \bf{two} \it{...
citsahcots's user avatar
  • 8,002
0 votes
0 answers
214 views

Certain Japanese Characters Missing with CJK*

Whilst using CJK to write Japanese to a LaTeX document I am having issues where some characters are missing from the output. For example my .tex file looks like: \documentclass{article} \usepackage{...
Daniel's user avatar
  • 1
3 votes
1 answer
130 views

Discourage a line break after a certain CJK character with babel

When I set Chinese using babel and LuaLaTeX, I often find a line break inserted after :“. This looks weird to me and I'd prefer the break to come after the : and before the “. Can I tweak some babel ...
David Purton's user avatar
  • 26.4k
3 votes
1 answer
140 views

How can I enable XeTeX to typeset partial Hangeul (Korean)?

When I compile the following code containing partial Korean Hangeul characters with XeTeX, the characters are not displayed properly. When compiling with LuaTeX they are set overlapping each other, as ...
Nawit's user avatar
  • 85
1 vote
0 answers
82 views

Can the ctex update error be fixed by users?

I've been using ctex for a couple of years, but the latest MiKTeX update breaks it. This issue has been reported at the miktex issue tracker, and it was closed there when the OP of that issue posted ...
Colin McLarty's user avatar
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
4 votes
3 answers
3k views

Chinese characters not displayed when using CJK

The following minimal example does not show all the five characters in Chinese. How can I fix that? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{CJK} \begin{document} \begin{CJK*}{...
shuhalo's user avatar
  • 2,575
5 votes
1 answer
604 views

LaTeX traditional Chinese doesn't support for some letter like ‘爲’ [duplicate]

I want to print out some traditional Chinese phrase “因爲所以”, but the letter “爲” is missing, what can I do? Linux with pdflatex. %!TeX program = pdfLaTeX \documentclass{article} \usepackage{CJKutf8} \...
John Chen's user avatar
1 vote
0 answers
48 views

Spurious space introduced by xeCJK [duplicate]

To represent graphemes or grapheme strings I use the following command: \def\grapheme#1{\ensuremath{\mathopen{<}}#1\ensuremath{\mathclose{>}}} There seems to be something in xeCJK that inserts ...
yannis's user avatar
  • 2,013
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

1
2 3 4 5
8