「」内の空白を減らす方法

「」内の空白を減らす方法

給餌

\documentclass{article}
\pagestyle{empty}
%\usepackage[slantedGreek,subscriptcorrection]{newtx}% this is what I use with many of other packages in a non-minimal example.
%% Text skips with glue being half of the value of the argument (cf. http://tex.stackexchange.com/q/657443, http://tex.stackexchange.com/a/657448, and http://tex.stackexchange.com/a/672701):
\newcommand{\flexibleHSkip}[1]{%
  \hskip#1
  plus.5\dimexpr\ifdim #1<0pt -\fi#1\relax
  minus.5\dimexpr\ifdim #1<0pt -\fi#1\relax
  \relax
}
\begin{document}\noindent
Consider the set \(Y\). Let \ldots\\
Consider the set \(Y\)\flexibleHSkip{-.1em}. \flexibleHSkip{.1em}Let \ldots\\
Consider the set \(Y\)\flexibleHSkip{-.1em}.\flexibleHSkip{.1em} Let \ldots\\
Consider the set \(Y\), and let \ldots\\
Consider the set \(Y\)\flexibleHSkip{-.1em}, \flexibleHSkip{.1em}and let \ldots\\
Consider the set \(Y\)\flexibleHSkip{-.1em},\flexibleHSkip{.1em} and let \ldots
\end{document}

利回りpdflatex

Computer Modernで出力

標準フォント(Computer Modern)と

NewTXで出力

NewTXで。

答え1

私は単に.math にそれを取り込むだけです。いずれにせよ、それは mathrm フォントから取得され、フォントで指定されたカーニングが有効になります。

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

\documentclass{article}

\begin{document}

$Y$. ABC

$Y.$ ABC


\end{document}

関連情報