# Tag Info

## New answers tagged cjk

2

This may be simpler: \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{SimSun} \punctstyle{plain} \def\CJKpunctsymbol#1{\raise-1ex\hbox to 0pt{\kern-.1em#1}} \begin{document} 道、可道也。非恒道也。 \end{document}

5

Here is an answer inspired by qingkuan@bbs.ctex.org. You can set a punctuation mark as \active, and then justify its position. Code: %!TEX program = xelatex \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{SimSun} \makeatletter \begingroup \catcode\，=\active \@firstofone{\endgroup\protected\def，}{% \hskip -.4ex\rlap{\raise -.9 ex ...

1

Hmmm, have a look at the output: Code: %!TEX program = xelatex %!TEX encoding = UTF-8 \documentclass[UTF8, nofonts]{ctexart} \setCJKmainfont[RawFeature={vertical:+vert:+vhal},BoldFont=Adobe Heiti Std,ItalicFont=Adobe Kaiti Std] {Adobe Song Std} \setCJKsansfont[RawFeature={vertical:+vert:+vhal}]{Adobe Heiti Std} ...

3

The easiest solution for you, I guess, is to copy the Windows Chinese fonts simsun.ttc simfang.ttf simkai.ttf simhei.ttf simli.ttf (optional) simyou.ttf (optional) to the working directory (if you have bought a Windows copy), and use: % Compile with pdflatex or latex+dvipdfmx \documentclass{article} \usepackage{CJKutf8} \usepackage{CJKspace} % for ...

5

Control sequences and packages about font (plain) TeX level control sequences about font There are several control sequences (or say command) about font in the original TeX (TeX primitive and/or plain TeX level command). \/, can be used to regulate the space after italic characters (see the difference between {\itshape italic} normal and {\itshape ...

1

My current best effort at this is based on the concept by @Gilles at Unix SE. It is not a pure *TeX implementation, and it is not perfect, but it is the one that has allowed me to compress my first 1.4MB of text onto 36 pages: around 40kB and 1400 lines per page. I use perl to pre-process the input text to escape LaTeX special characters, and also add ...

5

As you have already used, verbatim package is easy to configure to get proper line breaking and escape all the special characters. For CJK text, xeCJK is your friend. And there are some options of xeCJK to control the behavior for verbatim CJK text. I hacked into xeCJK package to tune the linebreak. It seems better, but not perfect. % -*- coding: utf-8 ...

5

You can tell xetex to linebreak Chinese and not to worry about characters that are normally special. (You probably need to make more characters catcode 12, this shows the basic idea) \documentclass{article} \usepackage{fontspec} \setmainfont{SimSun} \newcommand\showlog[1]{{% \catcode\#=12 \catcode\^=12 \catcode\\$=12 \obeylines \raggedright ...

2

you do not have any special character except the # then you can use a simple \input. My example uses xelatex which makes live easier with CJK languages. \documentclass{article} \usepackage[margin=1cm]{geometry} \usepackage{fontspec} \setmainfont{Code2000} \setmonofont{DejaVu Sans Mono}%% has no chines characters \usepackage{pdflscape} ...

7

To use Thai fonts, we do not need to load CJK package, but babel package. To use the fonts in C90 encoding, we can use thaicjk option of babel package. \documentclass{article} \usepackage[utf8x]{inputenc} % English is the main language \usepackage[thaicjk,english]{babel} \addto\extrasthaicjk{\fontencoding{C90}\selectfont} % Hack into CJKutf8 package for ...

1

Personally, I had a lot of trouble trying to get the CJK package to work. So I went on the KTUG website and found that they use the package kotex. \documentclass{article} \usepackage{kotex} \begin{document} 안녕하세요! \end{document} The good part about this was I was able to simply copy and paste hangul from websites into the LaTeX document and it worked ...

Top 50 recent answers are included