
다이어그램과 텍스트 콘텐츠에 대해 각 입력 파일에 대해 동일한 글꼴을 로드할 수 있는지 확인하고 싶습니다. 아래 내 진술과 관련이 있습니다.
비록 PSTricks가
pdflatex
직접적으로 작업할 수는 없지만 민첩한 사용자(모범 사례 패러다임인 "관심사 분리"를 채택한)는 다이어그램이 텍스트 내용과 분리되어야 한다는 것을 알고 있기 때문에 실제로 우리를 괴롭히지 않습니다. 이는 각 다이어그램을 별도의 독립형이지만 컴파일 가능한 입력 파일에 넣어야 함을 의미합니다. PSTricks의 경우 이 다이어그램의 입력 파일은 시퀀스별로 컴파일되어야 합니다latex-dvips-ps2pdf
. 그 제품은pdflatex
기본 입력 파일(즉, 텍스트 문서가 포함된 입력 파일)을 컴파일하는 데 사용할 수 있는 PDF 형식의 다이어그램입니다 . 말이 되나요?
그리고
common.sty
공통 설정(글꼴 등)을 로드하기 위해 자체 패키지를 만들 수 있습니다 . 그러면 이 패키지는 다이어그램이나 텍스트 문서용으로 각 입력 파일 내에서 로드될 수 있습니다. 따라서 다이어그램에 사용된 글꼴(및 기타 일반 설정)은 텍스트 문서에 사용된 글꼴과 정확히 동일합니다.
pdflatex
그럼 에만 로드할 수 있고 에는 로드할 수 없는 글꼴이 있나요 latex-dvips-ps2pdf
? 그러한 글꼴이 없다면 나는 안전한 위치에 있습니다.
답변1
대부분의 '표준' TeX 글꼴은 두 경로 모두에 의해 로드될 수 있으므로 pdflatex
두 latex
경로 모두에 적합합니다.
그러나 pdfTeX는 TeX와 달리 트루타입( .ttf
) 글꼴을 직접 사용할 수 있습니다. 따라서 그러한 글꼴의 사용을 피해야 합니다. 이를 사용하는 패키지는 많지 않습니다. 두 개는 winfonts
과 입니다 gtamacfonts
.
패키지에서 이러한 글꼴을 사용하는지 여부를 비교적 쉽게 확인할 수 있습니다. 다양한 유형의 텍스트와 수학으로 샘플 문서를 만들고 사용자에게 필요할 수 있는 내용을 약간 포함하도록 하세요. pdflatex
PDF 뷰어 나 pdffonts
.
pdffonts
최근에 제가 작성한 문서 의 출력은 다음과 같습니다 .
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
CCNYNY+LMRomanCaps10-Regular Type 1 Custom yes yes no 105 0
FDLWIA+LMRoman8-Regular Type 1 Custom yes yes no 106 0
CCNYNY+LMRomanCaps10-Regular Type 1 Custom yes yes no 107 0
FDLWIA+LMRoman8-Regular Type 1 Custom yes yes no 108 0
GVOTOJ+LMRoman10-Bold Type 1 Custom yes yes no 109 0
PUROLC+Webdings TrueType WinAnsi yes yes no 110 0
DictSym Type 1 Builtin yes no no 111 0
ZWSJHO+AppleSymbols TrueType WinAnsi yes yes no 112 0
UIRPQW+wasy10 Type 1 Builtin yes yes no 113 0
CPKUDH+LMMathSymbols7-Regular Type 1 Custom yes yes no 114 0
ZISKEU+LMRoman7-Regular Type 1 Custom yes yes no 115 0
ZISKEU+LMRoman7-Regular Type 1 Custom yes yes no 116 0
ZNZYUX+MarVoSym Type 1 Builtin yes yes no 117 0
XTZZTM+Archaic-Linear-B Type 1 Builtin yes yes no 118 0
ZISKEU+LMRoman7-Regular Type 1 Custom yes yes no 119 0
EEVCBJ+LMRoman10-Regular Type 1 Custom yes yes no 120 0
KUEEZQ+Dingbats Type 1 Builtin yes yes no 121 0
INSJOE+Wingdings2 TrueType WinAnsi yes yes no 122 0
QIJIVE+Wingdings TrueType WinAnsi yes yes no 123 0
NBXRIW+LMRoman5-Bold Type 1 Custom yes yes no 124 0
CSLKTL+SkakNew-Figurine Type 1 Builtin yes yes no 125 0
KSIRXI+LMRoman5-Regular Type 1 Custom yes yes no 126 0
BTAZIL+Archaic-Poor-Mans-Hieroglyphs Type 1 Builtin yes yes no 127 0
VERRCN+phaistos Type 1 Builtin yes yes no 128 0
ZFJTFV+LMMathExtension10-Regular Type 1 Custom yes yes no 129 0
EEVCBJ+LMRoman10-Regular Type 1 Custom yes yes no 130 0
IFGYIN+HoeflerText-Ornaments TrueType WinAnsi yes yes no 131 0
BHBUPA+LMRoman7-Bold Type 1 Custom yes yes no 132 0
ZISKEU+LMRoman7-Regular Type 1 Custom yes yes no 133 0
QMGXWG+LMRoman8-Italic Type 1 Custom yes yes no 134 0
GBNVNG+LMRoman10-BoldItalic Type 1 Custom yes yes no 135 0
GBNVNG+LMRoman10-BoldItalic Type 1 Custom yes yes no 136 0
NCZUCO+LMRoman12-Bold Type 1 Custom yes yes no 137 0
GENWMA+LMRoman8-Bold Type 1 Custom yes yes no 138 0
GENWMA+LMRoman8-Bold Type 1 Custom yes yes no 139 0
GENWMA+LMRoman8-Bold Type 1 Custom yes yes no 140 0
GVOTOJ+LMRoman10-Bold Type 1 Custom yes yes no 141 0
QGFRJE+MSAM7 Type 1 Builtin yes yes no 142 0
TrueType
목록을 아래로 보면 두 번째 열에 있는 모든 줄에 문제가 있을 수 있습니다. 모든 라인은 Type 1
괜찮을 것입니다. [저는 데모 목적으로 트루타입 글꼴을 많이 사용하는 문서를 의도적으로 선택했습니다. 제가 작성하는 대부분의 문서는 훨씬 더 일반적이며 트루타입 글꼴이 전혀 포함되어 있지 않습니다.]
주의해야 할 또 다른 사항은 메타폰트입니다. 이는 TeX 및 pdfTeX 모두에서 작동하지만 많은 PDF 뷰어(특히 acroread
Adobe Reader)에서는 렌더링이 매우 좋지 않습니다. '표준' TeX 글꼴을 사용하는 경우 해당 글꼴이 cm-super
설치되어 \usepackage[T1]{fontenc}
포함되어 있는지 확인하거나 Latin Modern을 사용하는 것이 이러한 함정을 피하는 좋은 방법입니다.