# Is there a way to print the cited reference in my presentation from another file?

Is there any way to refer the references cited (and only those cited, not just any old entry in the .bib) in a another file with the same labels (probably numeric) as in that file?

Currently, I am preparing my presentation in beamer for one lecture. For that, I have a lecture notes in an article class.

T I am using biblatex for my reference.

I am having around 100 entries in my database bib file but only 20 are cited in the lecture notes.

Now I want to give the reference in my presentation(at the last frame) which I have cited in my lecture notes.

Can I link my lecture notes to provide the reference here?

## Details:

The codes I have to used in my lecture notes to give separate reference is,

\printbibliography [title=Works cited,category=cited]

Like this if any command is there in beamer to give the reference?

I am expecting a code like,

For the convinience, I am giving this mwe. I am using xelatex to compile this since I am using fontspec.

## MWE:

\documentclass[12 pt]{beamer}
\usetheme[
bullet=circle,      % Other option: square
bigpagenumber,      % circled page number on lower right
topline=true,           % colored bar at the top of the frame
watermark=BG_lower, % png file for the watermark
]{Flip}

\newcommand{\titleimage}{title}         % Custom title
\newcommand{\tanedo}{tanedolight}       % Custom author name
\newcommand{\CMSSMDM}{CMSSMDMlight.png} % light background plot

\graphicspath{{images/}}

\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\usepackage{fontspec}
\setmainfont{Liberation Serif}
\setbeamerfont{frametitle}{series=\bfseries} % Frame titles should be bold

\usepackage[backend=bibtex,sorting=none,defernumbers=true]{biblatex}
\bibliography{mybib}

\DeclareBibliographyCategory{cited}
\nocite{*}
\AtEveryBibitem{%
\ifentrytype{book}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
\ifentrytype{collection}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
\ifentrytype{incollection}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
}
\setbeamertemplate{bibliography item}[text]

\begin{document}

\section{Title page}

\begin{frame}
This is my title page..
\end{frame}

\begin{frame}
Here my presentation contents are there...
Note that, nowhere in my presentation I am citing.
But, I need to give the reference at the last frame and that must be from some lecture notes(which has its own citations). The reference must the same as that of the lecture notes.
\end{frame}

\section{References}

\begin{frame}[c,allowframebreaks]
\frametitle{References}
%        \setbeamertemplate{bibliography item}{\checkmark}
%        \bibliographystyle{amsalpha}
%       {\scriptsize \bibliography{mybib.bib}}
\renewcommand*{\bibfont}{\scriptsize}
\printbibliography
\end{frame}

\end{document}

The flipbeamer template can be found here.

## Alternate version of this question as suggested by moewe:

Can I have a separate reference list which gives the reference given in the another file?

The following is my original file which is created recently.

\documentclass[11pt,twoside]{article}

\usepackage[backend=bibtex,sorting=anyt,defernumbers=true]{biblatex}
\documentclass[11pt,twoside]{article}
\bibliography{mybib}
\DeclareBibliographyCategory{cited}

\begin{document}

First reference is \cite{berman1974inverses}.. And the second reference is this \cite{lang2002algebra}. etc...

But I want the reference list for this file as well as from the another file.

\printbibliography[category=cited]
\end{document}

Now, I want to give a reference list at the end in this file(say file1.tex), in which that is the reference list in my another file(say file2.tex).

## How to handle this situation?

• Sorry, I really don't understand your problem. Especially the fourth and fifth paragraphs confuse me. With \printbibliography [title=Works cited,category=cited] you only get actually cited sources in the bibliography (assuming that the rest is set up correctly). Have a look at Biblatex equivalent to labeled multibib with working hyperref and Changing “Bibliography” title with biblatex - within the document for examples on how to make all sources from a .bib file get one keyword. – moewe Feb 1 '16 at 12:05
• I have cited in my lecture notes. And I want my reference in my beamer file while I am taking class. I want the same reference that of in the lecture notes@moewe – David Feb 2 '16 at 12:34
• Does that mean you want to refer to references cited (and only those cited, not just any old entry in the .bib) in a another file with the same labels (probably numeric) as in that file? I don't think there is a biblatex solution out there for that at the moment, I think we had a question about this before. – moewe Feb 2 '16 at 15:14
• exactly..the quesiton is that only@moewe – David Feb 2 '16 at 18:13
• when you ran bibtex on you .bib for your lecture-note it create lecture-note.bbl that will be included to lecture-note.tex with \printbibliography you can use this file in your beamer – touhami Feb 2 '16 at 20:19

This is lecturenote.tex file

\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
\begin{document}
bla bla \cite{mt} foo bar \cite{xyz}

\printbibliography
\end{document}

This is presentation.tex file

\documentclass{beamer}
\usetheme{Warsaw}

\usepackage[backend=bibtex]{biblatex}
\begin{document}

\begin{frame}
bla bla
\end{frame}

\begin{frame}
\printbibliography
\end{frame}

\end{document}

run pdflatex + bibtex on lecturenote.tex as usuele this will create lecturenote.bbl rename it to presentation.bbl and run pdflatex on presentation.tex

Note: no \addbibresource and no run of bibtex is needed for presentation.tex

• but its not working – David Feb 8 '16 at 5:14
• it works fine for me. can you explain more what is the error? – touhami Feb 8 '16 at 6:02
• actually no entry is coming in my slides except the black page for the reference...not even title...@touhami – David Feb 8 '16 at 10:14
• @David see tex.stackexchange.com/questions/12175/… – touhami Feb 8 '16 at 14:33

Adding cites for the lecture only can happen, assuming you cite the origin of a comic that brightens the mood or a video that won't make it into the lecture notes, the following two alternatives allow to do this.

Assuming you use one large bib file for everything, the following non tex solution works. In your lecturenotes directory execute

find -iname '*aux' | xargs grep aux@cite | sed 's/.*cite{$$.*$$}/\1,/' > citedinlecturenotes.txt

which gives you a list of cited references in citedinlecturenotes.txt, which you can copy into a \nocite{} command in your beamer slides. Normal \cites{} can then still be included everywhere.

As a fairly pure tex solution, you can use the brilliant tool bibexport to generate a new bib file with the name citedinlecturenotes.bib by running

bibexport -o citedinlecturenotes lecturenotes.aux

or

biber lecturenotes.bcf --output_format=bibtex
mv lecturenotes_biber.bib citedinlecturenotes.bib

within your lecturenotes directory. biblatex can then include these references using

\begin{refsection}[citedinlecturenotes.bib]
\nocite{*}
\printbibliography
\end{refsection}