In the following example I assume that you need two different bibliographycal sections in your documents: Primary Sources, and Secondary Sources; I also assume that you have two databases: bibl1.bib
and bibl2.bib
.
The idea is to use a keyword
filter. In the following example I chose primary
, and secondary
as the words used to divide bibliographies.
To print the two bibliographies you can use the keyword =
option for \printbibliography
. For example, saying something like
\printbibliography[keyword=primary,...]
\printbibliography[keyword=secondary,...]
You also need to add a keywords
field to each entry in the bib
files indicating if each entry will be considered as "primary" or "secondary".
The code:
\begin{filecontents*}{bibl1.bib}
@book{goossens93,
keywords = {primary},
author = "Michel Goossens and Frank Mittlebach",
title = "The {LaTeX} Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@book{knuth84,
keywords = {primary},
author = "Donald E. Knuth",
title= "The {TeX}book",
publisher = "Addison-Wesley",
year = 1984
}
\end{filecontents*}
\begin{filecontents*}{bibl2.bib}
@unpublished{patashnik88,
keywords = {secondary},
author = "Oren Patashnik",
title = "Using {BibTeX}",
note = "Documentation for general BibTeX users",
month = jan,
year = 1988
}
\end{filecontents*}
\documentclass{article}
\usepackage[style=mla,guessmedium=false]{biblatex}
\addbibresource{bibl1.bib}
\addbibresource{bibl2.bib}
\begin{document}
\cite{knuth84}, \cite{goossens93}, \cite{patashnik88}
\printbibliography[keyword=primary,heading=subbibliography,%
title={Primary Sources}]
\printbibliography[keyword=secondary,heading=subbibliography,%
title={Secondary Sources}]
\end{document}

I used the guessmedium=false
option to avoid biblatex-mla
guessing the publication medium, thereby avoiding printing "Print" (or "Web") when the field howpublished
is undefined,
It looks like the mla
package is defective as it uses \ifpdf
without any mechanism to define it. However, the simple step of loading the ifpdf
package seems to fix things
\documentclass[12pt,letterpaper]{article}
\usepackage{ifpdf}
\usepackage{mla}
\usepackage{setspace}
\usepackage{calc}
\begin{document}
\begin{mla}{Christopher}{Cooper}{Mrs.~Mills}{English 9 H}{27 October 2012}{An Exploration}
%body here
\end{mla}
\end{document}
(I'm suspicious of why mla
is testing for PDF mode, but that is a separate thing.)
Best Answer
You need to run
thumbpdf
to generate the thumbnails:However, the PDF viewers are able to generate the thumbnails on the fly very fast or they do not support thumbnails at all. Therefore package
thumbpdf
is not really needed, except if you want to provide different thumbnails as the standard ones.Update: You can ignore the warning or if you do not want to have embedded thumbnails and to run
thumbpdf
, then do not use the package as in the given MWE.Additionally package loading can be disabled in LaTeX by fooling LaTeX's package management. For each package it remembers the data (date, version, info) of the optional argument of
\ProvidesPackage
under the name\ver@<package name>.sty
. If\ProvidesPackge
is missing the macro is defined as empty string. This macro helps LaTeX to know, if a package is already loaded. In the that case the package is not loaded again. Also the data are used for\listfiles
.