I have the following document. This is the preamble:
\def\year{2017}\relax
\documentclass[letterpaper]{article}
\usepackage[left=0.8cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{aaai17}
\usepackage{times}
\usepackage{helvet}
\usepackage{apacite}
\usepackage{courier}
\usepackage{amsmath, amsfonts, amssymb, amsthm, bm, mathtools}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage{array}
\usepackage{dsfont} %for probability P
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{graphicx}
\usepackage{mdframed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frenchspacing
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\bf}[1]{\textit{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Title}
\author{Foo \AND Bar}
This is the document:
\begin{document}
\maketitle
\end{document}
When compiling I received the following error:
! Missing } inserted.
<inserted text>
} l.77 \maketitle
When I delete the line \renewcommand{\bf}[1]{\textit{#1}}
or delete the \AND
character in \author{Foo \AND Bar}
, the document compiles normally. Can anyone explain why this happens and how to fix? (Assuming I want to both redefine \bf
and use \AND
in \author
)
EDITED: I just changed newline to \AND
and got the same problem. As @UlrikeFischer points out, the use of aaai17
causes the problem. Note that the symbol \AND
is only available in this package. What is wrong with this package?
\let\bf\itshape
instead of your definition . – Ulrike Fischer Oct 6 '17 at 16:55\bf
is not a command with arguments; use\renewcommand{\bf}{\itshape}
. – egreg Oct 6 '17 at 17:13\renewcommand{\bf}[1]{\textbf{#1}}
in other documents and it works fine... – thbl2012 Oct 6 '17 at 17:19