유니코드 '증분' 문자 삽입

유니코드 '증분' 문자 삽입

두 문자가 잘못 사용되는 문제를 설명하면서 내 문서에 유니코드 '증분' Δ을 삽입하려고 합니다.

두 번째 입력 매개변수를 파악할 수 없기 때문에 MWE가 작동하지 않습니다 \DeclareUnicodeCharacter. `inputenc'에 대한 문서는 전혀 유익하지 않습니다. 나는 내 자신의 매크로 이름을 지정했다고 가정했지만 메모한 것 같습니다.

내 Uni의 논문 형식에 대한 .sty 문서에는 다음 줄이 있습니다.

\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesClass{ecsthesis}[2003/25/04 v1.6 LaTeX document class]
\def\baseclass{book}

그래서 저는 해당 클래스를 기반으로 한 글꼴을 사용하고 있다고 가정합니다(화면에서는 본문 복사 글꼴이 보이는 것처럼 보입니다).좋다12포인트 타임스 로마자)

여기 내 (작동하지 않는) MWE가 있습니다. Unicle +2206 문자를 어떻게 정의합니까?

MWE:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
% fix use of delta character
\DeclareUnicodeCharacter{0394}{$\Delta$}
% fix use of increment character
\DeclareUnicodeCharacter{2206}{\Increment}

\begin{document}
The Capital Delta `$\Delta$' character (Unicode +0394) looks like, 
but is not the same as, the Increment `\increment' character (Unicode +2206).
\end{document}

답변1

Stix 글꼴에는 \increment 기호가 있습니다. \DeclareUnicodeCommand는 실제로 필요하지 않으며 \increment그것 없이도 작동합니다. \DeclareUnicodeCommand소스에 Δ를 직접 삽입할 수만 있습니다.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{stix}

% fix use of increment character
\DeclareUnicodeCharacter{2206}{\increment}

\begin{document}
The Capital Delta `$\Delta$' character (Unicode +0394) looks like,
but is not the same as, the Increment $\increment ∆ $ character (Unicode +2206).
\end{document}

여기에 이미지 설명을 입력하세요

답변2

256자 인코딩으로 제한되는 pdflatex(또는 latex)를 사용하고 있으므로 일반적으로 유니코드 코드는 출력에 표시되지 않으므로 U+0394와 U+2206을 모두 매핑해야 합니다 \Delta(실제로는 OT1 인코딩의 문자 1임). 로마체)

유니코드 TeX와 함께 패키지를 사용하는 경우 unicode-math이는 별도의 문자이며 다음과 같이 정의됩니다.\increment

관련 정보