# Citing a Reference (Website/Book/Article)

i've thesis.tex

\documentclass[12pt,a4paper,twoside,openright]{report}

%----------------------%
% Inclusione pacchetti %
%----------------------%
\usepackage{subfiles}
\usepackage{wrapfig}
\usepackage{listings}
\usepackage{graphicx}
\usepackage[utf8x]{inputenc}
\usepackage{url}
\usepackage[italian]{babel}
\usepackage{fancyhdr}
\usepackage{courier}
\usepackage{caption}
\usepackage{color}
\usepackage{subfig}

%--------------------%
% Stile della pagina %
%--------------------%
\pagestyle{fancy}
\usepackage{titlesec}
\usepackage{appendix}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\renewcommand{\footrulewidth}{0pt}

\begin{document}

\subfile{frontespizio}
\subfile{indice}
\subfile{introduzione}
\subfile{modelloClientServer}
\subfile{ProtocolHttp}
\subfile{ambitoApplicativo}
\subfile{conclusioni}
\bibliographystyle{plain}
\bibliography{bibliografia}
\end{document}


in which,before the end of document I've included \bibliographystyle and /bibliography as suggested from various guides. Created bib file named as bibliografia

@misc{
pippo,
title={site1},
note={note1}
}


and then i try in any latex page to use the command \cite{pippo} (keyword). Over leaf gives me a warning

LaTeX Warning: Citation pippo' on page 1 undefined on input line 8


where page 1 input line 8 is where I use the command \cite. How can I make it work ? I just need a bibliography but for websites.

• I edited the title of your question. I hope that I got it right. If not, then change it back. – Dr. Manuel Kuehner Dec 10 '16 at 18:55
• Your code (minus all the \subfile) compiles for me just fine on Overleaf; and the citation shows up as well. Perhaps check that your bib file is named bibliografia.bib and not bibliografia.BIB! – LianTze Lim Dec 11 '16 at 2:11
• thank you Manuel, you got it right. Lim just make my check my file and I'll make you know – Fedeco Dec 11 '16 at 17:57
• The real reason here is because bibliographies in the "main" file are not handled in the "subfiles", which Federico is using: tex.stackexchange.com/questions/107064/… . Solved using a similar solution. – LianTze Lim Dec 12 '16 at 2:19
• Thank you for your help everyone, Lim of overleaf support staff did a great job and fixed the problem. – Fedeco Dec 12 '16 at 9:18

Please read this site before you post a new question. Here it is explained how to provide a so-called minimal working example.

Since you just have two references, I recommend that you use a manual bibliography without the use of a database approach like BiBLaTeX or BiBTeX (outdated).

I prepared a simple setup with an article document class. If you want to use report or book then you should change the this line

\addcontentsline{toc}{section}{\refname} % section


into this

\addcontentsline{toc}{chapter}{\refname} % chapter


This code snipped includes the name of the reference (depending on the document language which is defined as an option to the babel package) to the table of contents (toc).

\documentclass{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}

\usepackage{blindtext}

\begin{document}

\title{Simple Bibliography without BiBTeX or BiBLaTeX}
\author{Manuel Kuehner}
\date{\today}
\maketitle

\tableofcontents

\section{Just a Random Section}
\blindtext

\section{Section with a Cite of a Website}

See \cite{bib:www:WebsiteOne} for more details.

\begin{thebibliography}{99}

If you have much more references then you can have a look at my tutorials (https://www.youtube.com/playlist?list=PL-Wl6F3zpJVwcDHK2rg9bDEEMjo70zp87) or the system BiBLaTeX/Biber` in general.