ラテンモダンモノボールドシリーズがボールドに見えないのはなぜですか?

ラテンモダンモノボールドシリーズがボールドに見えないのはなぜですか?

MWE は次のとおりです。

\documentclass{article}
\usepackage{lmodern}
% \usepackage[T1]{fontenc}
\usepackage{bold-extra}
\begin{document}
\noindent
\ttfamily\footnotesize % small size is set intentionally
Keywords are \textbf{\textsc{normal}}\\
Keywords are \textbf{\textsc{bold}}\\
Keywords are \textsc{caps}\\
Keywords are \textbf{\textsc{bold-and-caps}}\\
\end{document}

出力:

ここに画像の説明を入力してください

急いでいる人は、通常と大胆な私は言われたことを実行したhttps://tug.org/FontCatalogue/latinmodernmono同じ結果を得るために、automagic パッケージも試しましたが、bold-extra違いはありませんでした。はい、さらに\fontseries{l}\selectfontわかりやすくするために設定することもできましたが、モノクロに light を使用するのは好みではありません。では、何が間違っているのでしょうか? また、小文字大文字と太字は混在していないことがわかりますが、太字だけであれば「機能し始める」可能性があるように感じます。


と比較すると\usepackage{sourcecodepro}、その対照がよくわかります。

ここに画像の説明を入力してください

はい、スモールキャップスはサポートされていませんが、前述のフォントカタログに示されているようにサポートされることが予想されます。

答え1

countorたとえば、パッケージを使用すると、解決策になる可能性があります。 のパラメータ を変更して12強い太字にすることができます。

\documentclass[12pt]{article}
\usepackage{lmodern}
% \usepackage[T1]{fontenc}
\usepackage{contour}
\begin{document}
\noindent
\ttfamily\footnotesize % small size is set intentionally
Keywords are \textbf{\textsc{normal bold}}\\
Keywords are \textbf{\contour[2]{black}{\textsc{bold}}}\\
Keywords are \textsc{\contour[1]{black}{caps}}\\
Keywords are \contour[1]{black}{\textsc{bold-and-caps}}\\
\end{document}

ここに画像の説明を入力してください

答え2

まず、いくつか考慮すべき点があります。

  • bold-extraフォント ファミリが の場合、パッケージは何も行いませんlmtt
  • には太字の小文字大文字フォントがありませんlmtt

確かにあなたは

LaTeX Font Warning: Font shape `OT1/lmtt/bx/sc' undefined
(Font)              using `OT1/lmtt/bx/n' instead on input line 8.

修正した例:

\documentclass{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
%\usepackage{bold-extra}

\begin{document}

\noindent
\ttfamily\footnotesize % small size is set intentionally
Keywords are \textbf{\textsc{normal \fontname\font}}\\
Keywords are \textbf{\textsc{bold \fontname\font}}\\
Keywords are \textsc{caps \fontname\font}\\
Keywords are \textbf{\textsc{bold-and-caps \fontname\font}}\\

\end{document}

太字フォントが実際に使用されていることがわかります。OT1 エンコードでも同様です。問題は、太字の Latin Modern Typewriter フォントが、実際に区別できる外観にするために必要なほど太くないことです。

ここに画像の説明を入力してください

オプションを選択すると、lighttt独特な外観が得られます:

ここに画像の説明を入力してください

解決策は? 別のタイプライターフォントを使用します。

関連情報