
回答から正しく理解していればこの質問、デフォルトの OT1 エンコーディングでは、適切な文字のための十分な「フォント スペース」が得られません\l
。一方、このオプションを有効にすると、合字 (Th や Qu など) が機能しないようです。\l
ただし、文字を表示する必要があるため、両方を取得する方法があるかどうか疑問に思っています (コンパイラとしてプレーン LaTeX または PDFLaTeX を使用します。XeLaTeX は、全体的なレイアウトが私の意見では劣っているか、少なくともプレーン 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 をロードし、\l
OT1 コマンドとして宣言を解除し、そのデフォルトを 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ビューアウィンドウからグリフをコピーしてUnicode Checkerに貼り付けると、次のようになります。
アップデート
libertine
2017/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}
出力: