0

Surprisingly I can't find direct answer to that.

Simply, I need global font Times New Roman (everything, sections, subsections, etc), and global size 12 pt.

I have managed to found potential answer for first question, which is \usepackage{times}, but I have heard you should not use it to change font to Times New Romand.

Edit

I also need very specific font size for sections only (14pt), but it seems to not be possible. You can only use \large etc to change font size. I guess word is not so bad after all.

12

2 Answers 2

0

In article class with the 12pt option, the \large command changes the font size to 14.4pt.

If you think someone is going to be measuring this with a ruler down to fractions of a point, then it is possible to define a command that gives you exactly 15pt (see the links in the comments under the question).

Compile this example with xelatex.

\documentclass[12pt]{article}

\usepackage{fontspec}
\setmainfont{Times New Roman}

\usepackage{sectsty}
\sectionfont{\large} 

\usepackage{lipsum} % for dummy text

\begin{document}
\section{Introduction}
\lipsum[1]
\section{Conclusion}
\lipsum[2]
\end{document}
5
  • It works and at this point I'm too afraid to ask why. If you want to save me from suicide, you can also tell me how to create subsubsubsection. Titlesec solution on stackoverflow works, but paragraph body starts in the same line instead of in new line. Oct 13, 2021 at 17:05
  • This example works because (1) calling article with 12pt options changes the overall font sizes to a default of 12pt, (2) the sectsty package provides commands that internally redefine LaTeX's macros to include whatever you say, so in this case it adds \large to the definition of a section, and (3) fontspec with XeLaTeX can load any font installed on your system. Oct 13, 2021 at 17:07
  • There is no \subsubsubsection defined in LaTeX. If you really need that many levels of headings, and you need it to look different than default \paragraph heading, you cna change \paragraph; use the simplest solution here: tex.stackexchange.com/questions/541902/… Oct 13, 2021 at 17:26
  • it overrides font size and we are back at the start. Oct 13, 2021 at 17:30
  • Wouldn’t you also want your math font to be Times, instead of the default Computer Modern? You’d want to load unicode-math for that.
    – Davislor
    Oct 13, 2021 at 18:07
2

The currently-accepted answer will not change any of your math fonts from the default. For that, you want a template like

\documantclass[12pt]{article}
\usepackage{unicode-math}

\setmainfont{Times New Roman}
\setmathfont{TeX Gyre Termes Math}[Scale=MatchLowercase]

Be aware that many Linux systems have a version of Times New Roman from last century, since that was the most recent version that Microsoft gave away for free. It should still work, but there are many other free clones of Times you could use.

You might also find XITS Math or STIX Two Math good Times-like math fonts. This requires LuaLaTeX or XeLaTeX.

In PDFLaTeX, the best way to get Times in text and math mode is:

\usepackage{newtxtext, newtxmath}

You might also try stix or stix2, or tgpagella plus newtxmath.

A “point” in TeX is not the same size as a “point” in your word processor, which TeX calls a bp. An easier way to change to this size than the other answers gave you is

\usepackage[fontsize=12bp]{scrextend}

You must log in to answer this question.

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