KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

TeXWorks manual r814 5장 2절을 참조하면" % !TEX encoding ..."은 TeXWorks에서만 쓰이는 것으로 TeX표준은 아닌 듯 합니다. 이렇게 되면 문제가 되는 것이 (pdf)LaTeX의 inputenc/inputenx, LuaTeX luainputenc, TeXWorks의 "% !TEX encoding =" comment string으로 각각 encoding을 알아내는 방식이 상이하고 또 (pdf)LaTeX은 default Latin-1으로 XeTeX과 LuaTeX은 default utf8으로 서로 backward/forward compatibility를 제공하지 않으니 위의 R Sweave 명령도 (encoding 옵션이 없을 때) 아직 많이 쓰이는 (pdf)LaTeX 방식 (inputenc/inputenx로 encoding을 알아내는) 지꺼리를 하게 된 것 같습니다. 제 생각에 이것은 TeX community가 먼저 해결해줘야할 사항 같은데요. 일일이 매뉴얼로 tex 파일의 encoding 방식을 알리는 것보다 뭔가 통일된 encoding 파일 속성을 제공했으면 하는 바램입니다. R community도 무조건 inputenc/inputenx로 encoding을 알아낼 것이 아니라, TeX community가 통일하기 전까지는 매뉴얼로 (새로운 argument를 이용해) 파일 encoding속성을 나타내여야겠습니다. R 게시판에도 올리도록 하겠습니다.

===========================================================================

To set a different encoding for a specific file one can put the following at

the beginning of that file:

% !TeX encoding = latin1

Note that without this line, you must tell TEXworks the correct encoding

manually.

===========================================================================

KTUG 한국 텍 사용자 그룹