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 have a report where I reference articles and standards. Whereas for an article it is totally suitable to have a reference tag corresponding to the author's name, e.g. [Adr89], I would expect the tag for a standard to be more specific about the standard number, e.g. [DIN-13201-1] and [DIN-13201-2] instead of the automatically created tags [DIN04a] and [DIN04b].

Is there a way to set a custom tag name for an entry?

I'm using alphadin as bibliography style and the standards are of type @misc.

share|improve this question
1  
It seems that alphadin isn't able to create your own label. Maybe you can use biblatex. –  Marco Daniel Mar 3 '12 at 21:39
    
@MarcoDaniel Please make your comment into an answer. –  Joseph Wright Apr 15 '12 at 9:06
    
@JosephWright: Done –  Marco Daniel Apr 15 '12 at 9:37
    
You could modify alphadin to have customized labels, see this answer. –  mafp Jan 12 '13 at 13:24
add comment

1 Answer

The bibliography style alphadin doesn't support such a custom tag. In relation to your request you have to modify the file alphadin.bst.

Instead of this I recommend the package biblatex which is more comfortable.

The following example uses biblatex. The label is created by the bib entry shorthand:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{DIN-13201-2,
title="DIN EN 13201-2:2004-04 Straßenbeleuchtung - Teil 2: Gütemerkmale",
subtitle="Deutsche Fassung EN 13201-2:2003",
date="2004-04",
language="Deutsch",
shorthand="DIN-13201-2"
}
\end{filecontents}
\usepackage[style=alphabetic,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
Example cite \cite{DIN-13201-2}

\printbibliography

\end{document}

The complete example after you have run:

pdflatex
biber
pdflatex
pdflatex

results in

enter image description here

share|improve this answer
add comment

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.