[Tex/LaTex] Biblatex: cite command to create numeric citation without parentheses

biblatexciting

I have a large table which gives a literature overview and contains only citations in its cells.

I'm using biblatex with a numeric format, so sources are normally cited as

  • [33],
  • [35-37, 49]
  • [123, S. 54f] etc.

The parentheses need a lot of space (the table has many columns), so I'd like to remove them (only) in this table:
Is there a \cite command which only gives the numeric key (and the pages) without parenthesis like

  • 33
  • 35-37, 49
  • 123, S. 54f

Note: I need this modification without [] only in this one table, not in the rest of the document!

Best Answer

EDIT: Changed the answer according to the comment, that Martin is using numeric-comp

You can create a new cite command which based on the code of numeric-comp.cbx

The default setting is:

\DeclareCiteCommand{\cite}[\mkbibbrackets]
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}%
   \usebibmacro{postnote}}

So you create:

\DeclareCiteCommand{\tabcite}%[\mkbibbrackets]
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}%
   \usebibmacro{postnote}}

and now use \tabcite{<key>}

Here is a minimal example:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{test,
author={Vorname Name},
title ={The Title},
year={2011}
}
\end{filecontents*}
\documentclass[a4paper]{article}
\usepackage[style=numeric]{biblatex}
\bibliography{\jobname}
\DeclareCiteCommand{\tabcite}%[\mkbibbrackets]
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}%
   \usebibmacro{postnote}}

\begin{document}
\cite{test}\qquad\tabcite{test}

\printbibliography
\end{document}

I use biblatex v1.6.

enter image description here