In Biblatex: Automatic Vgl. & automatic quote indenting (depending on quote length) lockstep creates a quotation command based on previous contribitions by lockstep and Martin Scharrer that
Whenever it exceeds a certain number of lines in the output (preferably 3), it will be typeset indented.
The citation will automatically be typeset without "Vgl." -- regardless of whether it is the short or the long form.
When the output is a paraphrase or summary (in other words: when the output is no citation) it is typeset with the prenote "Vgl".
It works in biblatex.
The main purpose is to automize both the vgl. (engl. compare) and the line indention.
After using this command for quite a while two minor problems occured.
Whenever you use
\autocites{}{}with more than one source you will get something like vgl. Grice (1989); vgl. Levinson (2000). including more than one vgl.. The question: Is it possible to have a vgl. just one time in the beginning and suppress it for all following sources of the same\autocite{}{}, thus generating vgl. Grice (1989); Levinson (2000). without any additional vgl..When you use this command with autocite=footnote the counter will "jump" two steps with every
\autocitethat is embedded in a\cquotation{}, e.g. whenever you have something like this\cquotation{text text text \autocite{}.}the counter will add two instead of one.
Does anyone know how to solve these problems?
Below you find locksteps code. To produce my particular problem I added autocite=footnote and Ì added This is a paraphrase \autocite{A01}{A01} twice in the beginning.
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear,autocite=footnote]{biblatex} % Here, Philip added "autocite=footnote"
\NewBibliographyString{compare}
\DefineBibliographyStrings{ngerman}{%
compare = {vgl\adddot},
}
\newbool{withintextquote}
\renewbibmacro*{prenote}{%
\iffieldundef{prenote}{%
\ifbool{withintextquote}{%
}{%
\bibstring{compare}\addspace
}%
}
{\printfield{prenote}%
\setunit{\prenotedelim}}}
\makeatletter
\newcommand{\cquotation}[1]{%
\begingroup
\booltrue{withintextquote}%
% \settowidth doesn't like paragraphs
\setbox\@tempboxa\hbox{%
\def\par{\hspace{3\linewidth}}% If a paragraph is included force long form
%\let\par\space % Ignore paragraphs
#1}%
\ifdim\wd\@tempboxa>3\linewidth
\begin{quote}
\itshape
#1
\end{quote}
\else
{\itshape #1}%
\fi
\endgroup}
\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
This is a paraphrase \autocites{A01}{A01} % Added by Philip
This is a paraphrase \autocites{A01}{A01} % Added by Philip
\cquotation{This is a short direct quotation. \autocite{A01}}
\cquotation{This is a long direct quotation. This is a long direct
quotation. This is a long direct quotation. This is a long direct
quotation. This is a long direct quotation. This is a long direct
quotation. This is a long direct quotation. This is a long direct
quotation.\autocite{A01}}
This is a paraphrase \autocite{A01}
This is a paraphrase with prenote \autocite[siehe hierzu auch][]{A01}
\printbibliography
\end{document}


\cquotationand it doesnt exceed 3 lines, now it will generate a line break which is not desired. So if you type in bla bla bla \cquotation{asdf asdf asdf asdf} hjkl hjkl hjkl you will find an odd line break following the last bla. Is it possible to fix this issue. – Philip Dec 10 '13 at 21:14\blockquotecommand doesnt meet one crucial requirement. My thesis has about 200 pages and to change the vgl. manually would be too much of a hassle. Maybe, I will post a question at some point if anyone can combine the\blockquotewith vgl.. For now I am happy that it works. So, again, thank you! – Philip Dec 11 '13 at 10:41