Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using biblatex to insert references in my LaTeX document. In some bib entries, such as encyclopedia and classic works, I have inserted a shorthand field and decided to cite them only with the shorthand as label, and from beginning to end. This means, I only want to get:

KpV

instead of

Kant 1968 (henceforth cited as KpV)

However, biblatex always outputs them with regular label and shorthandintro in the first time.

Does anyone know how can I get the shorthand as the unique label from the first time, without additional bibliographic data (author, year, title, ...) and without shorthandintro? I just want to cite it with a label like an abbreviation.

Here is a mini example:

    \documentclass{memoir}
    \usepackage{xltxtra,fontspec,xunicode}
    \usepackage[style=philosophy-modern,backend=biber,language=auto]{biblatex}
    \bibliography{bibliography}
    \bibintoc
    \begin{document}
    ......
    \printbibliography
    \end{document}
share|improve this question
1  
Welcome to TeX.sx! I removed the labels and shorthands tags because they have rather specific meanings (related to diagrams resp. the babel package). Please edit your question to include the style you're using. –  lockstep Sep 24 '12 at 17:06
    
I am using philosophy-modern style which is a variant of authoryear style. Thanks for the answer from lockstep. But it doesnt work to me. –  insight Oct 22 '12 at 22:15

1 Answer 1

up vote 7 down vote accepted

You didn't mention the style you're using, so here's a solution for the verbose style which includes the shorthand mechanism described in your question (though a "full" entry is printed in first citations). For verbose, you have to switch the tests inside the cite bibmacro -- I've included the original definition and my redefinition.

\documentclass{article}

\usepackage[style=verbose]{biblatex}

% Original definition
% \newbibmacro*{cite}{%
%   \usebibmacro{cite:citepages}%
%   \ifciteseen
%     {\iffieldundef{shorthand}
%        {\usebibmacro{cite:short}}
%        {\usebibmacro{cite:shorthand}}}
%     {\usebibmacro{cite:full}}}

\renewbibmacro*{cite}{%
  \usebibmacro{cite:citepages}%
  \iffieldundef{shorthand}
    {\ifciteseen
       {\usebibmacro{cite:short}}
       {\usebibmacro{cite:full}}}
    {\usebibmacro{cite:shorthand}}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{Kan68,
  shorthand = {KpV},
  author = {Kant, Immanuel},
  year = {1968},
  title = {Kritik der praktischen Vernunft},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\null\vfill% just for the example

Some text.\autocite{Kan68}

Some text.\autocite{Kan68}

Some text.\autocite{A01}

Some text.\autocite{A01}

\printshorthands

\printbibliography

\end{document}

enter image description here

EDIT: As you're using the philosophy-modern style, there's no need to modify internal macros; simply use the package option shorthandintro=false.

\documentclass{article}

\usepackage[style=philosophy-modern,backend=biber,language=auto,
     shorthandintro=false]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{Kan68,
  shorthand = {KpV},
  author = {Kant, Immanuel},
  year = {1968},
  title = {Kritik der praktischen Vernunft},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\null\vfill% just for the example

Some text.\autocite{Kan68}

Some text.\autocite{Kan68}

Some text.\autocite{A01}

Some text.\autocite{A01}

\printshorthands

\printbibliography

\end{document}

enter image description here

share|improve this answer
    
Great! It works now. Many thanks to you! I forgot this option in original biblatex... I think maybe the developer of biblatex-philosophy should provide a more detailed documentation in English. –  insight Oct 23 '12 at 1:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.