UEDRSPIHCRSSRSS

polyglossia/samples

english/korean

  • \documentclass{article}
    \usepackage{polyglossia}
    \setdefaultlanguage{english}
    \setotherlanguage{korean}
    \newfontfamily\koreanfont{NanumMyeongjo}
    \parindent=0pt
    \parskip=.7em
    
    \begin{document}
    Susan Ahn Cuddy, daughter of South Korean independence icon Dosan(\textkorean{도산}) 
    Ahn Chang-ho(\textkorean{안창호}), died inside her Los Angeles home Wednesday aged 100.
    
    The family said she died in her sleep around 1 p.m.
    
    As the eldest daughter of Ahn Chang-ho’s three sons and two daughters, 
    Cuddy was born in Los Angeles in 1915.
    
    Cuddy did not live in the shadow of her father’s legacy — as the first female gunnery officer 
    in the U.S. Navy, as the first Asian American woman to join the Navy, 
    and later as the first Korean American in U.S. Naval Intelligence, 
    Cuddy broke as many grounds. --- koreatimesus.com
    \end{document}
    


korean/english

  • %!TEX program = xelatex
    \documentclass{article}
    \usepackage{polyglossia}
    \setmainlanguage{korean}
    \setotherlanguage{english}
    \newfontfamily\koreanfont{NanumMyeongjo}[Ligatures=TeX]
    \newfontfamily\englishfont{TeX Gyre Termes}[Ligatures=TeX]
    \usepackage{ucharclasses} % 언어 설정 마친 후 로드
    \setTransitionsForLatin{\begingroup\englishfont}{\endgroup}
    
    \usepackage{jiwonlipsum,lipsum}
    
    \begin{document}
    \uccon % korean이 main 때 필요
    \today \par
    \jiwon[1]
    \lipsum[1]
    \jiwon[2]
    \end{document}