I need to make a custom cite command for my PhD.
I made this so far:
\newcommand{\sfootcite}[1]{\footnote{\emph{\citename[2]{#1}{shortauthor}}, \citefield{#1}{shorttitle}}}
which works great if my cite looks like this:
\sfootcite{iustinus1997}
The problem is I have two optional arguments before the entry name. My cites look like this:
\sfootcite[Cf.][P. 8]{iustinus1997}
How do I get new command to make the cite looking like this:
Cf. Autor, Title, P. 8
Basically my question is: How do you get things, which are in [][] before {iustinus1997} to be included in the new cite command?
Here is my MWE:
\documentclass[a4paper,11pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{csquotes}
\usepackage{blindtext}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{iustinus1997,
Address = {Berlin/New York},
Author = {{Iustinus Martyr}},
Call-Number = {EgI180},
Date-Added = {2010-10-13 09:19:34 +0200},
Date-Modified = {2010-10-13 09:21:42 +0200},
Editor = {Miroslav Marcovich},
Publisher = {Walter de Gruyter},
Series = {Patristischen Texte und Studien},
Shortauthor = {Iust.},
Shorttitle = {De Tryph.},
Title = {Iustini Martyris dialogus cum Tryphone},
Volume = {47},
Year = {1997}}
\end{filecontents}
\newcommand{\sfootcite}[1]{\footnote{\emph{\citename[2]{#1}{shortauthor}}, \citefield{#1}{shorttitle}}}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear, hyperref=true]{biblatex}
\bibliography{\jobname}
\begin{document}
\blindtext \sfootcite{iustinus1997}
\blindtext
\printbibliography
\end{document}
style=authortitle
forbiblatex
, and then just\footcite[Cf.][8]{iustunus1997}
. (Biblatex will add "S." for you.)style=authoryear
instead of some style that does what you want without customization? (I noticed you just asked a followup to this question, so it's seems relevant.)