Linux libertine, {\l} 문자, 합자 및 T1 글꼴

Linux libertine, {\l} 문자, 합자 및 T1 글꼴

내가 답변을 올바르게 이해했다면이 질문, 기본 OT1 인코딩은 적절한 문자에 대한 충분한 "글꼴 공간"을 얻지 못합니다 \l. 반면에 이 옵션을 활성화하면 합자(Th 또는 Qu 등)가 작동하지 않는 것 같습니다. 그래도 문자를 표시해야하며 \l두 가지를 모두 얻을 수있는 방법이 있는지 궁금합니다 (일반 LaTeX 또는 PDFLaTeX를 컴파일러로 사용하고 XeLaTeX를 원하지 않습니다. 전체 레이아웃이 IMHO보다 나쁘거나 적어도 일반 LaTeX와 다르기 때문입니다. 어쨌든 나를 의심하게 만든다).

MNWE:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{libertine}

\title{This is Quantifiably finally ligatured text}
\begin{document}
\maketitle
I need the character \l too though.  
\end{document}

T1의 경우 모든 합자가 다음을 표시하는 것은 아닙니다. 여기에 이미지 설명을 입력하세요

T1이 없으면 \l캐릭터가 표시되지 않습니다. 여기에 이미지 설명을 입력하세요

해당 줄을 주석 처리하면 fontenc합자가 표시되지만 적절한 \l(예상되는 동작, cfr.이 질문). 하지만 저는 둘 다 정말 갖고 싶어요. 어떻게 해야 하나요? \l중요하지 않은 텍스트에서는 아주 적은 횟수만 나타나기 때문에 캐릭터를 얻는 방법을 변경하는 솔루션을 받아들입니다 .

답변1

OT1 앞에 T1을 로드하고 \lOT1 명령 선언을 취소하고 기본값을 T1로 선언합니다.

\documentclass{article}
\usepackage[T1,OT1]{fontenc}
\usepackage{libertine}

\UndeclareTextCommand{\l}{OT1}
\DeclareTextSymbolDefault{\l}{T1}

\title{This is Quantifiably finally ligatured text}
\begin{document}

\maketitle
I need the character \l{} too though.
\end{document}

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

물론 가 포함된 단어에서는 커닝 쌍과 하이픈이 일부 손실되지만 \l큰 문제는 아니라고 생각합니다.

PDF 뷰어 창에서 글리프를 복사하여 유니코드 검사기에 붙여넣은 후 얻은 결과는 다음과 같습니다.

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

업데이트

libertine2017/03/20에 출시된 버전부터 \l\L명령은 OT1 인코딩에서도 올바른 작업을 수행합니다.

\documentclass{article}
\usepackage{libertine}

\title{This is Quantifiably finally ligatured text}
\begin{document}
\maketitle
I need the characters \l{} and \L{} too though.
\end{document}

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

답변2

또 다른 방법은 글꼴 인코딩을 \l사용하도록 다시 선언하는 것입니다.T1

\documentclass{article}
\usepackage[OT1]{fontenc}
\usepackage{libertine}

\let\oldl\l
\renewcommand{\l}{\begingroup\fontencoding{T1}\selectfont\oldl\endgroup}

\title{This is Quantifiably finally ligatured text}
\begin{document}

\maketitle
I need the character \l{} too though.
\end{document} 

산출:

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

관련 정보