\documentclass{article}
\newcommand{\fdash}{\textbf{--}}
\begin{document}
This is -- some regular stuff.
This is \fdash{} some awesome stuff!
\end{document}
答案2
您可以重新定义 — (长破折号,Unicode U+2014)来执行您想要的操作:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\DeclareUnicodeCharacter{2014}{\textbf{--}}
\begin{document}
This is a TeX plain -- en-dash
This is a Unicode — em-dash
This is a TeX --- ligature
\end{document}