I'm new to LaTeX and I have problems trying to cite things in my document. I seem to have set up everything correctly but I still get a question mark symbol instead when I try to cite something. Here's my code (it is a pre-built template from school so sorry if it seems long!):
\documentclass[12pt,french]{memoir}
%Modules obligatoires
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\usepackage{url}
\usepackage{array}
\usepackage{booktabs}
\usepackage{enumitem}
\usepackage{cite}
\usepackage{natbib}
\bibliographystyle{apacite}
\usepackage{caption}
%Modules mathématiques et scientifiques
\usepackage{amsmath,amsthm,amssymb}
\usepackage{siunitx}
\sisetup{locale = FR,
separate-uncertainty = true}
\usepackage{gensymb}
%Modules optionnels
\usepackage{float} %pour [H] dans les figures
\usepackage{pdflscape} %en paysage avec \begin{landscape}
% --------------------------------------------------------------
% Configuration
% --------------------------------------------------------------
%Informations sur le titre, les auteurs, etc.
\newcommand{\titre}{Le phénomène d'interférence créé par les ondes de la voix}
\newcommand{\auteur}{Charles-Antoine \textsc{Drouin} \\
Tristan \textsc{Forgues} \\
Francis \textsc{Giguère} \\
Olivia-Rose \textsc{Jalbert-Trudel} \\
}
\newcommand{\groupe}{01}
\newcommand{\prof}{Alexis \textsc{Lévesque-Morin}}
\newcommand{\cours}{Activité d'intégration en physique \\
203-FZZ-03\\}
\newcommand{\departement}{physique}
% --------------------------------------------------------------
% Fin de la configuration
% --------------------------------------------------------------
\graphicspath{{figures/}{../figures/}} %relative path to figures folder in memoire
\addto\captionsfrench{\renewcommand\listfigurename{Liste des figures}}
\renewcommand\frenchtablename{\textsc{Tableau}}
\newcommand{\source}[1]{\caption*{\hfill {\small Source: {#1}}} } %Ajout de source dans les figures
\makeatletter
\def\@makechapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\Huge\bfseries \thechapter.\space%
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 30\p@
}}
\makeatother
%numérotation des sous section
\setsecnumdepth{subsection}
%Sous-section dans la table des matière
\maxtocdepth{section}
%Sans double numérotation. Peut être désactivé pour une numérotation par chapitre
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{equation}{chapter}
%pagetitre
\newlength\drop
\newcommand*{\pagetitre}{%
\thispagestyle{empty}
\begingroup
{ \Large
\noindent \auteur
Groupe \groupe
\par}
\vfill
\centering
{\huge\bfseries \titre \par}
\vspace{2cm}
Travail présenté à monsieur \prof \par
\vspace{0.5cm}
\noindent \cours
\vfill
{\large Département de \departement \\
Programme Sciences de la nature\\
Cégep Sainte-Foy\\
\today\par}
\null
\endgroup}
%Création du documents
\begin{document}
\bibliographystyle{ieeetran}
\pagetitre
\openany
\pagenumbering{roman}
\pagestyle{plain}
\newpage
\include{resume}
\include{abstract}
\newpage
\tableofcontents
\newpage
\listoftables
\newpage
\listoffigures
\newpage
\pagenumbering{arabic}
\include{introduction}
\include{theorie}
\include{resultats}
\include{analyse}
\include{conclusion}
\bibliography{mybib}
\end{document}
Here's the book that I want to cite:
@book{lafrance_physique._2015,
address = {Montréal (Québec)},
title = {Physique. 3, 3,},
isbn = {978-2-7650-3726-2 978-2-8041-9082-8},
language = {French},
publisher = {Chenelière éducation},
author = {Lafrance, René and Parent, Jean},
year = {2015},
note = {OCLC: 904283240}
}
When I cite it, I use:
\cite{lafrance_physique._2015}
When I check my finished document, I see a bold question mark instead of a 1... Thanks in advance for the help!!!
\bibliographycommand, hence it will never fill in the question marks. – LarrySnyder610 Apr 17 '19 at 11:13