
코치닐 글꼴을 사용하는 내 문서의 유로 기호는 정말 나빠 보이지만 코치닐 문서의 글꼴 표에는 괜찮아 보이는 유로 기호가 있습니다. 제가 받은 €는 다음과 같습니다.
\documentclass{report}
\usepackage{cochineal}
\usepackage[T1]{fontenc}
\begin{document}
Text in Cochineal font but € symbol is ugly 1,99€
\end{document}
하지만 € 기호를 조판하고 싶습니다.코치닐 문서:
어떻게?
(글꼴 버전이 문제가 아닌지 확인하기 위해 ctan에서 코치닐을 설치하고 문서에서 pdflatex를 다시 실행했습니다.)
답변1
답변2
라텍스 형식이나 글꼴 패키지 자체에서는 글꼴이 지원하는 TS1 인코딩의 하위 집합을 선언하지 않으므로 다소 보수적인 기본값(9)이 사용됩니다. 이는 유로가 C와 등호로 가짜임을 의미합니다.
하위 집합 번호를 설정할 수 있지만 실제로 어느 것이 올바른지 확인해야 합니다(아래 코드의 7도 다소 보수적입니다). 기껏해야 글꼴 관리자에게 문의하세요. 그런 다음 라텍스 형식에 설정을 추가하도록 요청할 수 있습니다(이미 다양한 글꼴에 대한 긴 목록이 포함되어 있음).
\documentclass{report}
\usepackage{cochineal}
\usepackage[T1]{fontenc}
\DeclareEncodingSubset{TS1}{Cochineal-*}{7} %number should be smaller than 8
\begin{document}
Text in Cochineal font but € symbol is ugly 1,99€
\end{document}
답변3
이는 패키지의 버그인 것 같습니다. 작성자에게 언급하겠지만 그동안 할 수 있는 작업은 다음과 같습니다.
% !TEX encoding = UTF-8 Unicode
\documentclass{report}
\usepackage[TS1]{fontenc}
\usepackage{cochineal}
\renewcommand{\texteuro}{{\fontencoding{TS1}\fontfamily{Cochineal-LF}\selectfont \char191 }}
\begin{document}
Text in Cochineal font, and the € symbol is no longer ugly 1,99€
\texteuro
\end{document}
답변4
레거시 8비트 글꼴에 대한 많은 질문과 마찬가지로 LuaLaTeX에서 최신 형식으로 글꼴을 로드하여 문제를 해결할 수 있습니다.
\documentclass{report}
\tracinglostchars=2
\usepackage{fontspec}
\setmainfont{Cochineal}[Scale=1.0]
\begin{document}
Text in Cochineal font but € symbol is ugly 1,99€
\end{document}