0

I want that a subsection was 12pt, no bold, italic and times new roman. How can I do it ?

6
  • Welcome to TeX SX! See the documentation of titlesec.
    – Bernard
    Jun 30, 2021 at 14:19
  • 1
    In addition to Bernards comment, it also depends on which document class you're using. Some provide their own interface to change things like this.
    – daleif
    Jun 30, 2021 at 14:23
  • I use a report.
    – user243883
    Jun 30, 2021 at 14:26
  • What's the main document font size? 10pt, 11pt, 12pt, or something else? Is Times (new) Roman the main document font?
    – Mico
    Jun 30, 2021 at 17:14
  • The main document fon size is 12pt, and use Times new roman
    – user243883
    Jun 30, 2021 at 18:54

1 Answer 1

0

You can simply copy the definition from report.cls and change the font in \subsection to normalsize (12pt) italic, and use fontspec to put the document in Times New Roman.

You need lualatex or xelatex on Windows to access Times New Roman in this way (I used cygwin texlive here).

enter image description here

\documentclass[12pt]{article}

\usepackage{fontspec}
\setmainfont{Times New Roman}
\makeatletter
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
%                                     {\normalfont\large\bfseries}}
                                     {\normalfont\itshape}}

\makeatother
\begin{document}

\section{Something}
\subsection{italic 12 pt subsection}
Some text.
\end{document}

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