I am using a newcommand to define how the chapters show up on the manuscript and ToC. That worked fine. Then, I wanted to place an image (logo) next to the page number in each page. It works, but I get the Missing $ inserted error for the lines where I make use of the newcommand (\mychapter) and for \end{document}.
Additionally, I want to align vertically the image with the page number. I tried with parbox but it didn't change anything.
Here is my MWE. In the original document (on Overleaf) I use input files and the error is the same.
Thanks for any tips.
Code: Select all
\documentclass[11pt]{report}\usepackage[utf8]{inputenc}\usepackage[a4paper, total={170mm,257mm},left=20mm,top=20mm,]{geometry}\usepackage{graphicx}\usepackage{fancyhdr}\fancyhf{}\renewcommand{\headrulewidth}{0pt}\fancypagestyle{plain}{\cfoot{ Page \thepage \ \vert \ \includegraphics[scale=0.1] {example-image-a}}}%%% change font %%%\renewcommand{\sfdefault}{phv}\renewcommand{\familydefault}{\sfdefault}%%% set path of figures folder\graphicspath{ {figures/} }%%% packages %%%\usepackage{enumitem}\usepackage{float}\usepackage{xcolor}\usepackage{cancel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{parskip}\usepackage{svg}\usepackage{accents}\usepackage{mwe} % For dummy images\usepackage{subcaption}\usepackage{wrapfig}