Citation key not visible in Mendeley – What should I do?

There are situations in your publishing career, where you have a few thousand references that you need to wade through, and cite in your document. For those of us using Latex and Bibtex to create their wonderful research papers, the bib files have a field called the citation key. Now in most cases, the citation key is the Author Name followed by the year. But if your library has grown really large and is synced in multiple places, the citation key sometimes have some funny suffixes. So now instead of a key called “Dabholkar2015”, you would have a key “Dabholkar2015a”. For those using Mendeley and Overleaf as their library manager and Latex editor respectively, the problem is compounded because Mendeley auto-generates the .bib file that you include in Overleaf. Now, since everything is in the “cloud” and “auto-sync”ed, you do not have any way of editing the .bib file in Overleaf. On top of that, Mendeley regenerates the .bib file every time there is a change and so any manual edits you make to the .bib file in your Overleaf project would be lost, the next time, the Mendeley library is refreshed.
Unfortunately, Mendeley have decided that citation keys should not be visible by default, so you have to turn them on. Here I’ll copy from an answer I found on StackExchange : Go to the menu->Tools->Options->Document Details, then choose the document type (for instance, Journal Article), then check the Citation Key box. Then, a field for Citation Key should be visible in the details pane on the right hand side of the window.Options Box Document Pane

Citation key not visible in Mendeley – What should I do?

Grouping two figures together in Latex

There are instances when one want two figures to be placed on a single page. One has space for the two figures, but for some reason Latex decides to place them on two separate figures. What one can do in this case is include both the graphics in a single figure structure as follows

\begin{figure}[t]
\centering
   \includegraphics[width= 0.9\columnwidth]{myfig1.pdf}
   \caption{Caption 1}
   \label{fig:myfig1}

   \includegraphics[width= 0.9\columnwidth]{myfig2.pdf}
   \caption{Caption 2}
   \label{fig:myfig2}
\end{figure}

This will group the two graphics together and place them on a page as a single entity. And because each graphic is followed by a caption, they will receive separate figure numbers.

 

Grouping two figures together in Latex

Latex tips and tricks

Here are some tips and tricks I found useful while working with Latex

  • If one wants to reduce the spacing between a figure and its caption, use the following command
\begin{figure}[t]
 \centering
 \includegraphics[width=3.5in]{some_image.pdf}
 \vspace*{-1.0cm}
 \caption{some image caption}
 \label{fig:ref_to_some_image}
  • If one wants two or more images to be placed on the same page, include them in the same figure environment
\begin{figure}[t]
 \centering
 \includegraphics[width=3.5in]{fig1.pdf}
 \vspace*{-1.0cm}
 \caption{caption 1}
 \label{fig:label1}
\includegraphics[width=3.5in]{fig2.pdf}
 \vspace*{-1.0cm}
 \caption{caption2}
 \label{fig:label2}
 \end{figure}

 

Latex tips and tricks