[Tex/LaTex] How to use Times New Roman in size 11.5
fontsizetimes
I always get the following warning:
LaTeX Font Warning: Font shape `OMS/cmsy/m/n' in size <11.5> not available
Best Answer
First of all, cmsy doesn't look like Times New Roman. In order to use this exact font, use the mathptmx package (Times font for both text and math formulae). To use any font size, you need to use Koma Script with scrartcl document class.
MWE
Input:
\documentclass[fontsize=11.5pt]{scrartcl}
%if you want both maths and text in Times New Roman :
\usepackage{mathptmx}
%if you only want text in Times New Roman :
%\usepackage{times}
\usepackage{lipsum} %Blind text
\begin{document}
\lipsum[1-3]
$$SE=\sqrt{\frac{1}{n-2}\left[\sum^{n}_{i=1}(y_i-\overline{y})^2-\frac{\Big[\sum^{n}_{i=1}(x_i-\overline{x})(y_i-\overline{y})\Big]^2}{\sum^{n}_{i=1}(x_i-\overline{x})^2}\right]}$$
\lipsum[1-2]
\end{document}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}
These settings require you to have the font Times New Roman installed for your system. Since this is a proprietary font, it is not distributed with TeX Live at all.
If you simply need something which looks like TNR, try TeX Gyre Termes which is a clone of Times/Times New Roman. This font is distributed in both type1 and opentype formats with TeX Live and other current TeX distributions, or can be downloaded and installed for your operating system independently.
If you have a copy of Times New Roman, you can install it for your OS and use it. How to install a font depends on your operating system. On some systems, opening the font file will trigger an offer to install the font for you. For example, OS X should do this. Otherwise, the steps required are OS-dependent. OS X uses Font Book to manage fonts. (Or it did - I think it still does.) On a GNU/Linux system, you put the font in ~/.fonts or /usr/local/share/fonts and then update the fontconfig cache to make it available to your system. For a common, free font such as TeX Gyre Termes, you can almost certainly simply install it using your distro's package manager.
Best Answer
First of all,
cmsy
doesn't look like Times New Roman. In order to use this exact font, use themathptmx
package (Times font for both text and math formulae). To use any font size, you need to use Koma Script withscrartcl
document class.MWE
Input:
Output with
mathptmx
:Output with
times
: