I'm new to titlesec and LaTeX in general, trying to use it to achieve chapters in a {book} class that are medium-sized and on the same line, viz:
Chapter 1: An Unlikely Event
Here's a minimized example:
\documentclass[english,12pt,oneside]{book}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\normalfont\medium\bfseries}{\chaptertitlename\ \thechapter:}{1em}{}
\begin{document}
\chapter{An Unlikely Event}
\end{document}
The error that returns is:
ERROR: Undefined control sequence.
--- TeX said ---
<argument> \normalfont \medium
\bfseries
l.77 \chapter{An Unlikely Event}
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name ...
I think this is probably a simple error on my part, but I'm too young to know what it is.
\medium? That is the problem. – azetina May 26 '15 at 19:34\bfseries, you needn't specify "medium". there is\mdseries, to which is equated\mediumseries, but no\medium-- but since it's redundant anyhow, you can just get rid of it. – barbara beeton May 26 '15 at 19:35\mediumis a command that doesn't exist. Probably you meantmdseries. – Bernard May 26 '15 at 19:37\normalsize. – barbara beeton May 26 '15 at 19:53mediumin this way:\usepackage[medium]{titlesec}. This seems to work. Thank you, -s – Steven Arntson May 26 '15 at 20:00\normalsizeworks just the same---I will use that. Thank you! -s – Steven Arntson May 26 '15 at 20:02titlesecdocumentation is a bit misleading as it listsbig medium small tinyas valid format parameters. After more attentive reading, they appear to be format options for the package, not for the\titleformatcommand. – Akseli Palén Jun 13 '15 at 22:34