Korean
LaTeX supports many worldwide languages by means of some special packages. In this article is explained how to import and use those packages to create documents in Korean.
Introduction
Korean language needs some special packages since the encoding and fonts are quite unique.
\documentclass{article}
\usepackage{xeCJK}
\begin{document}
\section{소개}
전체 문서에 대한 기본 정보를 소개 단락.
\begin{verbatim}
그것은 간격 방법을 참조 그대로 글꼴을 테스트
\end{verbatim}
Latin characters are also allowed.
\end{document}
This document uses the xeCJK package, which enables LaTeX to display hangul characters. The next sections will clearly explain this and other tools for Korean LaTeX typesetting.
Korean documents with XeLaTeX
There are two ways of using the CJK package, wich is a LaTeX package intended to display properly Chinese, Japanese and Korean characters. The first manner is compiling the document with XƎLaTeX, this is quite flexible and allows to import external fonts.
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{UnGungseo.ttf}
\setCJKsansfont{UnGungseo.ttf}
\setCJKmonofont{gulim.ttf}
\begin{document}
\section{소개}
전체 문서에 대한 기본 정보를 소개 단락.
\begin{verbatim}
그것은 간격 방법을 참조 그대로 글꼴을 테스트
\end{verbatim}
Latin characters are also allowed.
\end{document}
In the previous example three different fonts are declared. Also, text with Latin characters can be added. Below you can see a description of each command.
\usepackage{xeCJK}
- This command imports the xeCJK package. For this package to work the document must be compiled with XeLaTeX.
\setCJKmainfont{UnGungseo.ttf}
- Sets the font UnGungseo to be used as the main font, you can either use one of the fonts already installed on your system or download one and place it in you current working directory.
\setCJKsansfont{UnGungseo.ttf}
- Just as the previous command this declares a font, but in this case for elements that require the sans family.
\setCJKmonofont
- Font to be used in elements that requiere a monospace font, for instance the verbatim environment.
Korean documents with pdfLaTeX
If XeLaTeX is not available in your LaTeX distribution or if for some reason you have to generate your document with other compiler, you can import the CJKutf8 package.
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{}
\CJKfamily{mj}
전체 문서에 대한 기본 정보를 소개 단락.
\begin{verbatim}
그것은 간격 방법을 참조 그대로 글꼴을 테스트
\end{verbatim}
\end{CJK}
Latin characters are also allowed.
\end{document}
The package CJKuft8 allows to typeset hangul characters with utf8 encoding, so Latin characters can be included too. Notice that in order to type Korean text you must use the CJK environment.
\begin{CJK}{UTF8}{}
- This will start a CJK environment, the parameter passed to the environment declaration is the text encoding.
\CJKfamily{mj}
- Font-family to be used.
Further reading
For more information see
- Supporting modern fonts with XƎLaTeX
- Typesetting quotations and quotation marks
- International language support
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Arabic
- Portuguese
- Russian
- Spanish
- The not so short introduction to LaTeX2ε
- LaTeX/Internationalization on WikiBooks
- LaTeX/Special_Characters on WikiBooks
Overleaf guides
- Creating a document in Overleaf
- Uploading a project
- Copying a project
- Creating a project from a template
- Including images in Overleaf
- Exporting your work from Overleaf
- Working offline in Overleaf
- Using Track Changes in Overleaf
- Using bibliographies in Overleaf
- Sharing your work with others
- Debugging Compilation timeout errors
- How-to guides
LaTeX Basics
- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists
- Errors
Mathematics
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Fractions and Binomials
- Aligning Equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
Figures and tables
- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package
References and Citations
- Bibliography management in LaTeX
- Bibliography management with biblatex
- Biblatex bibliography styles
- Biblatex citation styles
- Bibliography management with natbib
- Natbib bibliography styles
- Natbib citation styles
- Bibliography management with bibtex
- Bibtex bibliography styles
Languages
- Multilingual typesetting on Overleaf using polyglossia and fontspec
- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
Document structure
- Sections and chapters
- Table of contents
- Cross referencing sections and equations
- Indices
- Glossaries
- Nomenclatures
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks
Formatting
- Lengths in LaTeX
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes
Fonts
Presentations
Commands
Field specific
- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typing exams in LaTeX
- Knitr
- Attribute Value Matrices
Class files
- Understanding packages and class files
- List of packages and class files
- Writing your own package
- Writing your own class
- Tips