I wish to add a logo using \includegraphics
in case a certain information is available.
I use the article
class with the package authblk
and put in the preamble:
\author[affiliation logo]{first lastName}
where logo
should be an image. Ultimately, the logo will be wrapped in a \href
command (but that part does not seem to create problem).
When I replace logo
with
\includegraphics[width=0.4cm]{L-orcid}
I get the error message
! Use of \\author doesn't match its definition.
\new@ifnextchar ...served@d = #1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
Here is a complete example showing the problem:
\documentclass{article}
\usepackage{graphicx}
\usepackage{authblk}
\renewcommand\Affilfont{\fontsize{9}{10.8}\selectfont}
\title{adf}
\author[a, \includegraphics[width=0.4cm]{L-orcid}]{denis cousineau}
\affil[a]{my place}
\begin{document}
\maketitle
Some text...
\end{document}