I think this does what you want (having just reread your question).
If you plan to include a global bibliography, you need to use refsegment
rather than refsection
, I think, to ensure unique labels.
\documentclass{report}
\usepackage{filecontents}
\begin{filecontents}{\jobname1.bib}
@article{XQ11,
author = {Gao, F and Liu, XQ.},
title = {Linearized Ridge Regression Estimator Under the Mean Square Error Criterion in a Linear Regression Model},
journal = {Communications in Statistics-Simulation and Computation},
volume = {40},
year = {2011},
pages={1434-1443}}
@misc{A12,
Author = {Anneart, J. and Claes, A.G.P. and De Ceuster, M.J.K. and Zhang, H.},
Title = {Estimating the Yield Curve Using the Nelson-Siegel Model: A Ridge Resgression Appoach},
howpublished={International Review of Economics and Finance, Forthcoming},
Year = {2012}}
\end{filecontents}
\begin{filecontents}{\jobname2.bib}
@article{NS87,
author = {Nelson, C. R. and Siegel, A. F},
title = {Parsimonious Modelling of Yield Curves},
journal = {The Journal of Business},
volume = {60},
issue={4},
year = {1987},
pages={473-489}}
@misc{Sven94,
Author = {Svensson, L.E.O},
Title = {Estimating and Interpreting Forward Interest Rates: Sweden 1992-1994},
howpublished={IMF Working Paper},
note = {WP/94/114},
Year = {1994},
pages={1-49}}
@article{CP01,
Author = {Cairns, A.J.G. and Pritchard, D.J.},
Title = {Stability of Descriptive Models for the Term Structure of Interest Rates with Applications to German Market Data},
journal = {British Actuarial Journal},
volume = {7},
year = {2001},
pages={467-507}}
\end{filecontents}
\usepackage[backend=biber, refsegment=chapter, defernumbers=true]{biblatex}
\addbibresource[label=intro]{\jobname1.bib}
\addbibresource[label=ridge]{\jobname2.bib}
\begin{document}
\chapter{Test bib 1}
\cite{A12} (LRRE) \cite{XQ11}
\printbibliography[segment=1,heading=subbibliography]
\chapter{Test bib 2}
\cite{NS87} and its extension by \cite{Sven94}
\printbibliography[segment=2,heading=subbibliography]
\nocite{*}
\printbibliography
\end{document}
I recommend to use arara, a very flexible tool to compile LaTeX documents, including, but not limited to, biblatex with biber -- and also deleting the aux files generated in the process.
I adapted from here:
% arara: pdflatex: { shell: yes }
% arara: biber
% arara: pdflatex: { shell: yes }
% arara: clean: { files: [ test.aux, test.log] }
\begin{filecontents}{\jobname.bib}
@book{Labov1972,
Address = {Philadelphia},
Author = {William Labov},
Publisher = {University of Pennsylvania Press},
Title = {Sociolinguistic Patterns},
Year = {1972}}
@book{Chomsky1957,
Address = {The Hague},
Author = {Noam Chomsky},
Publisher = {Mouton},
Title = {Syntactic Structures},
Year = {1957}}
\end{filecontents}
\documentclass[a4paper,11pt]{article}
\usepackage[style=numeric,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
As first example citation here is \cite{Chomsky1957}.
Here is another example citation \cite{Labov1972}
\printbibliography
\end{document}
Set Gummi to compile with latexmk (from Edit -> Preferences -> Compilation).
Updated: 2017, Jun 11 -- just to clarify my tip
You have two options here (a dirty hack just to use Gummi with arara):
(1) With Windows/Linux, write a simple script that calls arara and name it latexmk. Put it in your path just before the latexmk path (usually before texlive or miktex path).
(2) With Linux, you can include
`alias latexmk='arara'`
within the ~/.bash_aliases
file (create one if it does not exist), or inside the .bashrc or .profile files. I used the .bash_aliases
way.
I hope that the developers of Gummi will add an arara option at compilation option from Preferences menu in a future release. Until there we will need to use some kind of dirty hack like this.
Save it as test.tex and load it with gummi.
Best Answer
The
apa6
class works with biblatex and defines\maskcite
macros that remove the citation from the text and reference list:If you are willing to replace
\cite
with\maskcite
, then the wayapa6
works is pretty universal. Essentially the class checks for themask
flag. If it is not there it does\let\maskcite\cite
otherwise it defines\maskcite
to print some text (handling pre- and post-notes nicely). You could easily make it print a black box. It would take some work to make the black box be exactly the size of the reference with the identical line breaks.