# Unbold section and subsection heading [duplicate]

I am using this format for my section and subsection headings (it is centered and numbers have dots):

\documentclass[12pt]{article}
\usepackage[center]{titlesec}



But I cannot unbold it by using most of the unbold commands because centering changes in most of them. Is there way to unbold the section and subsection headings with this format?

## marked as duplicate by Werner, Heiko Oberdiek, cmhughes, Jesse, GuidoMay 15 '14 at 1:36

If you do not want to use the \titleformat command, load the package with

\usepackage[center,md]{titlesec}


The easiest way is with sectsty and the “traditional” way for adding a period.

\documentclass{article}
\usepackage{sectsty}

\usepackage{lipsum} % just for the example

% titles are medium weight and centered
\allsectionsfont{\mdseries\centering}

% we want a period after the section number
\makeatletter