Q&A 마당은 텍 관련 질문/답변을 위해 만들었습니다.
- 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
- 질문 전에 아래를 읽어 보세요. 좋은 질문이 좋은 답을 받을 수 있는 좋은 방법입니다.
- 질문에 맞는 제목을 붙이세요. 질문의 내용과 관련없는 "고수님", "긴급질문", "도와주세요"와 같은 제목은 답이 잘 올라오지 않습니다. 이 게시판에 올라오는 모든 글은 질문입니다. 굳이 [질문], [Q]를 적으실 필요도 없습니다.
- 내용을 충실히 적어 주시고, 같은 상황을 재현할 수 있는 최소한의 예제가 같이 있어야 합니다.
- 최소 예제는 "Minimal working example"을 읽어 보세요.
- 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
- 개인적으로 사용하신 글꼴이 들어 있는 경우, preparefont.sty에 관한 답변을 참조하세요.
- 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
- 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
- MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
- 사용하는 편집기는 CKeditor입니다.
- 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한 줄을 비웁니다.
- 글줄만 바꾸려면 [shift-enter]를 누르면 <BR> 태그가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.
- 수식를 문서내에 삽입하시려면 에디터를 툴바에서 [소스]를 눌러 HTML로 입력할 수 있게 바꾸신 후 <pre> </pre> tag를 사용하셔서 <pre> 여러 줄의 수식 </pre>처럼 입력하시면 좋습니다.
폰트 로딩 하는 방법?
2011.03.02 17:52
latex 초보가 한가지 더 질문드리고 싶습니다. 어처구니 없는 질문이라도 양해부탁드립니다.
TnXTex를 다운받고 run.exe를 실행하여 제가 작성한 tex 파일을 컴파일 했더니 에러 메시지가 (저기) 아래와 같이 나왔습니다.
그 tex 파일은 textcomp.sty에 있는 \textlbrackdbl 라는 심볼을 사용하고 있는데 해당 폰트가 로드 되지 않은 모양입니다.
CTAN에서 fontinst 같은 것을 받아봤지만 잘 알지 못해 계속 헤메고 있습니다.
TnXTeX에서 기본적으로 제공하지 않는 폰트를 사용하려 할 경우,
폰트 파일을 어디서 구해서 어떻게 설치해야 하나요?
제가 Latex 폰트에는 개념이 전혀 없는데 참고할만한 글이 있으면 알려주시길 부탁드립니다.
대단히 감사합니다
-----------------------------------------------------------------------------------------------
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (Web2C 2009)
restricted \write18 enabled.
entering extended mode
(./symbolic.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/base/size10.clo))
(f:/TnXTex/TnXTeXLive/2009/../../localtexmf/tex/latex/mh/mathtools.sty
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/graphics/keyval.sty)
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/tools/calc.sty)
(f:/TnXTex/TnXTeXLive/2009/../../localtexmf/tex/latex/mh/mhsetup.sty)
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/amsmath/amstext.sty
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/amsmath/amsgen.sty))
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/amsmath/amsbsy.sty)
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/amsmath/amsopn.sty)))
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/base/textcomp.sty
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/base/ts1enc.def))
(f:/TnXTex/TnXTeXLive/2009/../../localtexmf/tex/latex/lkproof/proof.sty)
(./symbolic.aux) (f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/base/ts1cmr.fd)
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/graphics/graphicx.sty
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/graphics/graphics.sty
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/graphics/trig.sty)
(f:/TnXTex/TnXTeXLive/2009/texmf/tex/latex/latexconfig/graphics.cfg)
(c:/WINDOWS/temp/texmf/tex/xelatex/xetex-def/xetex.def)))
LaTeX Warning: No \author given.
[1]
! Font TS1/cmr/m/n/10=tcrm1000 at 10.0pt not loadable: Metric (TFM) file or ins
talled font not found.
<to be read again>
relax
l.44 ...sion $e$, denoted $\textrm{\textlbrackdbl}
e\textrm{\textrbrackdbl}\r...
?
댓글 5
-
nova de hi
2011.03.02 17:56
-
jaykay
2011.03.02 19:04
답변 감사드립니다.
말씀해주신대로 해보았는데 아래와 같은 에러 메시지를 만나게 되었습니다.
xltxtra안에 \textlbrackdbl 가 없는것인가요?
LaTeX Warning: No \author given.
[1]
! Undefined control sequence.
<argument> \rmfamily \textlbrackdbl
l.46 ...sion $e$, denoted $\textrm{\textlbrackdbl}
e\textrm{\textrbrackdbl}\r...
? q
-
nova de hi
2011.03.02 19:43
xunicode 패키지를 보니 이 명령을 비롯한 몇 개 (\textlangle, \textrangle, \textlbrackdbl, \textrbrackdbl 등등)를 disable해두었네요.
다음처럼 해보세요.
\usepackage{fontspec,xltxtra,xunicode}
\makeatletter
\DeclareUTFcharacter[\UTFencname]{x301A}{\@textlbrackdbl}
\def\textlbrackdbl{{\fontspec{HCR Batang LVT}\@textlbrackdbl}}
\makeatother
(경우에 따라 HCR Batang LVT는 HCR Batang일 수도 있습니다.)
-
jaykay
2011.03.02 22:57
말씀대로 했더니 잘 되었습니다.
답변에 대단히 감사드립니다.
괜찮으시다면 궁금한것 한가지만 더 여쭈어보고 싶습니다.
\textlbrackdbl 기호가 텍스트에서는 나타나는데 수식 안에 넣으면 나타나지 않습니다. 예로 $\textlbrackdbl$ 와 같은 경우에요.
예전에 textcomp.sty를 사용했을 때도 마찬가지였던것 같습니다.
latex에는 텍스트 상에서 효과가 있는 기호가 있고 수식 안에서 효과가 있는 기호들이 있는것인가요?
\textlbrackdbl 기호를 수식 안에서 사용하려면 $\textrm{\textlbrackdbl}$ 하는 방법밖에 없나요?
감사합니다.
-
nova de hi
2011.03.03 09:06
말씀하신 수식 기호가 몇 종류 있습니다. fourier, stmaryrd, mathbbol 등의 폰트 관련 패키지에서 이 기호나 비슷한 것을 제공하지요.
그런데 TnXTeX의 입장에서는 이런 (낡은) 폰트 패키지를 제공하고 있지 않습니다. TeX 시스템의 수많은 폰트 패키지를 모두 제공한다는 것은 TnXTeX의 설계 컨셉과 배치됩니다. 더구나 종래의 TeX font를 쓰지 말고 유니코드 폰트를 (될 수 있으면) 쓰자는 것이 TnXTeX의 사정입니다.
만약 이런 수식 기호가 많이 필요하시다면 TnXTeX 같은 간이 텍 환경을 포기하시고 texlive를 설치하여 pdftex 같은 legacy TeX을 쓰십시오. 물론 TnXTeX을 쓰더라도 비슷한 기호는 얼마든지 재정의하거나 정의해서 쓸 수 있기 때문에 문서를 작성하는 것 자체는 문제가 있다고 생각하지 않지만 종래의 텍 코딩에 익숙하신 분들에게는 이런 변경이 당황스러울 수 있기 때문입니다.
TnXTeX은 TeX Live와 달리 모든 것이 다 되는 시스템은 아닙니다.
\usepackage{textcomp}를 지우시고
\usepackage{xltxtra} 라고 하십시오.