1

A journal is requiring me to have the following formatting:

1. Section

1.1. Subsection

Note that for the subsection the numbering is also unbolded.

In other words, add a period to all sections, but remove the bold from subsections and add italics to just the title.

Using this site I've figured out how to do either of the two above but not both. People who want to add the period use this

\usepackage{titlesec} \titlelabel{\thetitle.\quad}

But then when someone wants to italicize, they suggest

\titleformat{\subsection}

   {\normalfont\fontfamily{phv}\fontsize{12}{17}\bfseries}{\thesubsection}{1em}{}

How can one of the two be adjusted to accomplish both tasks? This is incredibly frustrating.

1
  • if a journal is that fussy, then they really should provide their own document class. this isn't something authors should be expected to do. Mar 29, 2016 at 19:40

1 Answer 1

1

Is this what you want?

\documentclass{article}
\usepackage[scale=0.9]{tgheros}
\usepackage{newtxtext,newtxmath}
\usepackage{titlesec}

\titleformat{\section}
  {\normalfont\large\sffamily\bfseries}
  {\thesection.}
  {1em}
  {}
\titleformat{\subsection}
  {\normalfont\large\sffamily}
  {\thesubsection.}
  {1em}
  {\itshape}

\begin{document}

\section{Section}

\subsection{Subsection}

Some text

\end{document}

enter image description here

1
  • @MikeCorbin The secret is “been there, done that”. ;-)
    – egreg
    Mar 29, 2016 at 19:26

You must log in to answer this question.

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