
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
たとえば、パッケージを使用すると、解決策になる可能性があります。 のパラメータ を変更して1
、2
強い太字にすることができます。
\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
独特な外観が得られます:
解決策は? 別のタイプライターフォントを使用します。