parbox 中的小型大写字母

parbox 中的小型大写字母

让我直奔主题:

\documentclass[11pt]{article}
\newlength\longest
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
\settowidth\longest{\huge\itshape just as his inclination leads him;}
\begin{flushright}{
\parbox{\longest}{%
  {\huge\itshape%
 \begin{flushright}
  Influenza is something unique. It behaves epidemiologically in a way different from that of any other known infection.
 \end{flushright}\par\bigskip
  }   
  \raggedleft\Large\textsc{Sir Christopher Howard Andrewes}\par%
}}\end{flushright}
\end{document}

但是,无法\textsc将“Margaret Chan”变成小写字母……有人能帮帮我吗?

补充说明:非常确信 Times New Roman 支持小型大写字母 ;)

答案1

Times New Roman 不带小写字母,如果您查看日志文件,您会看到一条消息。您可以按照以下方式从类似字体中提供小写字母:

\setmainfont[SmallCapsFont={TeX Gyre Termes},
  SmallCapsFeatures={Letters=SmallCaps}]{Times New Roman}

示例输出

\documentclass[11pt]{article}
\newlength\longest
\usepackage{fontspec}
\setmainfont[SmallCapsFont={TeX Gyre Termes},
  SmallCapsFeatures={Letters=SmallCaps}]{Times New Roman}
\begin{document}

\settowidth\longest{\huge\itshape just as his inclination leads him;}

\begin{flushright}{
  \parbox{\longest}{%
  {\huge\itshape%
  \begin{flushright}
    Influenza is something unique. It behaves epidemiologically in a
    way different from that of any other known infection.  
  \end{flushright}
  \par\bigskip
  }
  \raggedleft\Large\textsc{Sir Christopher Howard Andrewes}\par%
  }}
\end{flushright}

\end{document}

相关内容