4

Let me get to the point:

\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}

the \textsc won't make "Margaret Chan" in small caps, though... Can anyone help me?

Extra note: pretty convinced of it that Times New Roman supports small caps ;)

4

1 Answer 1

8

Times New Roman doesn't come with small caps, if you look in the log file you will see a message to that effect. You can provide small caps from a similar font as follows:

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

Sample output

\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}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .