parbox 中的短劃線邊界不正確?

parbox 中的短劃線邊界不正確?

如果我在 中創建一個 parbox moderncv,破折號就會消失,例如:

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}                
\firstname{Foo}
\familyname{\textsc{Bar}}
\begin{document}
\setlength{\fboxsep}{0pt}%
\fbox{\parbox[t]{\linewidth}{
    -- ooo\\
    \fbox{--} ooo\\
    -- Bar
  }}
\end{document}

產生:

在此輸入影像描述

這是怎麼回事?我的目標是將其插入 a 中,\cvline{foo}{bar}因為\cvline{foo}{bar\\baz}會產生錯誤。

相關內容