I am trying to get a chapter number that is not an integer. My current code looks like this:
\chapter*{Example\vspace{-75pt}\\\huge Chapter 0.5}\vspace{50pt}
\addcontentsline{toc}{chapter}{0.5 Example}
However, the code is very messy, and every section needs a similar change for it to stay consistent (Thankfully I don't have any sections in the chapter but it is a problem).
What I am looking for is a solution that solves the first (or both) problems noted above.
EDIT: For clarification, 0.5
is just an example. More examples:
\chapter*{Example\vspace{-75pt}\\\huge Chapter Q}\vspace{50pt}
\addcontentsline{toc}{chapter}{Q Example}
\chapter*{Example\vspace{-75pt}\\\huge Chapter Zero point five}\vspace{50pt}
\addcontentsline{toc}{chapter}{Zero point five Example}
\chapter*{Example\vspace{-75pt}\\\huge Chapter Chapter}\vspace{50pt}
\addcontentsline{toc}{chapter}{Chapter Example}
\chapter*{Example\vspace{-75pt}\\\huge Chapter $\frac12$}\vspace{50pt}
\addcontentsline{toc}{chapter}{$\mathbf{\frac12}$ Example}
0.5
looks like part 0, chapter 5. (Similar to how subsections are numbered.) How are the non-integer numbers incremented? If it is a fixed step across the document you could just format the output in relation to the integer numbers 1, 2, 3, …\frac{1}{2}
instead of decimals0.5
?\frac{1}{2}
? That is, what follows it?\renewcommand{\thechapter}{\ensuremath{\frac12}}
will do the job? (This should be done right after\chapter{}
command)