Upload Image Sharelatex Bibliography

How to use Overleaf to Write your papers: Part II: Tables, Figures, Bibliography

Part I of this series
Part III of this series

In the first article of this series, I started with a basic Overleaf document. In this series, my intention is to show you that you can write in Overleaf with some very basic knowledge or practically knowing nothing about LaTeX and essentially using a wysiwyg interface. If you followed part I, I showed that you can use the rich text editor of Overleaf to pretty much get started and get your work done. There I barely wrote about three parts that distinguish a scholarly document (tables, figures, and references).

How to use Tables in Overleaf

LaTeX is plain text based, intuitive and easy to learn. An interesting and somewhat time consuming aspect of learning LaTeX is how to format tables and that often daunts people. I know I feel daunted by LaTeX tables. It is an art to correctly format tables in LaTeX. Having said that, there are a number of different websites where you can format tables for LaTeX and then copy and paste the code into Overleaf. Here are the steps:

  1. Prepare your tabular data in the form of spreadsheets, ideally in a csv (‘’comma separated value’’) file. You can also keep your tabular in the form of a spreadsheet. If you work with spreadsheets such as Apple Numbers, Microsoft Excel, LibreOffice Calc, Google Sheets, and other similar apps, all of these will allow you to take data from the spreadsheet in the form of csv.
  2. If you work with R or another statistical data analysis software, most software will let you export your tables from the app to a csv file format.
  3. Once you have your data in the form of csv file, head over to tablesgenerator.com, below:

Create LaTeX tables online
Using the Table menu set the desired size of the table. Enter the table data into the table: select and copy (Ctrl+C) a…www.tablesgenerator.com

  1. Read the csv file in that webpage, and create a table. I recommend you use the booktabs style of table creation. For more information about booktabs package in LaTeX, read their user manual (PDF)
  2. Then generate the code and copy it to ‘’clipboard’’
  3. Return to your Overleaf document and paste. Remember to add a proper caption and a label for the table. Each label must be unique for each table; else Overleaf will complain during compilation.

These six steps will be sufficient for most tables. You can also put the tables in a special file, call it tables.tex in the file manager and subsequently copy and paste the table codes to the relevant sections of the document. Remember to add the following code next to each table environment:

[ht]

This is needed so that the table will be sited where you want to place it, or at least at the top of the page. Also, make sure to add a nice caption to each table.

How to add figures in Overleaf

If you want to figures in an Overleaf document, do:

  1. First upload the figure to the filespace. Use only jpg or png (or pdf) extensions for your figures.
  2. Then copy and paste the following code:
\begin{figure}\[ht]
\centering
\includegraphics[width=\textwidth]{imagefile.jpg}\caption{\label{fig:image} Write your caption here}
\end{figure}Notes:
imagefile.jpg = the filename and extension of the image

Remember to include a proper caption and a proper label for the image. Each label must be unique to each image.

How to add citations and references in an Overleaf document

In Overleaf, citations are stored in a bibtex file. A bibtex file is a plain text file that contains information about your references (the title of the paper, the author names, the issue, the journal title, the pages, abstract, etc). Each reference, depending on the type of the resource, will have a different entry, and the specific information that you should enter for each type of entry is different as well. For more information about bibtex, please see “How to Use Bibtex”

Essentially, most academic search engines, and reference management software can provide you with a copy of their reference libraries in the bibtex format. The bibtex file ends in a .bib file format. I recommend that you start with an empty ‘references.bib’ file in your file manager where you will store your references. This is a plain text file and will contain the bibliographic entries as you go on conducting your research. Every bibliography entry in the bibtex file has an identifier. For example, see the following code (taken from the bibtex site), see:

@misc{Nobody06,
author = “Nobody Jr”,
title = “My Article”,
year = “2006” }

Here, ‘Nobody06’ is the ID for this entry. When you type to insert a specific bibliographic information as a citation to a fact, use the following code to enter the data

\cite{ID code}Note:
Where ID code is the ID code of the specific entry of the bibliographic entry. For example, if you wanted to insert the Nobody06 citation in a LaTeX document, you’d simply type \cite{Nobody06} and so on.

You must also place the following two entries in the main.tex file in Overleaf just above the

\end{document}\bibliography{name of the bib file}
\bibliographystyle{name of the style}

That’s it. LaTeX will then insert the citations and the reference list correctly at the end of the document. If you want to see the list of citation styles, see this nice resource by ShareLaTeX.

Bibtex bibliography styles - ShareLaTeX, Online LaTeX Editor
An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX…www.sharelatex.com

In the next part, I will show you how you can use Markdown to write in Overleaf without using LaTeX.

It's possible to include references in ShareLaTeX using all major bibliographies management programs: biblatex, natbib and bibtex. This article explains how to create a .bib bibliography database file from scratch, how to upload and existing one and how to create one from a template.

[edit] Creating your bibliography database

To create a new bibliography file in ShareLaTeX, in the editor, click New File icon .

an input box will appear for you to set the name of the new file. The file should have the .bib extension, in this example is called "mybibliography.bib"; now click on Create.

A new file will be listed in the left panel, click it to edit its contents. Add your bibliography entries there.

Now you can import this .bib file in the main .tex file. See the next example

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage[ backend=biber, style=alphabetic, sorting=ynt ]{biblatex}   \addbibresource{mybibliography.bib}   \title{Bibliography management: \texttt{biblatex} package}\author{Share\LaTeX}\date{}   \begin{document}   \maketitle   \section{First section}   Using \texttt{biblatex} you can display bibliography divided into sections, depending of citation type. Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items. Next, \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Donald Knuth's website \cite{knuthwebsite}, \textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} are \LaTeX\ related items; but the others Donald Knuth's items \cite{knuth-fa,knuth-acp} are dedicated to programming.   \medskip   \printbibliography\end{document}

The command adds the created bibliography file to the document so you can use those references. See Bibliography management in LaTeX for more information about bibliography management.

[edit] Uploading your bibliography database

If you already have a bibliography file that you need to use in a ShareLaTeX project, you can upload it. Click the Upload icon on top of the the left panel.

A dialogue box will appear, you can either drag and drop the .bib file or click Select file(s) to navigate to the location of your file.

Once the upload process is finished you can include the .bib file in your main .tex document. See the last example in the previous section.

[edit] Using a template

ShareLaTeX provides a vast set of templates for almost all kind of LaTeX documents, they include several bibliography-related ones.

If you are in the editor view, click the "Back to projects" icon to go to the Projects view.

In the the Project Management view click the button New Project, then in the drop-down menu that will appear click Bibliographies.

You will be redirected to a list of bibliography templates

click the one you prefer, in the next page click Open in ShareLaTeX:

The template will open in the ShareLaTeX editor so you can start working on it.

[edit] Quick guides

  • Creating a bibliography file from scratch. In editor, on the upper left corner click the New file icon then enter the name for your new file with extension .bib and click Create. You can now start editing you file.
  • Uploading your bibliography database. To upload an existing .bib file click the Upload icon . Drag and drop your file in the dialogue box and wait for your file(s) to be uploaded. After that you can use your .bib within the document.
  • Using a template. In the Project Management page click New Project => Bibliographies you will be redirected to the Templates page, select the one you need and then click Open in ShareLaTeX

[edit] Supported bibliography packages

For more information about bibliography management in LaTeX see.

0 thoughts on “Upload Image Sharelatex Bibliography

Leave a Reply

Your email address will not be published. Required fields are marked *