我有
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand\french[1]{\!\!
\fontfamily{jkplkvos}\selectfont
#1
\fontfamily{\familydefault}\selectfont \!\!}
\begin{document}
\qquad The closest Modern French equivalent to the Middle French word
``\french{par}'' is ``par''.
\end{document}
如何防止 \french{par} 和 '' 之间出现换行符?
答案1
消除\!
并添加%
以消除虚假空间可得出:
参考:
代码:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand\french[1]{%
\fontfamily{jkplkvos}\selectfont
#1%
\fontfamily{\familydefault}\selectfont}
\begin{document}
\qquad The closest Modern French equivalent to the Middle French word
``\french{par}'' is ``par''.
\end{document}