SX
I'm still fairly new to latex and hoping to get some help on how to do the formatting of the font for chapters and headings. I've been looking around the forum for hours now, trying to see if I could piece it together myself but had to give up in the end.
I basically have two problems.
1. Desired format
1 Chapter 1.1 Section 1.1.1 Subsection 1.1.1.1 Subsubsection
I found this possible with:
\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE\thechapter.~}
However this also puts a 0. in my Abstract chapter, which I don't know how to remove. It also creates double numbering in the ToC.
Is there a way around this so I can keep the numbering except for Abstract and not have double numbering in ToC?
2. Change Font
I found out how to change the font for the entire document. I simply used:
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
\usepackage[ebgaramond]{mathdesign}
I only wish to use Garamond as the normal text while using another font (http://surl.dk/e1e/ from this list most likely) for headings. How do I go about changing the fonts of the headings?
I'm on Mac OSX 10.9.4 using TeXworks.
I appreciate any help.
Full code:
%% Preamble start
%%%% --- Basic ---
\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
%%%% --- Typography ---
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
\usepackage[english]{babel}
\usepackage{csquotes}
\setlength\parindent{0pt}
\usepackage{titlepic}
%%%% --- Headings ---
%
% ?????
%
%%%% --- Math and Chem specifics ---
\usepackage[ebgaramond]{mathdesign}
\usepackage{amsmath,amssymb}
\usepackage[version=3]{mhchem} %Easier to write chem compounds ie. \ce{H2O} and \ce{PO4^2-}
%% Preamble end
\title{Report Ex}
\author{John Smith}
\begin{document}
\maketitle
\chapter{Abstract}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
\tableofcontents
\chapter{Introduction}
\section{Background}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
%
\subsection{Details}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
%
%
\section{History}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
%
\section{Analysis}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\end{document}
mathdesign
has noebgaramond
option. So you are getting defaultmathdesign
fonts (if any). Your.log
or console output will include warnings about this. Also, don't use\bf
. It is deprecated. Use\bfseries
instead. And I think, though I'm not sure, you're putting\thechapter
in the wrong argument of\titleformat
(hence the toc issue).