dohyunkim / xetexko Goto Github PK
View Code? Open in Web Editor NEWtypeset Korean with xe(la)tex
typeset Korean with xe(la)tex
\char"1100\char"119E\char"11AB
한글 자모가 분리된다.
^^^^1100^^^^119e^^^^11ab
는 당연히 문제 없다.
먼저 한글 텍 소중한 작업에 감사드립니다
저는 윈도우 WSL 에 우분투 20.04를 설치하고
거기서 R Studio-Server 에 TinyTeX 설치하여
윈도우 웹 브라우저에서 localhost:8787
포트에서
RStudio를 열어서 Rmarkdown 문서 작업을 하고 있습니다
그리고 윈도우에서도 별도로 TexLive를 설치하지 않은채
ktug 의 WSL 설치법(텍 명령과 폰트폴더를 링크하는)을 참고하여
윈도우 TeXstudio 로 TinyTeX 을 이용하고 있습니다
참고로 R TinyTeX 을 통해 cjk
, cjk-ko
, xetexko
패키지가 모두 설치되었고
우분투 명령창에서도 tlmgr info
로 각 패키지가 정상 설치된 걸 확인하였습니다
RStudio Rmd 문서작업과 TeXstudio 문서작업 둘 다
\usepackage{xetexko}
과 \usepackage{kotex}
각각에 대해
pdflatex
과 xelatex
로 각각 빌드해 본 결과
\usepackage{kotex}
을 pdflatex
으로 빌드한 결과만 정상작동합니다.
그런데 xetex
이 필요한 패키지가 있어서
\usepackage{xetexko}
을 xelatex
으로 빌드하고 싶은데
이 조합은 아무리 기다려도 계속 빌드가 완료되지 못합니다 ㅠㅠ
답답한 마음에 해결책이 없을런지 문의드립니다
참고로 Rmd 파일의 야믈 헤더를 보여드립니다
---
title: "가나다"
author: "권세훈"
date: '2022 1 16 '
output:
pdf_document:
#latex_engine: xelatex
latex_engine: pdflatex
header-includes:
#- \usepackage{xetexko}
- \usepackage{kotex}
---
\documentclass[12pt]{article}
\usepackage{kotex} % same with xetexko
\usepackage{xcolor}
\begin{document}
ko.TeX 프로젝트는 은광희, 김도현, 김강수가 개발자로 참여합니다. 오랜
\textcolor{blue}{시간} 많은 노력을 들인 두 패키지를 통합함으로써
명실공히 한글 조판의 표준을 구축하고자 하는 의도에서 이 프로젝트를 시작하게
되었습니다. 프로젝트를 주관하는 KTS와 후원하는 KTUG에 깊은 감사를
드립니다. 이 사이트는 ko.TeX을 설치하고 사용하는 데에 필요한 자료와
정보를 제공합니다. 누구나 자유롭게 사용할 수 있는 텍 시스템에는 라텍을
비롯하여 출판 작업에 필요한 많은 프로그램들이 포함되어 있습니다. 상용
프로그램과는 달리 전문적인 조판 원칙을 준수하는 텍의 탁월한 기능들을
사용하여 누구나 자유롭게 한글 문서를 조판할 수 있기를 바랍니다.
\end{document}
아래 코드에서 xetexko를 사용했을 경우와 사용하지 않을 경우 등호에 다른 글꼴이 적용되는 것 같습니다.
\documentclass{article}
\usepackage{xetexko}
\usepackage{txfonts}
\begin{document}
\end{document}
\latinalphs
상태에서 plain tex 명령인 \hangfnt
가 불려진다. undefined CS error 발생.
See http://www.ktug.org/xe/index.php?document_srl=203582
해결책: \hangfnt
와 \hanifnt
를 LaTeX에서도 정의해주어야 함.
안녕하세요. 도현님.
수고해 주신 xetexko 감사히 잘 사용하고 있습니다.
그런데 memoir class를 사용할 때 머리글 부분의 장번호 숫자가 순서가 바뀌어 나옵니다. 즉, '1장'이 아니라 '장1'이라고 나옵니다.무엇이 잘못되었는지 알 수 있을까요? 간단한 소스를 올립니다. 참고로 저는 라텍에 초보입니다. 읽어 주셔서 감사합니다.
\documentclass[oneside]{memoir}
\usepackage[hangul]{xetexko}
\usepackage[a4paper]{geometry}
\setmainfont [Ligatures=TeX]{Linux Libertine}
\setmainhangulfont[Ligatures=TeX]{나눔명조}
\setmainhanjafont [Ligatures=TeX]{은 바탕}
\begin{document}
\chapter{Intro.}
\section{Intro. Sec.}
\end{document}
저번에 올린 글은 WSL(Windows Subsystem for Linux)에서 Rmd(R 마크다운) 및 한글 TeX 사용환경을 구축하기 위해 TinyTeX 사용하려 한 것이었습니다.
결국 잘 안되어서 TinyTeX 포기하고 texlive 전체 설치로 사용환경 설정하여 성공하였습니다.
혹시 관심있는 분들이 보실 수도 있을 거 같아 이 곳에 글을 남깁니다.
$ sudo ln -s /usr/local/texlive/2021/bin/x86_64-linux/pdflatex /usr/bin/pdflatex
$ sudo ln -s /usr/local/texlive/2021/bin/x86_64-linux/xelatex /usr/bin/xelatex
$ sudo ln -s /usr/local/texlive/2021/bin/x86_64-linux/lualatex /usr/bin/lualatex
---
title: "가나다"
author: "홍길동"
date: '2022 1 26 '
output: pdf_document
header-includes:
- \usepackage{kotex}
---
<끝>
\documentclass{article}
\usepackage{pifont}
\usepackage{kotex}
\begin{document}
\ding{183}
\end{document}
한글폰트로 찍힐 뿐만 아니라 compresspunctations도 동작한다.
이를 방지하려면 전처리부에 다음을 넣으면 된다.
\AddToHook{cmd/Pifont/before}{\prevfontmarks\nocompresspunctuations}
그런데 이런 문제는 레거시 폰트를 사용하는 패키지의 경우 언제라도 발생할 수 있다.
보다 근본적인 해법은?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.